L2JLisvus

Would you like to react to this message? Create an account in a few clicks or log in to continue.

2 posters

    Boss & Raid Boss AutoLoot itens option

    yusuketh
    yusuketh


    Posts : 58
    Join date : 2013-07-12

    Boss & Raid Boss AutoLoot itens option Empty Boss & Raid Boss AutoLoot itens option

    Post  yusuketh 24th August 2013, 22:16

    i'm killing valakas, was so heavy of itens in bag, would like to add a autolot for itens dropped by boss and raidboss.
    avatar
    G-hamsteR


    Posts : 60
    Join date : 2013-04-26

    Boss & Raid Boss AutoLoot itens option Empty Re: Boss & Raid Boss AutoLoot itens option

    Post  G-hamsteR 25th August 2013, 16:49

    You could easily add it by yourself. On L2Attackable.java (https://www.assembla.com/code/L2JLisvus/subversion/nodes/436/trunk/Lisvus_GameServer/java/net/sf/l2j/gameserver/model/L2Attackable.java) on lines 1150 and 1203, find this:

    Code:
                // Check if the autoLoot mode is active
                if (Config.AUTO_LOOT)
                    player.doAutoLoot(this, item); // Give this or these Item(s) to the L2PcInstance that has killed the L2Attackable
                else
                    dropItem(player, item); // drop the item on the ground
    Replace with this:

    Code:
                // Check if the autoLoot mode is active
                if (isRaid())
                    dropItem(player, item); // drop the item on the ground
                else if (Config.AUTO_LOOT)
                    player.doAutoLoot(this, item); // Give this or these Item(s) to the L2PcInstance that has killed the L2Attackable
                else
                    dropItem(player, item); // drop the item on the ground

      Current date/time is 16th October 2024, 21:48