public ExPutItemResultForVariationCancel(ItemInstance item) {
   _itemObjectId = item.getObjectId();
   _itemId = item.getId();
   _aug1 = 0x0000FFFF & item.getAugmentationId();
   _aug2 = item.getAugmentationId() >> 16;
   _price = RequestRefineCancel.getRemovalPrice(item.getTemplate());
 }
Пример #2
0
 @Override
 public void dropItem(Player player, ItemInstance item, long count, Location loc) {
   if (item.isEquipped()) {
     player.getInventory().unEquipItem(item);
     player.sendUserInfo();
   }
   item = player.getInventory().removeItemByObjectId(item.getObjectId(), count);
   if (item == null) {
     player.sendActionFailed();
     return;
   }
   Log.LogItem(player, Log.Drop, item);
   item.dropToTheGround(player, loc);
   player.disableDrop(1000);
   player.sendChanges();
 }