AKnowledgeGuardian.lua 740 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/SorcerersTrial/AKnowledgeGuardian.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.13 04:11:56
  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. Trial4Done(Ring,Spawn)
  23. end
  24. end
  25. function DespawnAnim(NPC,Spawn)
  26. Despawn(NPC)
  27. end