Log in

View Full Version : itemcount question


molimo140
08-31-2004, 04:26 PM
Say you turn in a stack of fishing grubs to an npc

(say item id of fishing grubs is 0001)

if you do

itemcount{0001}

will it return the value 1 or the value 20?

ty in advance

Cisyouc
08-31-2004, 04:59 PM
I'm not sure. Test it using this script.
#Itemcount Testing
#perlQuest
sub EVENT_ITEM
{
if($itemcount{1001} == 1)
{
quest::say("You have turned in 1 item.");
}
if($itemcount{1001} == 20)
{
quest::say("You have turned in 20 items.");
}
}