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

    • 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.
    • OUR OFFICIAL WEBSITE / FORUM - MILLENNIUM-HOOK.NET CHEAT DESCRIPTION: We are offering the best in market Division 2 hacks without detection. If you are wondering where to get the best cheats and hacks for The Division 2, you are at the right place! Our private TD2  hack has been completely undetected since we released it! Also, our cheat has all the most necessary functions such as aimbot, esp, etc. And the limited slots will give even more security to our product. SUPPORTED ANTI-CHEATS: (read more on official website) - Easy Anti-Cheat (EAC): Undetected & Safe - FairFight AC: Undetected & Safe Our The Division 2 cheat has a limited number of slots to ensure greater product security! (Available slots check on official website) FEATURES: AIMBOT: - Enable aim - No recoil - Silent aim - Aim distance - Aim fov - Draw aim fov - Fov change - Weakspot - Aim hitbox - Head - Neck - Chest - Random ESP: - Enable visuals - Enable radar - Skeleton - Weakspot - Pre-rendering - ESP distance - Radar distance - Auto - Enemy - Name - Blacklist - Whitelist - Custom color - Clear whitelist - Clear blacklist MISC: - Auto fire/Triggerbot - Rapid of fire rate - Shotgun of fire rate - Magic bullets - Fast reload - Unlimited ammo - Shoot in safehouse - Accelerate - Noclip REQUIREMENTS: - Included HWID Spoofer: Yes - Stream Bypass: Yes - 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.
    • 50% discount for the next 3 copies Price 150 , will try for test server not guaranteed
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
  • Topics

×
×
  • Create New...