Advertisement
Barebones

Current Tele Lua

Dec 1st, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.21 KB | None | 0 0
  1. local NPC_ID = 900001
  2.  
  3. local T =
  4. {
  5. -- Horde Cities
  6.  
  7. {1, 1503, -4415.5, 22, 0}, -- Orgrimmar intid 1
  8. {0, 1831, 238.5, 61.6, 0}, -- Undercity intid 2
  9. {1, -1278, 122, 132, 0}, -- Thunderbluff intid 3
  10. {530, 9484, -7294, 15, 0}, -- Silvermoon intid 4
  11.  
  12. -- Ally Cities
  13.  
  14. {0, -8905, 560, 94, 0.62}, -- Stormwind intid 5
  15. {0, -4795, -1117, 499, 0}, -- Ironforge intid 6
  16. {1, 9952, 2280.5, 1342, 1.6}, -- Darnassus intid 7
  17. {530, -3863, -11736, -106, 2}, -- The Exodar intid 8
  18.  
  19. -- Kalimdor
  20. {530, -4216, -12336, 4, 6} --Azuremyst Isle intid 9
  21. {1, 1007, -4446, 11, 0} --Durotar intid 10
  22. {1, -2192, -736, -13, 0} --Mulgore intid 11
  23. {1, 10111, 1557, 1324, 4} --Teldrassil intid 12
  24. {1, 3341, -4603, 92, 5} --Azshara intid 13
  25. {530, -1993, -11475, 63, 5} --Bloodmyst Isle intid 14
  26. {1, 5756, 298, 20, 6} --Darkshore intid 15
  27. {1, 48, -2715, 91, 0} --Barrens intid 16
  28. {1, 7654, -2232, 462, 6} --Moonglade intid 17
  29. {1, 1928, -2165, 93, 0} --Ashenvale intid 18
  30. {1, 1570, 1031, 137, 3} --Stonetalon Mountains intid 19
  31. {1, -606, 2211, 92, 0} --Desolace intid 20
  32. {1, -4043, -2991, 36, 3} --Dustwallow Marsh intid 21
  33. {1, -4841, 1309, 81, 1} --Feralas intid 22
  34. {1, -4969, -1726, -62, 3} --Thousand Needles intid 23
  35. {1, 4102, -1006, 272, 0} --Felwood intid 24
  36. {1, -7931., -3414, 80, 0} --Tanaris intid 25
  37. {1, -7943, -2119, -218, 6} --Un'Goro Crater intid 26
  38. {1, 6759, -4419, 763, 4} --Winterspring intid 27
  39. {1, -7426, 1005, 1, 3} --Silithus intid 28
  40.  
  41. -- Eastern Kingdoms
  42.  
  43. -- Outlands Locations
  44. {530, 1481, 6829, 107, 6}, -- Blade's Edge intid 29
  45. {530, -249, 947, 85, 2}, -- Hellfire intid 30
  46. {530, -1769, 7150, -9, 2}, -- Nagrand intid 31
  47. {530, 3043, 3645, 143, 2}, -- Netherstorm intid 32
  48. {530, -3034, 2937, 87, 5}, -- Shadowmoon intid 33
  49. {530, -1942, 4689, -2, 5}, -- Terokkar intid 34
  50. {530, -217, 5488, 23, 2}, -- Zangarmarsh intid 35
  51. {530, -1822, 5417, 1, 3}, -- Shattrath intid 36
  52.  
  53. -- Instances
  54.  
  55. -- Raids
  56.  
  57. -- PvP Locations
  58. {0, -13229, 226, 33, 1}, -- Gurubashi intid 37
  59. {1, -3669, 1094, 160, 3}, -- Dire Maul intid 38
  60. {530, -1983, 6562, 12, 2}, -- Nagrand intid 39
  61. {530, 2910, 5976, 2, 4}, -- Blade's Edge intid 40
  62. }
  63.  
  64. function Teleporter_Gossip(event, plr, unit)
  65. plr:GossipMenuAddItem(0, "Main Cities", 0, 1001, 0)
  66. plr:GossipMenuAddItem(0, "Kalimdor Locations", 0, 1002, 0)
  67. plr:GossipMenuAddItem(0, "Eastern Kingdoms Locations", 0, 1003, 0)
  68. plr:GossipMenuAddItem(0, "Outlands Locations", 0, 1004, 0)
  69. plr:GossipMenuAddItem(0, "Dungeons", 0, 1005, 0)
  70. plr:GossipMenuAddItem(0, "Raids", 0, 1006, 0)
  71. plr:GossipMenuAddItem(0, "PvP Locations", 0, 1007, 0)
  72. plr:GossipSendMenu(1, unit)
  73. end
  74.  
  75. function Teleporter_Event(event, plr, unit, arg2, intid)
  76. if(intid >= 1) and (intid <= 100) then
  77. plr:Teleport(T[intid][1], T[intid][2], T[intid][3], T[intid][4], T[intid][5], T[intid][6], T[intid][7])
  78. elseif(intid == 1000) then
  79. Teleporter_Gossip(event, plr, unit)
  80. elseif(intid >= 1001) and (intid <= 1007) then
  81. if(intid == 1001) then
  82. if(plr:GetTeam() == 1) then
  83. plr:GossipMenuAddItem(2, "Orgrimmar", 0, 1)
  84. plr:GossipMenuAddItem(2, "Undercity", 0, 2)
  85. plr:GossipMenuAddItem(2, "Thunderbluff", 0, 3)
  86. plr:GossipMenuAddItem(2, "Silvermoon", 0, 4)
  87. plr:GossipMenuAddItem(2, "Shattrath", 0, 36)
  88. else
  89. plr:GossipMenuAddItem(2, "Stormwind", 0, 5)
  90. plr:GossipMenuAddItem(2, "Ironforge", 0, 6)
  91. plr:GossipMenuAddItem(2, "Darnassus", 0, 7)
  92. plr:GossipMenuAddItem(2, "The Exodar", 0, 8)
  93. plr:GossipMenuAddItem(2, "Shattrath", 0, 36)
  94. end
  95. elseif(intid == 1002) then
  96. plr:GossipMenuAddItem(2, "Azuremyst Isle", 0, 9)
  97. plr:GossipMenuAddItem(2, "Durotar", 0, 10)
  98. plr:GossipMenuAddItem(2, "Mulgore", 0, 11)
  99. plr:GossipMenuAddItem(2, "Teldrassil", 0, 12)
  100. plr:GossipMenuAddItem(2, "Azshara", 0, 13)
  101. plr:GossipMenuAddItem(2, "Bloodmyst Isle", 0, 14)
  102. plr:GossipMenuAddItem(2, "Darkshore", 0, 15)
  103. plr:GossipMenuAddItem(2, "Barrens", 0, 16)
  104. plr:GossipMenuAddItem(2, "Moonglade", 0, 17)
  105. plr:GossipMenuAddItem(2, "Ashenvale", 0, 18)
  106. plr:GossipMenuAddItem(2, "Stonetalon Mountains", 0, 19)
  107. plr:GossipMenuAddItem(2, "Desolace", 0, 20)
  108. plr:GossipMenuAddItem(2, "Dustwallow Marsh", 0, 21)
  109. plr:GossipMenuAddItem(2, "Feralas", 0, 22)
  110. plr:GossipMenuAddItem(2, "Thousand Needles", 0, 23)
  111. plr:GossipMenuAddItem(2, "Felwood", 0, 24)
  112. plr:GossipMenuAddItem(2, "Tanaris", 0, 25)
  113. plr:GossipMenuAddItem(2, "Un'Goro Crater", 0, 26)
  114. plr:GossipMenuAddItem(2, "Winterspring", 0, 27)
  115. plr:GossipMenuAddItem(2, "Silithus", 0, 28)
  116. elseif(intid == 1004) then
  117. plr:GossipMenuAddItem(2, "Blade's Edge Mountains", 0, 29)
  118. plr:GossipMenuAddItem(2, "Hellfire Peninsula", 0, 30)
  119. plr:GossipMenuAddItem(2, "Nagrand", 0, 31)
  120. plr:GossipMenuAddItem(2, "Netherstorm", 0, 32)
  121. plr:GossipMenuAddItem(2, "Shadowmoon Valley", 0, 33)
  122. plr:GossipMenuAddItem(2, "Terokkar Forest", 0, 34)
  123. plr:GossipMenuAddItem(2, "Zangramarsh", 0, 35)
  124. elseif(intid == 1007) then
  125. plr:GossipMenuAddItem(9, "Gurubashi Arena", 0, 37)
  126. plr:GossipMenuAddItem(9, "Dire Maul Arena", 0, 38)
  127. plr:GossipMenuAddItem(9, "Nagrand Arena", 0, 39)
  128. plr:GossipMenuAddItem(9, "Blade's Edge Arena", 0, 40)
  129. end
  130. plr:GossipMenuAddItem(0, "Back", 0, 1000)
  131. plr:GossipSendMenu(1, unit)
  132. end
  133. end
  134.  
  135. RegisterCreatureGossipEvent(NPC_ID, 1, Teleporter_Gossip)
  136. RegisterCreatureGossipEvent(NPC_ID, 2, Teleporter_Event)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement