View Single Post
  #3  
Old 06-05-2007, 11:44 AM
Budaworm
Fire Beetle
 
Join Date: Oct 2003
Posts: 20
Default

I still get the same problem even with putting a 1; at the end of the file. Here is what im doing for testing, I've made a npc with the quest script:
Code:
sub EVENT_SAY {
    if($text=~/Hail/i) {
        if(plugin::check_hasitem(1001)) {quest::say("Ah i see you have a cloth cap");}
    }
}
When I hail the npc I get this error
Code:
[Status] Script error: qst189031::EVENT_SAY - Perl runtime error: Can't call method "GetItemIDAt" on an undefined value at plugins/check_hasitem.pl line 9.
So I'm guessing I need to send the $client info into the plugin so it can run the command $client->GetItemIDAt(); but I don't know how to do that or is it not possible to do?
Reply With Quote