View Single Post
  #1  
Old 02-22-2008, 06:09 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Is the hail not working at all? usually this happens to me if I have an error in my quest. At least with the few that I've written. Try just running it on the command line, "perl quest_name.pl". That'll at least tell you if it's having trouble compiling and where.

This seems to work for me for the EVENT_ITEM. The first if takes a single item, and the other takes 3 items. Using it this way instead of the way you have it allows them to put the items in the give container in any order. Since you want more than one item type per hand in you'd use an && between them in the if, like the last one. Hope this helps.

Code:
if(plugin::check_handin(\%itemcount,13309=>1)) {
     quest::say("Blah blah blah");
     quest::summonitem(2140);
     quest::exp(1000);

  } elsif (plugin::check_handin(\%itemcount,17970=>3)) {
     quest::say("Different blah blah blah");
     quest::summonitem(2915);
     quest::givecash(1,2,3,4);
     quest::exp(1000);
  } elsif ((plugin::check_handin(\%itemcount,6019=>1) && (plugin::check_handin(\%itemcount,27536=>3)) {
    quest::say("Here ya go. $name.  Have fun!");
    quest::summonitem(1118);
  }
Reply With Quote