Package l2p.gameserver.model.items

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


  private void dropItem(L2Character npc, int itemId, int count)
  {
    L2ItemInstance item = ItemTable.getInstance().createItem(itemId);
    item.setCount(count);
    item.dropMe(npc, npc.getLoc());
  }
}
View Full Code Here


        {
          owner.getInventory().addItem(item);
        }
        else
        {
          item.dropMe(this, getLoc().changeZ(25));
        }
      }
      _inventory.getItemsList().clear();
    }
  }
View Full Code Here

        }
        //System.out.println("  (" + loc_id + ",'" + loc_name + "'," + activeChar.getX() + "," + activeChar.getY() + "," + activeChar.getZ() + "," + (activeChar.getZ() + 100) + ",0),");
        System.out.println("<point xyzz=\"" + activeChar.getX() + " " + activeChar.getY() + " " + activeChar.getZ() + " " + (activeChar.getZ() + 100) + "\"/>");
        activeChar.sendMessage("Point saved.");
        L2ItemInstance temp = ItemTable.getInstance().createItem(1060);
        temp.dropMe(activeChar, activeChar.getLoc());
        break;
      }
      case admin_xloc:
      {
        System.out.println("      <coords loc=\"" + activeChar.getX() + " " + activeChar.getY() + " " + activeChar.getZ() + " 0\" />");
View Full Code Here

      case admin_xloc:
      {
        System.out.println("      <coords loc=\"" + activeChar.getX() + " " + activeChar.getY() + " " + activeChar.getZ() + " 0\" />");
        activeChar.sendMessage("Point saved.");
        L2ItemInstance temp = ItemTable.getInstance().createItem(1060);
        temp.dropMe(activeChar, activeChar.getLoc());
        break;
      }
      case admin_pos:
        String pos = activeChar.getX() + ", " + activeChar.getY() + ", " + activeChar.getZ() + ", " + activeChar.getHeading() + " Geo [" + (activeChar.getX() - L2World.MAP_MIN_X >> 4) + ", " + (activeChar.getY() - L2World.MAP_MIN_Y >> 4) + "] Ref " + activeChar.getReflection().getId();
        System.out.println(activeChar.getName() + "'s position: " + pos);
View Full Code Here

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

    if(item_count > 1)
    {
      item.setCount(item_count);
    }
    debugItems.add(item);
    item.dropMe(null, loc);
  }

  protected static void debugPath(L2Player player, PathFindBuffer pf_buff, ArrayList<Location> _path)
  {
    if(!player.isGM())
View Full Code Here

        itemId = getItemId(npcId);
        if(itemId > 0)
        {
          L2ItemInstance dropticket = ItemTable.getInstance().createItem(itemId);
          dropticket.setLocation(L2ItemInstance.ItemLocation.INVENTORY);
          dropticket.dropMe(null, loc);
          dropticket.setDropTime(0); // avoids it from beeing removed by the auto item destroyer
          getDroppedTickets().add(dropticket);
        }
      }
      _log.info("MercTicketManager: Loaded " + getDroppedTickets().size() + " Mercenary Tickets");
View Full Code Here

    {
      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

  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

      {
        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

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.