9
3

aBlackMagielder2.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/ShatteredVale3/aBlackMagielder2.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.23 06:08:13
  5. Script Purpose :
  6. :
  7. --]]
  8. ------ Black Magi Elder's Location ID's
  9. BlackMagiElderLocationID_1 = 361948
  10. BlackMagiElderLocationID_2 = 361951
  11. BlackMagiElderLocationID_3 = 361952
  12. BlackMagiElderLocationID_4 = 133772498
  13. BlackMagiElderLocationID_5 = 133772499
  14. ---A Portal Abhorrent ID
  15. local APortalAbhorrent = 361963
  16. --- VISUAL EFFECTS
  17. local InvisibleCubeID= 459414
  18. function spawn(NPC)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end
  23. function death(NPC, Spawn)
  24. local zone = GetZone(Spawn)
  25. local BlackMagiElder1 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_1)
  26. local BlackMagiElder2 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_2)
  27. local BlackMagiElder3 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_3)
  28. local BlackMagiElder4 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_4)
  29. local BlackMagiElder5 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_5)
  30. local InvisibleCube = GetSpawnByLocationID(zone, InvisibleCubeID)
  31. if not IsAlive(BlackMagiElder1) and not IsAlive(BlackMagiElder3) and not IsAlive(BlackMagiElder4) and not IsAlive(BlackMagiElder5) then
  32. SpawnByLocationID(zone, APortalAbhorrent)
  33. SpawnSet(InvisibleCube, "visual_state", 2074)
  34. end
  35. end
  36. function respawn(NPC)
  37. spawn(NPC)
  38. end