NPC command, getItemQuantity

Junior Spellweaver
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
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.
 
Re: [Release] NPC command, getItemQuantity

im sneaking on the comp... and i got banned from it.. ooh wont be for another 2 - 3 hours until i can sneak on again..
 
Re: [Release] NPC command, getItemQuantity

im sneaking on the comp... and i got banned from it.. ooh wont be for another 2 - 3 hours until i can sneak on again..
ROFLMAO! What did you do to get banned from the Comp.???:eek:
 
Back