aSabertoothminerNoMining.lua 807 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/aSabertoothminerNoMining.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.04.26 09:04:19
  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