Commonlands.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : ZoneScripts/Commonlands.lua
  3. Script Purpose :
  4. Script Author : Neatz09
  5. Script Date : 2/2/2019
  6. Script Notes :
  7. --]]
  8. function init_zone_script(zone)
  9. SetLocationProximityFunction(zone, 757.39, -31.98, -585.17, 10, "GriffonTower", "Leave") -- Nektulos (from Freeport)
  10. SetLocationProximityFunction(zone, -599.41, -33.73, -771.12, 10, "GriffonTower", "Leave") -- Freeport (from Nektulos)
  11. SetLocationProximityFunction(zone, 523.49, -33.40, 747.70, 10, "GriffonTower", "Leave") -- HiddenCanyon (from Freeport)
  12. SetLocationProximityFunction(zone, 534.17, -33.42, 757.78, 10, "GriffonTower", "Leave") -- HiddenCanyon (from Nektulos)
  13. SetLocationProximityFunction(zone, 771.67, -31.97, -588.20, 10, "GriffonTower", "Leave") -- Nektulos (from HiddenCanyon)
  14. SetLocationProximityFunction(zone, -597.07, -33.75, -758.43, 10, "GriffonTower", "Leave") -- Freeport (from HiddenCanyon)
  15. end
  16. function player_entry(zone, player)
  17. SendPopUpMessage(Player, "The Commonlands", 230, 230, 230)
  18. end
  19. function enter_location(zone, spawn, grid)
  20. end
  21. function leave_location(zone, spawn, grid)
  22. end
  23. function dawn(zone)
  24. end
  25. function dusk(zone)
  26. end
  27. function GriffonTower(zone, Spawn)
  28. if IsPlayer(Spawn) and IsOnAutoMount(Spawn) then
  29. EndAutoMount(Spawn)
  30. end
  31. end
  32. function Leave(zone, Spawn)
  33. end