I need help with a simple turn in.
In the script below you can give npc one out of many possible items, and then I want npc to give it right back to you.
If this would be just 1 item, it would be easy...
Suggestions?
Code:
sub EVENT_ITEM
{
if(plugin::check_handin(\%itemcount, 1060 => 1) ||
plugin::check_handin(\%itemcount, 1189 => 1) ||
plugin::check_handin(\%itemcount, 1190 => 1) ||
plugin::check_handin(\%itemcount, 1191 => 1) ||
plugin::check_handin(\%itemcount, 1192 => 1) ||
plugin::check_handin(\%itemcount, 1193 => 1) )
{
quest::say("Yes I recognize this item");
}
else
{
plugin::return_items(\%itemcount); }
}