9
3

Tseralith.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : SpawnScripts/The Vault of the Fallen/Tseralith.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.17 02:07:33
  5. Script Purpose :
  6. :
  7. --]]
  8. --- ALL SERVANTS OF TSERALITH ID'S
  9. local Servant1ID = 345605
  10. local Servant2ID = 345606
  11. local Servant3ID = 345607
  12. local Servant4ID = 345608
  13. local Servant5ID = 345609
  14. local Servant6ID = 345610
  15. function spawn(NPC)
  16. AddTimer(NPC, 3000, "tseralith0", 1)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. end
  21. function tseralith0(NPC, Spawn)
  22. PlayFlavor(NPC, "", "Summoning vengeance is foolish. You will now join my legion of souls.", "", 1689589577, 4560189, Spawn)
  23. AddTimer(NPC, 5000, "tseralith01", 1, Spawn)
  24. end
  25. function spawn_hands(NPC, Spawn)
  26. Say(NPC, "TEST")
  27. local zone = GetZone(NPC)
  28. local minion1 = GetSpawnByLocationID(zone, 345624)
  29. local minion2 = GetSpawnByLocationID(zone, 345625)
  30. if minion1 or minion2 == nil then
  31. SpawnByLocationID(zone, 345624)
  32. SpawnByLocationID(zone, 345625)
  33. end
  34. end
  35. function tseralith01(NPC, Spawn)
  36. PlayFlavor(NPC, "", "When it was done, it was done without question.", "", 1689589577, 4560189, Spawn)
  37. AddTimer(NPC, 30000, "spawn_hands", 1, Spawn)
  38. end
  39. function death(NPC, Spawn)
  40. AddTimer(NPC, 3000, "tseralith_death", 1, Spawn)
  41. end
  42. function tseralith_death(NPC, Spawn)
  43. local zone = GetZone(Spawn)
  44. local Servant1 = GetSpawnByLocationID(zone, Servant1ID)
  45. local Servant2 = GetSpawnByLocationID(zone, Servant2ID)
  46. local Servant3 = GetSpawnByLocationID(zone, Servant3ID)
  47. local Servant4 = GetSpawnByLocationID(zone, Servant4ID)
  48. local Servant5 = GetSpawnByLocationID(zone, Servant5ID)
  49. local Servant6 = GetSpawnByLocationID(zone, Servant6ID)
  50. KillSpawn(Servant1, null, 1)
  51. KillSpawn(Servant2, null, 1)
  52. KillSpawn(Servant3, null, 1)
  53. KillSpawn(Servant4, null, 1)
  54. KillSpawn(Servant5, null, 1)
  55. KillSpawn(Servant6, null, 1)
  56. end
  57. function respawn(NPC)
  58. spawn(NPC)
  59. end