View Single Post
  #5  
Old 04-24-2006, 04:25 AM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default

What i wrote previously has a correct syntax but won't work due to recent changes in the plugin::check_handin method.

You MUST write your quest like that :

Code:
sub EVENT_ITEM {
  if ($class =="Warrior") {
    if (plugin::check_handin(\%itemcount, 6164 => 1)) {
       ... do stuff here
    }
  }

  if ($class == "Paladin") {
    if (plugin::check_handin(\%itemcount, 6164 => 1)) {
       ... do stuff here
    }
  }

  ...
  ...

  plugin::return_items(\%itemcount);
}
In my previous code, the test for the paladin would never be valid because the item will disappear of the list during the warrior's test. I m still not used to that new check_handin, sorry for the error
__________________
Muuss - [PEQGC] Dobl, the ogre that counts for 2 !
http://www.vilvert.fr/page.php?id=10
Reply With Quote