Thread: Quest Help
View Single Post
  #12  
Old 09-17-2011, 02:34 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Starting to look much better than it did at first.

One tip would be to reduce your script down to minimum if you are having issues like that and work up from there. So, in this case, you might start like this:

Code:
sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 1079 => 1, 12021 => 1)) {
    quest::say("The turn in worked!");
  }
}
Then try that turn in and see if it works. If so, add more:

Code:
sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 1079 => 1, 12021 => 1)) {
    plugin::Whisper("Thanks for these items, $name! Here's your reward.");
    plugin::vtell("thanks","iksar","male");
    quest::summonitem(1442);
  }
}
If that test is good, you can then add all of your varied copy/paste turn-ins to that list and it should work fine.

You should also add a return items plugin to the end of your items script. It will only return items that are not used up by the check_handin plugin, so you don't need to have it in an else statement or anything.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote