- Joined
- Jul 14, 2008
- Messages
- 130
- Reaction score
- 2
This command is used to find the quantity of an item that a player has.
if the player does not have the item, it will return '0'
go into net.sf.odinms.scripting.AbstractPlayerInteraction.java
and insert
under the FUNCTION
ok XD pay attention cuz im going to release a "fake" HT hp bar.
if the player does not have the item, it will return '0'
go into net.sf.odinms.scripting.AbstractPlayerInteraction.java
and insert
Code:
public int getItemQuantity(int itemid) {
MapleInventoryType type = MapleItemInformationProvider.getInstance().getInventoryType(itemid);
MapleInventory iv = c.getPlayer().getInventory(type);
int quantity = iv.countById(itemid);
return quantity;
}
under the FUNCTION
Code:
public boolean haveItem(int itemid, int quantity, boolean checkEquipped, boolean greaterOrEquals)
ok XD pay attention cuz im going to release a "fake" HT hp bar.