Jump to content
  • 0

[HELP] AutoLootAdena


StarSCreams

Question

hi all, I just want a little help in this mod, I have a code but I have worked I think is wrong, I incorporate into my project on: autolootadena for the adena dropping on the floor and other items not

 

autoloot item in order all exept adena.

 

this code does not work for me I have to l2jserver freya

@@ -1402,7 +1402,8 @@
                 // Check if the autoLoot mode is active
                 if (isFlying()
                       || (!isRaid() && Config.AUTO_LOOT)
-                        || (isRaid() && Config.AUTO_LOOT_RAIDS))
+                        || (isRaid() && Config.AUTO_LOOT_RAIDS)
+                        || (Config.AUTO_LOOT_ADENA && item.getItemId() == 57))
                     player.doAutoLoot(this, item); // Give the item(s) to the L2PcInstance that has killed the L2Attackable
                     else
                        dropItem(player, item); // drop the item on the ground

 

any solution? thanks

 

sorry my bad english :-\

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

As I remember there is config for auto lot in L2J so what the point to add something like this again?

 

if I add this type of configuration, there is currently setup for "autolootraidboss" and "general autoloot"and I want to add "autoloot adena" if you can help me I appreciate matim :D

Link to comment
Share on other sites

  • 0

Why dont you let them loot with the party options...

 

I don't know what client your using but as i remember after final there is loot party option!!!

 

That could be a solution!!!

 

Also you can drop all the items and the adena always divide to each group member if someone pick up unless no party!!!

 

Anyway give us more info to help you!!!

Link to comment
Share on other sites

  • 0

i need work this patch:

 

   Index: java/config/Character.properties
   ===================================================================
   --- java/config/Character.properties   (revision 3633)
   +++ java/config/Character.properties   (working copy)
   @@ -528,6 +528,10 @@
   # Default: False
   AutoLootRaids = False
    
   +# If set to true, adena is automatically picked up, even if AutoLoot is set to false.
   +# Default: False
   +AutoLootAdena = False
   +
   # This is the time in seconds that it will take for the player command "//unstuck" to activate.
   # Default: 300
   UnstuckInterval = 300
   Index: java/net/sf/l2j/Config.java
   ===================================================================
   --- java/net/sf/l2j/Config.java   (revision 3633)
   +++ java/net/sf/l2j/Config.java   (working copy)
   @@ -162,6 +162,7 @@
      public static int STARTING_SP;
      public static boolean AUTO_LOOT;
      public static boolean AUTO_LOOT_RAIDS;
   +   public static boolean AUTO_LOOT_ADENA;
      public static int UNSTUCK_INTERVAL;
      public static int TELEPORT_WATCHDOG_TIMEOUT;
      public static int PLAYER_SPAWN_PROTECTION;
   @@ -1304,6 +1305,7 @@
                  STARTING_SP = Integer.parseInt(Character.getProperty("StartingSP", "0"));
                  AUTO_LOOT = Boolean.parseBoolean(Character.getProperty("AutoLoot", "false"));
                  AUTO_LOOT_RAIDS = Boolean.parseBoolean(Character.getProperty("AutoLootRaids", "false"));
   +               AUTO_LOOT_ADENA = Boolean.parseBoolean(Character.getProperty("AutoLootAdena", "false"));
                  UNSTUCK_INTERVAL = Integer.parseInt(Character.getProperty("UnstuckInterval", "300"));
                  TELEPORT_WATCHDOG_TIMEOUT = Integer.parseInt(Character.getProperty("TeleportWatchdogTimeout", "0"));
                  PLAYER_SPAWN_PROTECTION = Integer.parseInt(Character.getProperty("PlayerSpawnProtection", "0"));
   @@ -2374,6 +2376,7 @@
         else if (pName.equalsIgnoreCase("SpBookNeeded")) SP_BOOK_NEEDED = Boolean.parseBoolean(pValue);
         else if (pName.equalsIgnoreCase("AutoLoot")) AUTO_LOOT = Boolean.parseBoolean(pValue);
         else if (pName.equalsIgnoreCase("AutoLootRaids")) AUTO_LOOT_RAIDS = Boolean.parseBoolean(pValue);
   +      else if (pName.equalsIgnoreCase("AutoLootAdena")) AUTO_LOOT_ADENA = Boolean.parseBoolean(pValue);
         else if (pName.equalsIgnoreCase("AutoLootHerbs")) AUTO_LOOT_HERBS = Boolean.parseBoolean(pValue);
    
         else if (pName.equalsIgnoreCase("AltKarmaPlayerCanBeKilledInPeaceZone")) ALT_GAME_KARMA_PLAYER_CAN_BE_KILLED_IN_PEACEZONE = Boolean.parseBoolean(pValue);
   Index: java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
   ===================================================================
   --- java/net/sf/l2j/gameserver/model/actor/L2Attackable.java   (revision 3605)
   +++ java/net/sf/l2j/gameserver/model/actor/L2Attackable.java   (working copy)
   @@ -42,11 +42,11 @@
   import net.sf.l2j.gameserver.model.L2Party;
   import net.sf.l2j.gameserver.model.L2Skill;
   import net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance;
   -import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance;
   import net.sf.l2j.gameserver.model.actor.instance.L2FortSiegeGuardInstance;
   import net.sf.l2j.gameserver.model.actor.instance.L2GrandBossInstance;
   import net.sf.l2j.gameserver.model.actor.instance.L2MinionInstance;
   import net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance;
   +import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance;
   import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
   import net.sf.l2j.gameserver.model.actor.instance.L2PetInstance;
   import net.sf.l2j.gameserver.model.actor.instance.L2SiegeGuardInstance;
   @@ -1402,7 +1402,8 @@
                     // Check if the autoLoot mode is active
                     if (isFlying()
                           || (!isRaid() && Config.AUTO_LOOT)
   -                        || (isRaid() && Config.AUTO_LOOT_RAIDS))
   +                        || (isRaid() && Config.AUTO_LOOT_RAIDS)
   +                        || (Config.AUTO_LOOT_ADENA && item.getItemId() == 57))
                        player.doAutoLoot(this, item); // Give the item(s) to the L2PcInstance that has killed the L2Attackable
                     else
                        dropItem(player, item); // drop the item on the ground

 

on L2JServer Last Revision Freya.

 

waiting help..

 

EDIT:

 

when I add the patch nothing happens the adena still get the inventory of character

Link to comment
Share on other sites

  • 0

Bro this code means that when you turn off auto loot for Raid Bosses normally the adena will fall on the ground!!!

 

With this code they get looted so they get auto picked up and they go to players inventory!!!  So what do you meen by this?

 

 

when I add the patch nothing happens the adena still get the inventory of character

Link to comment
Share on other sites

  • 0

Bro this code means that when you turn off auto loot for Raid Bosses normally the adena will fall on the ground!!!

 

With this code they get looted so they get auto picked up and they go to players inventory!!!  So what do you meen by this?

 

 

 

ok bro I'll try that after I come up with an answer

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • You are contradicting yourself! In your first message you clearly state "I want to create a GF server on the latest client." What this means is you want a GF server that is working on the latest client. You didn't say "not exactly like GF". You explicitly stated that the server would be GF and the client will be whichever new client you could find. You never asked for servers either. You asked how to do it, and more specifically: "to link Gracia Final Pack to that client. Do I just get a clean install and edit ini in the client", which brought me to the conclusion that you were completely oblivious and/or delusional, hense my EXTENSIVE and ON-POINT response, if I say so myself.      
    • oh, i didnt know that. I got everything i need. Thank you so much for your information and help!
    • In every mobius source there should be a readme file with all the links you need (system, client, IDEs etc). Best of luck!
    • I didnt say i dont know anything but i couldnt find a place to start. a guy here mentioned l2jmobius which is a good place to start. so i searched for it and its actually what i wanted. Now i just need to find a clean client to start. I know how to program and how to do changed to client but its hard to find clean clients. I dont really want to make my server exactly like gracia final. I just want to test out the clients and decide which one works better for me. I dont really like the awakening classes and the newest races. Can you please provide me with a couple of links of different clients so i can test them out before i start my project? As i said i cant really find any clean install client. Thank you in advance
    • OUR OFFICIAL WEBSITE / FORUM - MILLENNIUM-HOOK.NET CHEAT DESCRIPTION: Our cheat for Fortnite game has proven itself in the best way among players, the cheat has good optimization, a beautiful visual appearance and has extensive functionality. And reliable protection and HWID Spoofer give our cheat even more advantages over competitors! SUPPORTED ANTI-CHEATS: (read more on official website) - Easy Anti-Cheat (EAC): Undetected & Safe - BattlEye AC: Undetected & Safe - Hyperion AC: Undetected & Safe Our Fortnite cheat has a limited number of slots to ensure greater product security! (Available slots check on official website) FEATURES: AIMBOT: - Aim bone - Silent aim - Smooth - Fov - Distance - Key ESP: - Players - Loot - Vehicles - Traps - Other MISC: - No bloom - No spread - Vehicle flight - Instarevive - Aim while Jumping - Teleport to players within 4m (10m with pickaxe) or teleport downed players to you. - Teleport key - Fov changer REQUIREMENTS: - Included HWID Spoofer: Yes - Stream Bypass: No (Engineering works. Will be available again soon). - Supported game modes: Windowed, Borderless - Supported platforms: Steam / Uplay / Epic Games - Supported CPU: Intel & AMD - Supported OS: Windows 10 (1903,1909,2004,20H2,21H1, 22H2), Windows 11 (All version). Supported OS change and are added periodically. More check on official website.   IN-GAME SCREENSHOTS:   - Check on the official website.
  • Topics

×
×
  • Create New...