Package lineage2.gameserver.model.items

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


    {
      return;
    }
    ItemInstance item = ItemFunctions.createItem(itemId);
    item.setCount(count);
    item.dropToTheGround(player, npc);
  }
 
  /**
   * Method rollDrop.
   * @param count int
View Full Code Here


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

          player.getParty().distributeItem(player, sweep, null);
          continue;
        }
        if (!player.getInventory().validateCapacity(sweep) || !player.getInventory().validateWeight(sweep))
        {
          sweep.dropToTheGround(player, target);
          continue;
        }
        player.getInventory().addItem(sweep);
        SystemMessage smsg;
        if (item.count == 1)
View Full Code Here

          player.getParty().distributeItem(player, sweep, null);
          continue;
        }
        if (!player.getInventory().validateCapacity(sweep) || !player.getInventory().validateWeight(sweep))
        {
          sweep.dropToTheGround(player, targetMonster);
          continue;
        }
        player.getInventory().addItem(sweep);
        SystemMessage smsg;
        if (item.count == 1)
View Full Code Here

        ItemInstance harvest;
        if (!player.getInventory().validateCapacity(item.itemId, item.count) || !player.getInventory().validateWeight(item.itemId, item.count))
        {
          harvest = ItemFunctions.createItem(item.itemId);
          harvest.setCount(item.count);
          harvest.dropToTheGround(player, monster);
          continue;
        }
        player.getInventory().addItem(item.itemId, item.count);
        player.sendPacket(new SystemMessage(SystemMessage.S1_HARVESTED_S3_S2_S).addName(player).addNumber(item.count).addItemName(item.itemId));
        if (player.isInParty())
View Full Code Here

   * @param player Player
   */
  private void dropItem(NpcInstance block, int id, BlockCheckerEngine eng, Player player)
  {
    final ItemInstance drop = ItemFunctions.createItem(id);
    drop.dropToTheGround(block, Location.findPointToStay(block, 50));
    eng.addNewDrop(drop);
  }
}
View Full Code Here

   */
  void dropItem(NpcInstance actor, int id, int count)
  {
    final ItemInstance item = ItemFunctions.createItem(id);
    item.setCount(count);
    item.dropToTheGround(actor, Location.findPointToStay(actor, 100));
  }
}
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.