aBlackMagivisionary3.lua 1.8 KB

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