9
3

aSabertoothminer15-16.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/aSabertoothminer15-16.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.04.27 08:04:59
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll2.lua")
  9. local TheChomper = 5696
  10. function spawn(NPC)
  11. local Level = math.random(15,16)
  12. local level1 = 15
  13. local level2 = 16
  14. local difficulty1 = 8
  15. local hp1 = 1905
  16. local power1 = 640
  17. local difficulty2 = 8
  18. local hp2 = 2180
  19. local power2 = 670
  20. if Level == level1 then
  21. SpawnSet(NPC, "level", level)
  22. SpawnSet(NPC, "difficulty", difficulty1)
  23. SpawnSet(NPC, "hp", hp1)
  24. SpawnSet(NPC, "power", power1)
  25. elseif Level == level2
  26. then
  27. SpawnSet(NPC, "level", level)
  28. SpawnSet(NPC, "difficulty", difficulty2)
  29. SpawnSet(NPC, "hp", hp2)
  30. SpawnSet(NPC, "power", power2)
  31. end
  32. AddTimer(NPC,math.random(2500,6000),"AttackRocks")
  33. end
  34. function hailed(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. end
  37. function respawn(NPC)
  38. spawn(NPC)
  39. end
  40. function death(NPC, Spawn)
  41. if QuestIsComplete(Spawn, TheChomper) or HasItem(Spawn, 1285) then
  42. RemoveLootItem(NPC, 1285)
  43. end
  44. end
  45. function AttackRocks(NPC)
  46. if not IsInCombat(NPC) then
  47. PlayAnimation(NPC,10784)
  48. end
  49. AddTimer(NPC, math.random(3000,6000), "AttackRocks")
  50. end