abloodthirstyworg.lua 656 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/WailingCaves/abloodthirstyworg.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.07.08 06:07:51
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function FollowMaster(NPC, Spawn)
  11. local zone = GetZone(NPC)
  12. local WorgMaster = GetSpawnByLocationID(zone, 404870)
  13. if WorgMaster ~= nil then
  14. SetFollowTarget(NPC, WorgMaster)
  15. SetSpeed(NPC , 2)
  16. ToggleFollow(NPC)
  17. local Worg404851 = GetSpawnByLocationID(zone, 404851)
  18. if Worg404851 ~= nil then
  19. AddTimer(Worg404851, 500, "FollowMaster2")
  20. end
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end