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
