9
3

anarkofpower.lua 545 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Antonica/anarkofpower.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.15 04:07:30
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC,6000,"DespawnArk")
  10. end
  11. function casted_on(NPC, Spawn, SpellName)
  12. local Ark = GetSpawnLocationID(NPC)
  13. if SpellName == 'use' then
  14. DespawnArk(NPC)
  15. end
  16. end
  17. function DespawnArk(NPC)
  18. --local Ark = GetSpawnLocationID(NPC)
  19. --if Ark ~=nil then
  20. Despawn(Ark)
  21. --end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end