Examples of dropMe()

  • l2p.gameserver.model.items.L2ItemInstance.dropMe()
  • lineage2.gameserver.model.items.ItemInstance.dropMe()
    Method dropMe. @param dropper Creature @param loc Location
  • net.sf.l2j.gameserver.model.L2ItemInstance.dropMe()
    Init a dropped L2ItemInstance and add it in the world as a visible object.

    Actions :

  • Set the x,y,z position of the L2ItemInstance dropped and update its _worldregion
  • Add the L2ItemInstance dropped to _visibleObjects of its L2WorldRegion
  • Add the L2ItemInstance dropped in the world as a visible object


  • Caution : This method DOESN'T ADD the object to _allObjects of L2World

    Assert :

  • _worldRegion == null (L2Object is invisible at the beginning)


  • Example of use :

  • Drop item
  • Call Pet

  • @param dropper @param x @param y @param z

    Examples of l2p.gameserver.model.items.L2ItemInstance.dropMe()

        {
          return;
        }
        L2ItemInstance dropticket = ItemTable.getInstance().createItem(itemId);
        dropticket.setLocation(L2ItemInstance.ItemLocation.INVENTORY);
        dropticket.dropMe(null, loc);
        castle.getSiege().getSiegeGuardManager().hireMerc(loc, npcId);
        dropticket.setDropTime(0); // avoids it from beeing removed by the auto item destroyer
        getDroppedTickets().add(dropticket);
      }
    View Full Code Here

    Examples of l2p.gameserver.model.items.L2ItemInstance.dropMe()

      private void dropItem(L2NpcInstance npc, int itemId, int count)
      {
        L2ItemInstance item = ItemTable.getInstance().createItem(itemId);
        item.setCount(count);
        item.dropMe(npc, npc.getLoc());
      }

      public void onLoad()
      {
      }
    View Full Code Here

    Examples of l2p.gameserver.model.items.L2ItemInstance.dropMe()

          {
            int customFlags = flag.getCustomFlags();
            flag.setCustomFlags(0, false);
            flag = getInventory().dropItem(flag, flag.getCount(), true);
            flag.setCustomFlags(customFlags, false);
            flag.dropMe(this, getLoc().rnd(0, 100, false));
            sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_DROPPED_S1).addItemName(flag.getItemId()));
          }
        }
        if(isTerritoryFlagEquipped())
        {
    View Full Code Here

    Examples of l2p.gameserver.model.items.L2ItemInstance.dropMe()

            {
              int customFlags = flag.getCustomFlags();
              flag.setCustomFlags(0, false);
              flag = getInventory().dropItem(flag, flag.getCount(), true);
              flag.setCustomFlags(customFlags, false);
              flag.dropMe(this, getLoc().rnd(0, 100, false));
            }
          }
          if(isTerritoryFlagEquipped())
          {
            L2ItemInstance flag = getActiveWeaponInstance();
    View Full Code Here

    Examples of l2p.gameserver.model.items.L2ItemInstance.dropMe()

      private void dropItem(L2NpcInstance npc, int itemId, int count)
      {
        L2ItemInstance item = ItemTable.getInstance().createItem(itemId);
        item.setCount(count);
        item.dropMe(npc, npc.getLoc());
      }

      @Override
      public void onLoad()
      {
    View Full Code Here

    Examples of l2p.gameserver.model.items.L2ItemInstance.dropMe()

      private void dropItem(L2NpcInstance npc, int itemId, int count)
      {
        L2ItemInstance item = ItemTable.getInstance().createItem(itemId);
        item.setCount(count);
        item.dropMe(npc, npc.getLoc());
      }

      public void onLoad()
      {
      }
    View Full Code Here

    Examples of lineage2.gameserver.model.items.ItemInstance.dropMe()

              long count = wordList.length > 3 ? Long.parseLong(wordList[3]) : 1;
              for (int i = 0; i < num; i++)
              {
                ItemInstance createditem = ItemFunctions.createItem(id);
                createditem.setCount(count);
                createditem.dropMe(activeChar, Location.findPointToStay(activeChar, 100));
              }
            }
            catch (NumberFormatException nfe)
            {
              activeChar.sendMessage("Specify a valid number.");
    View Full Code Here

    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

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

                    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

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

          }
         
          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.