GuardianAnkhemaufut.lua 919 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/ScarabHive/GuardianAnkhemaufut.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.16 10:10:26
  5. Script Purpose :
  6. :
  7. --]]
  8. local Guardian_AnkhentarisID = 619216
  9. local Guardian_AnkhumyalID = 619232
  10. local Guardian_AnkhrenlaiID = 619233
  11. local Queen = 619238
  12. function spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function death(NPC, Spawn)
  18. local zone = GetZone(Spawn)
  19. local Guardian_Ankhentaris = GetSpawnByLocationID(zone, 619216)
  20. local Guardian_Ankhumyal = GetSpawnByLocationID(zone, Guardian_AnkhumyalID)
  21. local Guardian_Ankhrenlai = GetSpawnByLocationID(zone, Guardian_AnkhrenlaiID)
  22. if not IsAlive(Guardian_Ankhentaris) and not IsAlive(Guardian_Ankhumyal) and not IsAlive(Guardian_Ankhrenlai) then
  23. SpawnByLocationID(zone, Queen)
  24. end
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end