Randymarsh9
06-30-2009, 12:46 AM
I am trying to make something that will basically move someone away if they don't have an item in their inventory and then let them pass by if they do have it.
sub EVENT_SPAWN{
my $x;
my $y;
$x = $npc->GetX();
$y = $npc->GetY();
quest::set_proximity( $x-30,$x+30,$y-5,$y+5);
}
sub EVENT_ENTER{
if(plugin::check_hasitem($client, 1531)) {
quest::emote("You pass beyond the barrier");
}
elsif{
quest::movechar(189,0,0,0);
}
}
Nothing happens either way. I never really use proximities, so I'm sure this is another simple mistake
sub EVENT_SPAWN{
my $x;
my $y;
$x = $npc->GetX();
$y = $npc->GetY();
quest::set_proximity( $x-30,$x+30,$y-5,$y+5);
}
sub EVENT_ENTER{
if(plugin::check_hasitem($client, 1531)) {
quest::emote("You pass beyond the barrier");
}
elsif{
quest::movechar(189,0,0,0);
}
}
Nothing happens either way. I never really use proximities, so I'm sure this is another simple mistake