Jump to content
  • 0

[HELP] AutoLootAdena


Question

Posted

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 :-\

7 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted

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!!!

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted

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

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

    • I am selling my l2jeternity high five (all inclusive option $300) license+daily $50(mission) mod, autofarm, this is a very good and stable H5 assembly on market if you know how to run it properly, project developer LordWinter also a very passionate person and active in daily basis, because I am no longer using it, selling this out to put in good use for new h5 l2project. I am selling this for $180, pm me for details/offer. thanks *Sale and rebinding with the consent of the developer LordWinter payment option : paypal/crypto telegram: @arcadin77  
    • Hello friends, good morning, good afternoon or good evening, depending on the time you are seeing this! I have been trying to decompile and compile again with only the classes that I want LineageEffect.u for a few days now, but I have not been successful. Could someone help me by clearing up some doubts about how I can do this work and be successful?!
    • **INTERLUDE REMASTERED** Moonland is a server that's been running for about three years without wipe, and they don't plan on wiping it anytime soon. I'm selling my items or even the account due to not having much time to play anymore. I'm selling only for $$$. Not going to disclose my nickname in the server, but here are some of the items: Lvl 5 equipment for both mage and fighter +100 mage pvp set 2mastery jewels for fighter, 2 for mage, blessed antharas, blessed queen ant, ring of fallen angel, earring of fafurion. 1k + col, VIP cosmetics for armor, agathion and weapons(duals + mage wep)   I'm only selling for real money via paypal or cs2 skins so don't offer me anything else.
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
×
×
  • Create New...