9
3

aBlackMagivisionary1.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/ShatteredVale3/aBlackMagivisionary1.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.23 05:08:01
  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. function spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function death(NPC, Spawn)
  20. local zone = GetZone(Spawn)
  21. local BlackMagiElder1 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_1)
  22. local BlackMagiElder2 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_2)
  23. local BlackMagiElder3 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_3)
  24. local BlackMagiElder4 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_4)
  25. local BlackMagiElder5 = GetSpawnByLocationID(zone, BlackMagiElderLocationID_5)
  26. local Spawn1 = GetSpawnByLocationID(zone, 361942)
  27. local Spawn2 = GetSpawnByLocationID(zone, 361945)
  28. local Spawn3 = GetSpawnByLocationID(zone, 133772500)
  29. if not IsAlive(Spawn1) and not IsAlive(Spawn2) and not IsAlive(Spawn3) then
  30. SpawnSet(BlackMagiElder1, "attackable", 1)
  31. SpawnSet(BlackMagiElder1, "show_level", 1)
  32. SpawnSet(BlackMagiElder1, "faction", 1)
  33. SpawnSet(BlackMagiElder2, "attackable", 1)
  34. SpawnSet(BlackMagiElder2, "show_level", 1)
  35. SpawnSet(BlackMagiElder2, "faction", 1)
  36. SpawnSet(BlackMagiElder3, "attackable", 1)
  37. SpawnSet(BlackMagiElder3, "show_level", 1)
  38. SpawnSet(BlackMagiElder3, "faction", 1)
  39. SpawnSet(BlackMagiElder4, "attackable", 1)
  40. SpawnSet(BlackMagiElder4, "show_level", 1)
  41. SpawnSet(BlackMagiElder4, "faction", 1)
  42. SpawnSet(BlackMagiElder5, "attackable", 1)
  43. SpawnSet(BlackMagiElder5, "show_level", 1)
  44. SpawnSet(BlackMagiElder5, "faction", 1)
  45. end
  46. end
  47. function respawn(NPC)
  48. spawn(NPC)
  49. end