Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2ItemInstance.dropMe()


                    {
                      itemId = ITEM_IDS[i];
                    // create the ticket in the gameworld
                  L2ItemInstance dropticket = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
                  dropticket.setLocation(L2ItemInstance.ItemLocation.INVENTORY);
                  dropticket.dropMe(null, x, y, z);
                      dropticket.setDropTime(0); //avoids it from beeing removed by the auto item destroyer
                      L2World.getInstance().storeObject(dropticket);
                      getDroppedTickets().add(dropticket);
                    }
                    break;
View Full Code Here


                castle.getSiege().getSiegeGuardManager().hireMerc(x, y, z, heading, NPC_IDS[i]);

                // create the ticket in the gameworld
            L2ItemInstance dropticket = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
            dropticket.setLocation(L2ItemInstance.ItemLocation.INVENTORY);
                dropticket.dropMe(null, x, y, z);
                dropticket.setDropTime(0); //avoids it from beeing removed by the auto item destroyer
                L2World.getInstance().storeObject(dropticket)//add to the world
                // and keep track of this ticket in the list
                _droppedTickets.add(dropticket);
View Full Code Here

      }
     
      return null;
    }
   
    item.dropMe(this, x, y, z);
   
    if ((Config.AUTODESTROY_ITEM_AFTER > 0) && Config.DESTROY_DROPPED_PLAYER_ITEM && !Config.LIST_PROTECTED_ITEMS.contains(item.getItemId()))
    {
      if ((item.isEquipable() && Config.DESTROY_EQUIPABLE_PLAYER_ITEM) || !item.isEquipable())
      {
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.