View Single Post
  #1  
Old 11-17-2009, 11:43 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default Help with item turn in quest

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);	}

}
Reply With Quote