Commonlands.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. --local SearchForTheMissing = 573
  9. --local AFesteringProblem = 5800
  10. function init_zone_script(zone)
  11. SetLocationProximityFunction(zone, 757.39, -31.98, -585.17, 10, "GriffonTower", "Leave") -- Nektulos (from Freeport)
  12. SetLocationProximityFunction(zone, -599.41, -33.73, -771.12, 10, "GriffonTower", "Leave") -- Freeport (from Nektulos)
  13. SetLocationProximityFunction(zone, 523.49, -33.40, 747.70, 10, "GriffonTower", "Leave") -- HiddenCanyon (from Freeport)
  14. SetLocationProximityFunction(zone, 534.17, -33.42, 757.78, 10, "GriffonTower", "Leave") -- HiddenCanyon (from Nektulos)
  15. SetLocationProximityFunction(zone, 771.67, -31.97, -588.20, 10, "GriffonTower", "Leave") -- Nektulos (from HiddenCanyon)
  16. SetLocationProximityFunction(zone, -597.07, -33.75, -758.43, 10, "GriffonTower", "Leave") -- Freeport (from HiddenCanyon)
  17. end
  18. function player_entry(zone, player)
  19. SendPopUpMessage(player, "The Commonlands", 230, 230, 230)
  20. end
  21. function enter_location(zone, spawn, grid)
  22. end
  23. function leave_location(zone, spawn, grid)
  24. end
  25. function dawn(zone)
  26. end
  27. function dusk(zone)
  28. end
  29. function GriffonTower(zone, Spawn)
  30. if IsPlayer(Spawn) and IsOnAutoMount(Spawn) then
  31. EndAutoMount(Spawn)
  32. end
  33. end
  34. function Leave(zone, Spawn)
  35. end