Okay, I have been experimenting with this code, and got it to (semi-) work. I replaced:
sub EVENT_ITEM {
if(plugin::check_handin(\%itemcount,13732 == 1))
{
with . . .
sub EVENT_ITEM {
if($item,13732)
{
I though, as long as I have only one item to turn in, maybe I won't need the count variable. I have no idea whether this is "sound" from a scripting standpoint, but the npc now takes the item and rewards me with the right exp, plat and faction. But now he'll also take just any item and give the same reward. Any way to modify this so only that item is recognized?
|