9
3

aTrainedWolf.lua 698 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/aTrainedWolf.lua
  3. Script Author : Cynnar
  4. Script Date : 2017.01.17 12:01:01
  5. Script Purpose : Follow a Tunarian Wolfmaster
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 500, "followmaster")
  10. end
  11. function followmaster(NPC, Spawn)
  12. local zone = GetZone(NPC)
  13. local wolfmasterplacement = GetSpawnByLocationID(zone, 394954)
  14. local sli = GetSpawnLocationID(NPC)
  15. if sli == 394887 then
  16. SetFollowTarget(NPC, wolfmasterplacement)
  17. if not IsFollowing(NPC) then
  18. SetSpeed(NPC , 1)
  19. ToggleFollow(NPC)
  20. end
  21. end
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. end
  26. function respawn(NPC)
  27. end