To start :P the script works fine in terms of it accomplishes what it is supposed to.
The problem is that the script completely ignores the level check for the player.
I would like it to be so that the script will not work and hand back the items if the player is NOT exactly level 65.
Checking the script with a command line prompt using perl it goes through without problem.
I just came back to scripting for eqemu and am sure I am missing something simple so would anyone please allow me to feel very stupid and point out what im missing lol
Code:
sub EVENT_SAY{
my $saylink1 = quest::saylink("Experienced");
if ($text =~/Hail/i){
$client->Message(315, "Greetings $class, I have been waiting for someone [$saylink1] such as yourself");
}
if ($text=~ /Experienced/i) {
$client->Message(315, "To prove your experience I require a Tooth from Trakanon in Sebelis, a Robe of the Kedge from Phingegl Autropos in Kedge Keep and an Incarnadine Helm from Overking Bathezid in Chardok");
}
}
sub EVENT_ITEM
{
if($ulevel = 65)
{
if(plugin::check_handin(\%itemcount, 7276 => 1, 1253 => 1, 4132 => 1))
{
$client->Message(315, "Shado Feralis will be quite impressed with your progress you should speak to him.");
quest::level(66);
}
else {
$client->Message(315, "I have no need for this item $name, you can have it back.");
plugin::return_items(\%itemcount);
}
}
}