ShakutoTheLost.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/ShatteredStillness/MakutoTheLost.lua
  3. Script Author : Neveruary
  4. Script Date : 2021.10.04 11:10:52
  5. Script Purpose : Governs the behavior of Shakuto the Lost in Shattered Stillness: Epic
  6. Script Notes : Shock of Poison needs implementation.
  7. Boss Mechanics : Casts custom spells every so often. Linked with Makuto the lost.
  8. --]]
  9. spells = {240107, 240003, 2000476} -- Shock of Poison
  10. function spawn(NPC)
  11. end
  12. function aggro(NPC, Spawn)
  13. end
  14. function spellLoop(NPC, Spawn) -- Loopback function for spellcasts.
  15. AddTimer(NPC, math.random(1500,2500), "spellChoice")
  16. end
  17. function spellChoice(NPC, Spawn) -- select a spell from table.
  18. local hated = GetMostHated(NPC)
  19. if hated ~= nil then
  20. FaceTarget(NPC, hated)
  21. CastSpell(hated, spells[math.random(#spells)], 3, NPC)
  22. end
  23. AddTimer(NPC, math.random(1500, 2500), "spellLoop")
  24. end
  25. function hailed(NPC, Spawn)
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end