A Project for Chronicle 4 based on L2JServer.


    Boss & Raid Boss AutoLoot itens option

    Share
    avatar
    yusuketh

    Posts : 58
    Join date : 2013-07-12

    Boss & Raid Boss AutoLoot itens option

    Post  yusuketh on 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.

    G-hamsteR

    Posts : 60
    Join date : 2013-04-26

    Re: Boss & Raid Boss AutoLoot itens option

    Post  G-hamsteR on 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 19th August 2018, 06:22