AnEnergyKeeper.lua 734 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/SorcerersTrial/AnEnergyKeeper.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.13 02:11:35
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/SorcerersTrial/dpoinvisiblecube.lua")
  9. require "SpawnScripts/Generic/CombatModule"
  10. function spawn(NPC, Spawn)
  11. combatModule(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function death(NPC,Spawn)
  17. AddTimer(NPC,1800,"DespawnAnim",1,Spawn)
  18. ApplySpellVisual(NPC,101)
  19. local zone = GetZone(Spawn)
  20. local Ring = GetSpawnByLocationID(zone,133780600)
  21. if Ring ~= nil then
  22. Trial1Done(Ring,Spawn)
  23. end
  24. end
  25. function DespawnAnim(NPC,Spawn)
  26. Despawn(NPC)
  27. end