Hi again.
I'm having a new issue with this - can't seem to figure out how to trigger the check. As I said above, I want it triggered as a player enters the proximity. Here is a sample of the code:
Quote:
sub EVENT_SPAWN
{
$x = $npc->GetX();
$y = $npc->GetY();
quest::set_proximity($x - 40, $x + 40, $y - 40, $y + 40);
}
sub EVENT_ENTER
{
if(plugin::check_hasitem($client, 59943))
{
quest::say("Hey cool, still have that charm I gave you huh!");
}
}
|
Problem is nothing happens when I run a character by him that has the item. Any suggestions?
Thanks a ton!
Sonic