View Single Post
  #5  
Old 12-17-2015, 04:43 AM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

You probably have it figured out by now, but, just in case.

Code:
sub EVENT_ITEM {
	plugin::mq_process_items(\%itemcount); ## Place all items from the hash %itemcount into MQ entity variable (if a MQ'able quest)
	
	if (plugin::check_handin(\%itemcount, 1001 => 1)) { ## Did they give you a cloth cap as the MQ item?
		plugin::mq_process_items(1001 => 1); ## They did so lets add that 1 cloth cap to the MQ entity variable
	}
	elsif (plugin::check_mq_handin(1001 => 1, 1002 => 1)) { ## lets check entire MQ entity var to see if all expected items are in it
		quest::say("Yay you did it, you completed the MQ cycle!");
		plugin::clear_mq_handin();
    } else {
		plugin::return_items(\%itemcount);	
	}
}
Reply With Quote