Thread: Client Location
View Single Post
  #2  
Old 02-04-2017, 05:15 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

NPCs export $x, $y, $z, and $h. However, clients do not. So you'd have to do something like this.
Code:
sub EVENT_SAY {
    if ($text=~/#Test/i) {
        quest::spawn2(ID, 0, 0, $client->GetX(), $client->GetY(), $client->GetZ(), $client->GetHeading());
    }
}
Reply With Quote