aSabertoothminer.lua 793 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/aSabertoothminer.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.11 06:07:13
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll2.lua")
  9. local TheChomper = 5696
  10. function spawn(NPC)
  11. AddTimer(NPC,math.random(2500,6000),"AttackRocks")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function death(NPC, Spawn)
  20. if QuestIsComplete(Spawn, TheChomper) or HasItem(Spawn, 1285) then
  21. RemoveLootItem(NPC, 1285)
  22. end
  23. end
  24. function AttackRocks(NPC)
  25. if not IsInCombat(NPC) then
  26. PlayAnimation(NPC,10784)
  27. end
  28. AddTimer(NPC, math.random(3000,6000), "AttackRocks")
  29. end