Log in

View Full Version : item counts?


deaddraqear
04-11-2011, 04:09 PM
For the life of me, (been sick and almost no sleep isn't helping), i cant figure out how to get npc to give task credit for items, unless 1 at a time.. And npc eats any item handed in (i am probably using the plugin wrong?)

1 at a time works fine, but who really wants to do that? I have tried => and different variations.. Do i need to set it itemcount{66181} == 2 to update 2 on updatetaskactivity, 3 to 3 and 4 for 4? =\ Seems like it would work, but I'm sure theres an easier way?


sub EVENT_ITEM
{
if ($itemcount{66181} == 1)
{
quest::updatetaskactivity(1, 1)
}
else
{
plugin::return_items(\%itemcount);
}
}

Caryatis
04-11-2011, 04:35 PM
You are doing it wrong. You set up the task step with the NPC to hand to and the number of items required and thats it, no perl required.

deaddraqear
04-11-2011, 04:50 PM
Have tried it that way, was that way to begin with first actually. NPC eats items there too, and I followed the wiki exactly, have done #task reloadall.. Even deleted the task, and recreated it using the taskmaster tool...

Found the issue with that hah.. typo on npcid.. /facepalm..

Although, new issue.. Probably not for this section tho.. Thx =)