View Single Post
  #2  
Old 06-30-2009, 01:36 AM
Sion
Fire Beetle
 
Join Date: Jun 2008
Location: -
Posts: 14
Default

This should work:
Code:
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");
 }
else{
 quest::movepc(189,0,0,0);
 }
}
It looks like you used elseif instead of else and used quest::movechar when its supposed to be quest::movepc.
Reply With Quote