Using your last EVENT_ITEM he simply just stands there as always what I did was used your code with the exception of one bracket I took out.
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 1079 => 1) && ($gold==15)) {
if($class eq "Wizard") {
quest::exp(15);
quest::summonitem(15036);
quest::summonitem(15377);
quest::summonitem(15378);
quest::summonitem(15230);
quest::summonitem(15376);
}
else {
quest::say("You are no Wizard, and I know a Wizard when I see one!");
quest::summonitem(1079);
}
} ########### REMOVED
else {
quest::say("I have no use for this, $name.");
plugin::return_items(\%itemcount);
}
}
Removing that bracket makes the quest work, but if you just turn in the book, he simply keeps it, and says "I have no use for this, $name." Giving him any other item he returns.
Since you posted I've tried:
Code:
elsif (plugin::check_handin(\%itemcount, 1079 => 1)) {
quest::say("I cannot provide the knowledge you seek, $name.");
quest::summonitem(1079);
}
and I've tried,
Code:
if (plugin::check_handin(\%itemcount, 1079 => 1)) {
quest::say("I cannot provide the knowledge you seek, $name.");
quest::summonitem(1079);
}
... basically im just trying to figure out how the player can get the book back if the money isn't handed in with it.
Everything else works.
This is what I have in the .pl right now for sub EVENT_ITEM for the time being.
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 1079 => 1))
{
quest::exp(11);
quest::summonitem(15036);
quest::summonitem(15377);
quest::summonitem(15378);
quest::summonitem(15230);
quest::summonitem(15376);
}
else
{
quest::say("Don't waste my time, $race!");
plugin::return_items(\%itemcount);
}
}
I found out about #reloadquest... and that has been really helpful in actually testing the script so far.
I thought I had to completely reboot the server everytime I tried a new script... no wonder my first script took 6 hours lol!