I'm trying to spawn a Translocator NPC (Gandalf) at my player character when I shout the word "Gandalf" from any zone. This is the code I put into global_player.pl, but it's not working:
Code:
sub EVENT_ENTERZONE {
$client->quest::unique_spawn(2001017,0,0,1985,-2243,-75);
}
I'm having a really hard time. I don't know how to spawn the NPC, nor do I know how to get it to spawn at the player instead of at the coordinates. I feel like I'm close, but obviously I have no idea what I'm doing. Coding is my weakness so I rely heavily on reverse engineering someone else's similar code, which is why I have been sifting through other scripts in the quests folder trying to find one that spawns an NPC at the player (like how pet's spawn when summoned) but it's proven illusive.
Can anyone point me in the right direction?