EnchantedLands.lua 1.1 KB

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : EnchantedLands.lua
  3. Script Purpose : Handle various things around Enchanted Lands
  4. Script Author : Cynnar
  5. Script Date : 1/25/2016
  6. Script Notes :
  7. --]]
  8. function init_zone_script(zone)
  9. SetLocationProximityFunction(zone, -194.83, 3.27, -292.25, 10, "StableMasters", "Leave") -- Rivervale
  10. SetLocationProximityFunction(zone, 303.07, 1.10, -244.39, 10, "StableMasters", "Leave") -- The Great Guard
  11. SetLocationProximityFunction(zone, 25.89, 1.17, -244.39, 10, "StableMasters", "Leave") -- Bobick Village
  12. SetLocationProximityFunction(zone, -186.23, -3.29, -605.62, 10, "StableMasters", "Leave") -- Chompers Pond
  13. SetLocationProximityFunction(zone, 157.14, 25.31, -777.63, 10, "StableMasters", "Leave") -- Goblin Pass
  14. SetLocationProximityFunction(zone, -228.61, 24.40, -995.37, 10, "StableMasters", "Leave") -- Bramblefoot Hills
  15. SetLocationProximityFunction(zone, -604.17, -0.92, -918.46, 10, "StableMasters", "Leave") -- Misty Grove
  16. end
  17. function StableMasters(zone, Spawn)
  18. if IsPlayer(Spawn) and IsOnAutoMount(Spawn) then
  19. EndAutoMount(Spawn)
  20. end
  21. end
  22. function Leave(zone, Spawn)
  23. end