HoldOfPrexus.lua 667 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : ZoneScripts/HoldOfPrexus.lua
  3. Script Purpose : Base Functions
  4. Script Author : TyroneSWG
  5. Script Date : 6/12/2020
  6. Script Notes : Guide zone
  7. --]]
  8. function init_zone_script(Zone)
  9. SetLocationProximityFunction(Zone, 670, -36, 1490, 50, "Guide_InHall")
  10. SetLocationProximityFunction(zone, 0, 0, 0, 0, "Guide_Out")
  11. end
  12. function Guide_InHall(Zone, Player)
  13. SendPopUpMessage(Player, "The Hold of Prexus blesses you with immunity.", 244, 66, 134)
  14. AddImmunitySpell()
  15. end
  16. function Guide_Out(Zone, Player)
  17. RemoveImmunitySpell()
  18. SendPopUpMessage(Player, "Your immunity has been removed.")
  19. Zone(GetZoneID(antonica))
  20. end