GuardianAnkhentaris.lua 1002 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/ScarabHive/GuardianAnkhentaris.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.16 10:10:23
  5. Script Purpose :
  6. :
  7. --]]
  8. local Guardian_AnkhemaufutID = 619217
  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_Ankhemaufut = GetSpawnByLocationID(zone, Guardian_AnkhemaufutID)
  21. local Guardian_Ankhumyal = GetSpawnByLocationID(zone, Guardian_AnkhumyalID)
  22. local Guardian_Ankhrenlai = GetSpawnByLocationID(zone, Guardian_AnkhrenlaiID)
  23. if not IsAlive(Guardian_Ankhemaufut) and not IsAlive(Guardian_Ankhumyal) and not IsAlive(Guardian_Ankhrenlai) then
  24. SpawnByLocationID(zone, Queen)
  25. end
  26. end
  27. function respawn(NPC)
  28. spawn(NPC)
  29. end