Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance.dropMe()


            {
              itemId = ITEM_IDS[i];
              // create the ticket in the gameworld
              L2ItemInstance dropticket = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId);
              dropticket.setLocation(L2ItemInstance.ItemLocation.VOID);
              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);
              dropticket = null;
            }
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

      int newZ = Math.max(getZ(), mainDamageDealer.getZ()) + 20; // TODO: temp hack, do somethign nicer when we have geodatas

      // Init the dropped L2ItemInstance and add it in the world as a visible object at the position where mob was last
      ditem = ItemTable.getInstance().createItem("Loot", item.getItemId(), item.getCount(), mainDamageDealer, this);
      ditem.getDropProtection().protect(mainDamageDealer);
      ditem.dropMe(this, newX, newY, newZ);

      // Add drop to auto destroy item task
      if(!Config.LIST_PROTECTED_ITEMS.contains(item.getItemId()))
      {
        if(Config.AUTODESTROY_ITEM_AFTER > 0 && ditem.getItemType() != L2EtcItemType.HERB || Config.HERB_AUTO_DESTROY_TIME > 0 && ditem.getItemType() == L2EtcItemType.HERB)
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.