9
3

aBrokentuskprophetGurg.lua 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/aBrokentuskprophetGurg.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.03 01:01:32
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. RandomWeapons(NPC)
  12. OrcArmorCommon(NPC)
  13. Brokentusk(NPC)
  14. AddTimer(NPC, 9000, "Gurg")
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function Gurg(NPC)
  23. local zone = GetZone(NPC)
  24. local Gurg= GetSpawnByLocationID(zone, 133789171)
  25. local leaderX = GetX(Gurg)
  26. local leaderY = GetY(Gurg)
  27. local leaderZ = GetZ(Gurg)
  28. local speed = 2
  29. if Gurg ~=nil and not IsInCombat(NPC) then
  30. if GetDistance(NPC, Gurg) >= 2 then
  31. MoveToLocation(NPC, leaderX, leaderY, leaderZ, speed)
  32. end
  33. end
  34. AddTimer(NPC, 1500, "Gurg")
  35. end