I think that needs to be plugin::check_handin(\%itemcount, 1659 => 1), => rather than ==
You should take a look at plugins/globals.pl.
functions like plugin::takeItems(...) and plugin::returnUnusedItems() are easier to use and you don't have to pass the item array.
|