View Single Post
  #12  
Old 01-31-2010, 04:12 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

OK, using Rev1202 code, do it like this. In your NPC quest:
Code:
sub EVENT_SPAWN
{
        my $x = $npc->GetX();
        my $y = $npc->GetY();
        my $range = 12;
        quest::set_proximity($x - $range, $x + $range, $y - $range, $y + $range);

}

sub EVENT_ENTER {

    quest::popup("Test Popup", "Test popup with ID 10", 10);
}
And in player.pl, add
Code:
sub EVENT_POPUPRESPONSE
{
        if($popupid eq "10")
        {
                quest::movepc(176,1900.0,-474.8,24.75);
        }

}
Reply With Quote