AStoneGuardian.lua 797 B

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