Examples of doAutoLoot()

  • net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.doAutoLoot()
    Manage AutoLoot Task.
    Actions :
  • Send a System Message to the L2PcInstance : YOU_PICKED_UP_S1_ADENA or YOU_PICKED_UP_S1_S2
  • Add the Item to the L2PcInstance inventory
  • Send a Server->Client packet InventoryUpdate to this L2PcInstance with NewItem (use a new slot) or ModifiedItem (increase amount)
  • Send a Server->Client packet StatusUpdate to this L2PcInstance with current weight

  • Caution : If a Party is in progress, distribute Items between party members
    @param target The L2ItemInstance dropped @param item the item

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.doAutoLoot()

                }else{
                 
                  if(!player.getInventory().validateCapacity(item_templ) || (!Config.AUTO_LOOT_BOSS && this instanceof L2RaidBossInstance) || (!Config.AUTO_LOOT_BOSS && this instanceof L2GrandBossInstance))
                    DropItem(player, item);
                  else
                    player.doAutoLoot(this, item); // Give this or these Item(s) to the L2PcInstance that has killed the L2Attackable
               
                }
             
              }
              else
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.doAutoLoot()

              L2Item item_templ = ItemTable.getInstance().getTemplate(item.getItemId());
             
              if(!player.getInventory().validateCapacity(item_templ))
                DropItem(player, item);
              else
                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
            }
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.doAutoLoot()

               if (item != null)
               {
                 if (Config.DEBUG) _log.fine("Item id to drop: " + item.getItemId() + " amount: " + item.getCount());

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

               // Broadcast message if RaidBoss was defeated
                     if(this instanceof L2RaidBossInstance)
                     {
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.doAutoLoot()

             for (DateDrop drop : EventDroplist.getInstance().getAllDrops())
             {
                 if (Rnd.get(L2DropData.MAX_CHANCE) < drop.chance)
                 {
                     RewardItem item = new RewardItem(drop.items[Rnd.get(drop.items.length)], Rnd.get(drop.min, drop.max));
                     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
                 }
             }
         }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.