9
3

ThunderingSteppes.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : ThunderingSteppes.lua
  3. Script Purpose : Handle various things around the steppes
  4. Script Author : Jabantiz
  5. Script Date : 7/11/2015
  6. Script Notes :
  7. --]]
  8. -- Location ID's for the doors
  9. local NorthDoor = 1437017
  10. local SouthDoor = 1437013
  11. local NorthDoorClosed = 352
  12. local SouthDoorClosed = 170
  13. function preinit_zone_script(Zone)
  14. RemoveWidgetFromZoneMap(Zone, 2909687498)
  15. RemoveWidgetFromZoneMap(Zone, 506885674)
  16. RemoveWidgetFromZoneMap(Zone, 800135876)
  17. RemoveWidgetFromZoneMap(Zone, 2944954936)
  18. end
  19. function init_zone_script(zone)
  20. --SetLocationProximityFunction(zone, 172.5, 18.5, -880.97, 10, "GriffonTower", "Leave") -- Ant Gate
  21. --SetLocationProximityFunction(zone, -174.68, 13.41, 509.50, 10, "GriffonTower", "Leave") -- SE Station
  22. --SetLocationProximityFunction(zone, 254.41, -8.92, 1343.37, 10, "GriffonTower", "Leave") -- ColdWind
  23. --SetLocationProximityFunction(zone, 622.95, 18.45, -234.11, 10, "GriffonTower", "Leave") -- Thundermist
  24. --SetLocationProximityFunction(zone, -394.25, -23.21, -418.25, 10, "GriffonTower", "Leave") -- Docks
  25. end
  26. function player_entry(zone, player)
  27. end
  28. function enter_location(zone, spawn, grid)
  29. end
  30. function leave_location(zone, spawn, grid)
  31. end
  32. function dawn(zone)
  33. local door1 = GetSpawnByLocationID(zone, NorthDoor)
  34. local door2 = GetSpawnByLocationID(zone, SouthDoor)
  35. if door1 ~= nil then
  36. if GetHeading(door1) == NorthDoorClosed then
  37. UseWidget(door1)
  38. end
  39. end
  40. if door2 ~= nil then
  41. if GetHeading(door2) == SouthDoorClosed then
  42. UseWidget(door2)
  43. end
  44. end
  45. end
  46. function dusk(zone)
  47. local door1 = GetSpawnByLocationID(zone, NorthDoor)
  48. local door2 = GetSpawnByLocationID(zone, SouthDoor)
  49. if door1 ~= nil then
  50. if GetHeading(door1) ~= NorthDoorClosed then
  51. UseWidget(door1)
  52. end
  53. end
  54. if door2 ~= nil then
  55. if GetHeading(door2) ~= SouthDoorClosed then
  56. UseWidget(door2)
  57. end
  58. end
  59. end
  60. function GriffonTower(zone, Spawn)
  61. if IsPlayer(Spawn) and IsOnAutoMount(Spawn) then
  62. EndAutoMount(Spawn)
  63. end
  64. end
  65. function Leave(zone, Spawn)
  66. end