Package l2p.gameserver.model.items

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


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


    }
    player.removeSkillById(_skillId);
    player.abortAttack(true, false);
    zeroOwner();
    setState(CursedWeaponState.DROPPED);
    oldItem.dropToTheGround(player, (L2NpcInstance) null);
    _loc = oldItem.getLoc();
    oldItem.setDropTime(0);
    _item = oldItem;
    player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_DROPPED_S1).addItemName(oldItem.getItemId()));
    player.refreshExpertisePenalty();
View Full Code Here

    if (dropedItem == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    dropedItem.dropToTheGround(activeChar, _loc);
    Log.LogItem(activeChar, Log.Drop, dropedItem);
    activeChar.updateStats();
  }
}
View Full Code Here

  private void dropItem(L2NpcInstance actor, int id, int count)
  {
    L2ItemInstance item = ItemTable.getInstance().createItem(id);
    item.setCount(count);
    item.dropToTheGround(null, actor);
  }
}
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.