Tirnath.lua 744 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/Freeport/Tirnath.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.07.19 11:07:03
  5. Script Purpose :
  6. :
  7. --]]
  8. local ContharID = 57100
  9. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  10. function spawn(NPC)
  11. AddTimer(NPC, 500, "follow", 1)
  12. end
  13. function follow(NPC, Spawn)
  14. local zone = GetZone(NPC)
  15. local Conthar = GetSpawnByLocationID(zone, ContharID)
  16. SetFollowTarget(NPC, Conthar)
  17. if not IsFollowing(NPC) then
  18. ToggleFollow(NPC)
  19. SetSpeed(NPC, 2)
  20. end
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. GenericGuardHail(NPC, Spawn, Faction)
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end