aBlackMagivisionary2.lua 1.9 KB

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