Don't like ads? PRO users don't see any ads ;-)
Guest

[ArcEmu ALE]: Extended TeleportNPC

By: a guest on Apr 25th, 2012  |  syntax: Lua  |  size: 19.22 KB  |  hits: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --[[
  2.         * TeleportNPC
  3.         * Scripted by Psykko @ WoWBase
  4.         * Original script by Seejay @ Ac-Web
  5.        
  6.         * Note:
  7.         * Ive added Unused menupoints for funservers too, to activate them, easily delete the "[" infront of the line
  8.         * and dont forget fill out the coordinations on the first Locale Section!
  9. ]]--
  10.  
  11. --[[
  12.         Mall Locales
  13. ]]--
  14.  
  15. local global_mall = map, x, y, z, o
  16. local alliance_mall = map, x, y, z, o
  17. local horde_mall = map, x, y, z, o
  18.  
  19. --[[
  20.         Spell Locals
  21. ]]--
  22.  
  23. local spells =
  24. {
  25.         ["Warrior"] = {2457,1715,2687,71,355,7384,72,694,2565,676,20230,12678,5246,1161,871,2458,20252,18449,1680,6552,11578,1719,34428,23920,3411,55694,47450,47465,47520,47467,47436,47502,47437,47475,47440,47471,57755,57823,47488},
  26.         ["Deathknight"] = {48778,48266,50977,49576,49142,46584,48263,48528,45524,3714,48792,45529,56222,48743,56815,48707,48265,41999,47568,57623,49941,49909,51429,49916,42650,49930,49938,49895,49924,49921},
  27.         ["Druid"] = {5487,6795,18960,5229,8946,1066,768,2782,2893,5209,783,5225,22842,9634,20719,29166,22812,8983,18658,9913,33357,33786,26995,40120,62078,49802,53307,52610,48575,48476,48560,49803,48443,48562,53308,48577,53312,48574,48465,48570,48378,48480,48579,48477,50213,48461,48470,48467,48568,48451,48469,48463,48441,50763,49800,48572,48447},
  28.         ["Hunter"] = {75,1494,13163,5116,883,2641,6991,982,1515,19883,20736,2974,6197,1002,19884,5118,34074,781,3043,1462,19885,3045,19880,13809,13161,5384,1543,19878,3034,13159,19882,14327,19879,19263,14311,19801,34026,27044,34600,34477,53271,49071,53338,49067,48996,49052,49056,49045,49001,61847,60192,61006,48990,53339,49048,58434},
  29.         ["Mage"] = {130,475,1953,12051,7301,32271,3562,3567,32272,3561,3563,2139,45438,3565,3566,32266,11416,11417,32267,10059,11418,11419,11420,12826,66,30449,53140,42917,43015,43017,42985,43010,42833,42914,42859,42846,43012,42842,43008,43024,43020,43046,42897,43002,42921,42940,42956,61316,61024,42973,47610,58659},
  30.         ["Paladin"] = {21084,20271,498,1152,53408,31789,62124,25780,1044,5502,19746,20164,10326,1038,53407,19752,20165,642,10278,20166,4987,6940,10308,23214,25898,25899,34767,32223,31892,31801,53736,53720,33776,31884,54428,54043,48943,48936,48945,48938,48947,48817,48788,48932,48942,48801,48785,48934,48950,48819,48806,48782,53601,61411},
  31.         ["Priest"] = {586,2053,528,6346,453,8129,605,552,6064,1706,988,10909,10890,60931,10955,34433,32375,48072,48169,48168,48170,48120,48063,48135,48171,48300,48071,48127,48113,48123,48173,47951,48073,48078,48087,53023,48161,48066,48162,48074,48068,48158,48125},
  32.         ["Rogue"] = {921,1776,1766,1804,51722,1725,2836,1833,1842,2094,1860,6774,26669,8643,11305,1787,26889,31224,5938,51724,57934,48674,48669,48659,48668,48672,48691,48657,57993,51723,48676,48638},
  33.         ["Shaman"] = {30671,2484,526,57994,8143,2645,2870,8166,131,10399,6196,546,556,8177,20608,36936,8012,8512,6495,8170,3738,2062,2894,2825,57960,49276,49236,58734,58582,58753,49231,49238,49277,55459,49271,49284,51994,61657,58739,49233,58656,58790,58745,58796,58757,49273,51514,60043,49281,58774,58749,58704,58643,58804},
  34.         ["Warlock"] = {59671,688,696,697,5697,698,712,126,5138,5500,132,691,18647,11719,1122,17928,6215,18540,23161,29858,50511,61191,47884,47856,47813,47855,47888,47865,47860,47857,47823,47891,47878,47864,57595,47893,47820,47815,47809,60220,47867,47889,48018,47811,47838,57946,58887,47836,61290,47825},
  35. }
  36.  
  37. --[[ for later use of the spell train method
  38.  
  39.  if(Class and spells[Class]) then
  40.   for _, SpellID in ipairs(spells[Class]) do
  41.    pPlayer:LearnSpell(SpellID)
  42.   end
  43.  
  44.   ]]--
  45.  
  46.  
  47. --[[
  48.         Buff Locals
  49. ]]--
  50.  
  51. local buffs =
  52. {
  53.         ["buffsids"] = {48161,20217,48936,48469,42995,20911,53307,48073,48169},
  54. }
  55.  
  56. --[[
  57.         Mount Locals
  58. ]]--
  59.  
  60. local mounts =
  61. {
  62.         ["mountsids"] = {34790,17481,24252,54753,49379,41515,40192,63956,48169},
  63. }
  64.  
  65. --[[
  66.         Riding Locals
  67. ]]--
  68.  
  69. local RIDING_APPRENTICE = 33388
  70. local RIDING_JOURNEYMAN = 33391
  71. local RIDING_EXPERT = 34090
  72. local RIDING_ARTISAN = 34091
  73. local COLD_WEATHER_FLYING = 54197
  74.  
  75. --[[
  76.         Emblem Locals
  77. ]]--
  78.  
  79. local EMBLEM_OF_FROST = 49426
  80. local EMBLEM_OF_TRIUMPH = 47241
  81. local EMBLEM_OF_VALOR = 40753
  82. local EMBLEM_OF_CONQUEST = 45624
  83. local EMBLEM_OF_HEROISM = 40752
  84.  
  85. --[[
  86.         Misc. Locals
  87. ]]--
  88.  
  89. function TNPC(unit, event)
  90.         TeleportNPC = unit
  91. end
  92.  
  93. local TeleportNPCEntryID = 555555
  94. local Class = pPlayer:GetPlayerClass()
  95. local race=player:GetPlayerRace()
  96.  
  97. --[[
  98.         Main menu
  99. ]]--
  100.  
  101. function Gossip_OnTalk (unit, event, pPlayer)
  102. if (player:IsInCombat() == true) then
  103. player:SendAreaTriggerMessage("|cFF00FFFF[WoWBase]: |cFFFFA500You are in Combat!")
  104. else
  105. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  106. TeleportNPC:GossipMenuAddItem(5, "[Teleport Menu] ->", 1, 0)
  107. TeleportNPC:GossipMenuAddItem(7, "[Professions] ->", 2, 0)
  108. TeleportNPC:GossipMenuAddItem(7, "[Learn Spells] ->", 3, 0)
  109. TeleportNPC:GossipMenuAddItem(7, "[Player Tools] ->", 4, 0)
  110. TeleportNPC:GossipMenuAddItem(7, "[Buffs] ->", 5, 0)
  111. TeleportNPC:GossipSendMenu(pPlayer)
  112.         end
  113. end
  114.  
  115. --[[
  116.         Menu Functions
  117. ]]--
  118.  
  119. function Gossip_OnSelect (unit, event, pPlayer, id, intid, code)
  120. if (intid == 9) then
  121. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  122. TeleportNPC:GossipMenuAddItem(5, "[Teleport Menu] ->", 1, 0)
  123. TeleportNPC:GossipMenuAddItem(7, "[Professions] ->", 2, 0)
  124. TeleportNPC:GossipMenuAddItem(7, "[Learn Spells] ->", 3, 0)
  125. TeleportNPC:GossipMenuAddItem(7, "[Player Tools] ->", 4, 0)
  126. TeleportNPC:GossipMenuAddItem(7, "[Buffs] ->", 5, 0)
  127. TeleportNPC:GossipSendMenu(pPlayer)
  128. end
  129.        
  130. if (intid == 1) then
  131. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  132. [[if race==2 or race==5 or race==6 or race==8 or race==10 then
  133. TeleportNPC:GossipMenuAddItem(10, "[Horde Mall] ->", 7, 0) -- Horde Mall, for pvp servers
  134. end
  135. if race==1 or race==3 or race==4 or race==7 or race==11 then
  136. TeleportNPC:GossipMenuAddItem(10, "[Alliance Mall] ->", 8, 0) -- Alliance Mall, for pvp servers
  137. end
  138. TeleportNPC:GossipMenuAddItem(10, "[Mall] ->", 6, 0) -- Global Mall, for funservers ]]
  139. TeleportNPC:GossipMenuAddItem(5, "[Home cities] ->", 10, 0)
  140. TeleportNPC:GossipMenuAddItem(5, "[Neutral cities] ->", 11, 0)
  141. TeleportNPC:GossipMenuAddItem(5, "[Arenas] ->", 12, 0)
  142. TeleportNPC:GossipMenuAddItem(5, "[Dungeons] ->", 13, 0)
  143. TeleportNPC:GossipMenuAddItem(5, "[Raids] ->", 14, 0)
  144. TeleportNPC:GossipMenuAddItem(5, "[Zones] ->", 15, 0)
  145. TeleportNPC:GossipSendMenu(pPlayer)
  146. end
  147. -- ******************************************************
  148. --****************** Horde City Menu ********************
  149. if (intid == 10) then
  150. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  151. if race==2 or race==5 or race==6 or race==8 or race==10 then
  152. TeleportNPC:GossipMenuAddItem(10, "[Orgrimmar] ->", 20, 0)
  153. TeleportNPC:GossipMenuAddItem(10, "[Thunderbluff] ->", 21, 0)
  154. TeleportNPC:GossipMenuAddItem(10, "[Silvermoon] ->", 22, 0)
  155. TeleportNPC:GossipMenuAddItem(10, "[Undercity] ->", 23, 0)
  156. end
  157. -- ******************************************************
  158. -- *************** Alliance City Menu *******************
  159. if race==1 or race==3 or race==4 or race==7 or race==11 then
  160. TeleportNPC:GossipMenuAddItem(10, "[Stormwind] ->", 24, 0)
  161. TeleportNPC:GossipMenuAddItem(10, "[Ironforge] ->", 25, 0)
  162. TeleportNPC:GossipMenuAddItem(10, "[Exodar] ->", 26, 0)
  163. TeleportNPC:GossipMenuAddItem(10, "[Darnassus] ->", 27, 0)
  164. end
  165. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 1, 0)
  166. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  167. TeleportNPC:GossipSendMenu(pPlayer)
  168. end
  169. -- ******************************************************
  170. -- **************** Neutral City Menu *******************
  171. if (intid == 11) then
  172. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  173. TeleportNPC:GossipMenuAddItem(10, "[Dalaran] ->", 30, 0)
  174. TeleportNPC:GossipMenuAddItem(10, "[Shattrath] ->", 31, 0)
  175. TeleportNPC:GossipMenuAddItem(10, "[Booty Bay] ->", 32, 0)
  176. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 1, 0)
  177. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  178. TeleportNPC:GossipSendMenu(pPlayer)
  179. end
  180. -- ******************************************************
  181. -- ******************* Arena Menu ***********************
  182. if (intid == 12) then
  183. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  184. TeleportNPC:GossipMenuAddItem(10, "[Gurubashi Arena] ->", 40, 0)
  185. TeleportNPC:GossipMenuAddItem(10, "[Circle of Blood Arena] ->", 41, 0)
  186. TeleportNPC:GossipMenuAddItem(10, "[The Cube] ->", 42, 0)
  187. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 1, 0)
  188. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  189. TeleportNPC:GossipSendMenu(pPlayer)
  190. end
  191. -- ******************************************************
  192. -- ****************** Dungeon Menu **********************
  193. if (intid == 13) then
  194. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  195. TeleportNPC:GossipMenuAddItem(10, "[Dungeons (1-60)] ->", 50, 0)
  196. TeleportNPC:GossipMenuAddItem(10, "[Dungeons (60-70)] ->", 51, 0)
  197. TeleportNPC:GossipMenuAddItem(10, "[Dungeons (70-80)] ->", 52, 0)
  198. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 1, 0)
  199. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  200. TeleportNPC:GossipSendMenu(pPlayer)
  201. end
  202. -- ******************************************************
  203. -- ************** Dungeon 1-60 Page 1 *******************
  204. if (intid == 50) then
  205. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  206. TeleportNPC:GossipMenuAddItem(10, "[Ragefire Chasm (15-21)] ->", 60, 0)
  207. TeleportNPC:GossipMenuAddItem(10, "[The Deadmines (15-21)] ->", 61, 0)
  208. TeleportNPC:GossipMenuAddItem(10, "[Wailing Caverns (15-25)] ->", 62, 0)
  209. TeleportNPC:GossipMenuAddItem(10, "[Shadowfang Keep (16-26)] ->", 63, 0)
  210. TeleportNPC:GossipMenuAddItem(10, "[Blackfathom Deeps (20-30)] ->", 64, 0)
  211. TeleportNPC:GossipMenuAddItem(10, "[Stormwind Stockade (20-30)] ->", 65, 0)
  212. TeleportNPC:GossipMenuAddItem(10, "[Gnomeregan (24-34)] ->", 66, 0)
  213. TeleportNPC:GossipMenuAddItem(10, "[Scarlet Monastery (26-42)] ->", 67, 0)
  214. TeleportNPC:GossipMenuAddItem(10, "[Razorfen Kraul (30-40)] ->", 68, 0)
  215. TeleportNPC:GossipMenuAddItem(5, "[Page 2] ->", 53, 0)
  216. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 13, 0)
  217. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  218. TeleportNPC:GossipSendMenu(pPlayer)
  219. end
  220. -- ******************************************************
  221. -- ************** Dungeon 1-60 Page 2 *******************
  222. if (intid == 53) then
  223. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  224. TeleportNPC:GossipMenuAddItem(10, "[Maraudon (30-46)] ->", 69, 0)
  225. TeleportNPC:GossipMenuAddItem(10, "[Uldaman (35-45)] ->", 70, 0)
  226. TeleportNPC:GossipMenuAddItem(10, "[Razorfen Dawns (35-43)] ->", 71, 0)
  227. TeleportNPC:GossipMenuAddItem(10, "[Zul Farrak (40-48)] ->", 72, 0)
  228. TeleportNPC:GossipMenuAddItem(10, "[Sunken Temple (45-55)] ->", 73, 0)
  229. TeleportNPC:GossipMenuAddItem(10, "[Dire Maul (50-60)] ->", 74, 0)
  230. TeleportNPC:GossipMenuAddItem(10, "[Blackrock Depths (50-60)] ->", 75, 0)
  231. TeleportNPC:GossipMenuAddItem(10, "[Blackrock Spire (50-60)] ->", 76, 0)
  232. TeleportNPC:GossipMenuAddItem(10, "[Scholomance (50-60)] ->", 77, 0)
  233. TeleportNPC:GossipMenuAddItem(10, "[Stratholme (50-60)] ->", 78, 0)
  234. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 50, 0)
  235. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  236. TeleportNPC:GossipSendMenu(pPlayer)
  237. end
  238. -- ******************************************************
  239. -- ****************** Raiding Menu **********************
  240. if (intid == 14) then
  241. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  242. TeleportNPC:GossipMenuAddItem(10, "[Level 60 raids] ->", 80, 0)
  243. TeleportNPC:GossipMenuAddItem(10, "[Level 70 raids] ->", 81, 0)
  244. TeleportNPC:GossipMenuAddItem(10, "[Level 80 raids] ->", 82, 0)
  245. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 1, 0)
  246. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  247. TeleportNPC:GossipSendMenu(pPlayer)
  248. end
  249. -- ******************************************************
  250. -- ***************** Level 60 Raids *********************
  251. if (intid == 80) then
  252. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  253. TeleportNPC:GossipMenuAddItem(10, "[Zul'Gurub] ->", 83, 0)
  254. TeleportNPC:GossipMenuAddItem(10, "[Molten Core] ->", 84, 0)
  255. TeleportNPC:GossipMenuAddItem(10, "[Blackwing Lair] ->", 85, 0)
  256. TeleportNPC:GossipMenuAddItem(10, "[Ahn'Qiraj Ruins] ->", 86, 0)
  257. TeleportNPC:GossipMenuAddItem(10, "[Ahn'Qiraj Temple] ->", 87, 0)
  258. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 14, 0)
  259. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  260. TeleportNPC:GossipSendMenu(pPlayer)
  261. end
  262. -- ******************************************************
  263. -- ***************** Level 70 Raids *********************
  264. if (intid == 81) then
  265. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  266. TeleportNPC:GossipMenuAddItem(10, "[Karazhan] ->", 88, 0)
  267. TeleportNPC:GossipMenuAddItem(10, "[Gruul's Lair] ->", 89, 0)
  268. TeleportNPC:GossipMenuAddItem(10, "[Magtheridon's Lair] ->", 90, 0)
  269. TeleportNPC:GossipMenuAddItem(10, "[Zul'Aman] ->", 91, 0)
  270. TeleportNPC:GossipMenuAddItem(10, "[Serpentshrine Cavern] ->", 92, 0)
  271. TeleportNPC:GossipMenuAddItem(10, "[Tempest Keep: The Eye] ->", 93, 0)
  272. TeleportNPC:GossipMenuAddItem(10, "[Hyjal Spire] ->", 94, 0)
  273. TeleportNPC:GossipMenuAddItem(10, "[Black Temple] ->", 95, 0)
  274. TeleportNPC:GossipMenuAddItem(10, "[Sunwell Plateau] ->", 96, 0)
  275. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 14, 0)
  276. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  277. TeleportNPC:GossipSendMenu(pPlayer)
  278. end
  279. -- ******************************************************
  280. -- ***************** Level 80 Raids *********************
  281. if (intid == 82) then
  282. TeleportNPC:GossipCreateMenu(3543, pPlayer, 0)
  283. TeleportNPC:GossipMenuAddItem(10, "[Naxxramas] ->", 88, 0)
  284. TeleportNPC:GossipMenuAddItem(10, "[Obsidian Sanctum] ->", 89, 0)
  285. TeleportNPC:GossipMenuAddItem(10, "[Ruby Sanctum] ->", 90, 0)
  286. TeleportNPC:GossipMenuAddItem(10, "[Vault of Archavon] ->", 91, 0)
  287. TeleportNPC:GossipMenuAddItem(10, "[Eye of Eternity] ->", 92, 0)
  288. TeleportNPC:GossipMenuAddItem(10, "[Ulduar] ->", 93, 0)
  289. TeleportNPC:GossipMenuAddItem(10, "[Icecrown Citadel] ->", 94, 0)
  290. TeleportNPC:GossipMenuAddItem(10, "[Trial of the Crusader] ->", 95, 0)
  291. TeleportNPC:GossipMenuAddItem(10, "[Onyxia's Lair] ->", 96, 0)
  292. TeleportNPC:GossipMenuAddItem(5, "<- [Back]", 14, 0)
  293. TeleportNPC:GossipMenuAddItem(5, "<- [Mainpage]", 9, 0)
  294. TeleportNPC:GossipSendMenu(pPlayer)
  295. end
  296. -- ******************************************************
  297. --***************** Horde City Ports ********************
  298. -- Orgrimmar
  299. if(intid == 20) then
  300. player:GossipComplete()
  301. player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
  302. end
  303.  
  304. -- Thunderbluff
  305. if(intid == 21) then
  306. player:GossipComplete()
  307. player:Teleport(1, -1304.569946, 205.285004, 68.681396)
  308. end
  309.  
  310. -- Silvermoon
  311. if(intid == 22) then
  312. player:GossipComplete()
  313. player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
  314. end
  315.  
  316. -- Undercity
  317. if(intid == 23) then
  318. player:GossipComplete()
  319. player:Teleport(0, 2050.203125, 285.650604, 56.994549)
  320. end
  321. -- ******************************************************
  322. -- *************** Alliance City Ports ******************
  323. -- Sturmwind
  324. if(intid == 26) then
  325. player:GossipComplete()
  326. player:Teleport(0, -8913.14, 554.64, 93.80)
  327. end
  328.  
  329. -- Eisenschmiede
  330. if(intid == 28) then
  331. player:GossipComplete()
  332. player:Teleport(0, -4981.25, -881.55, 501.67)
  333. end
  334.  
  335. -- Exodar
  336. if(intid == 29) then
  337. player:GossipComplete()
  338. player:Teleport(530, -3990.99, -11855.60, 0.32)
  339. end
  340.  
  341. -- Darnassus
  342. if(intid == 27) then
  343. player:GossipComplete()
  344. player:Teleport(1, 9952.90, 2280.39, 1341.40)
  345. end
  346. -- ******************************************************
  347. -- *************** Custom Server Ports ******************
  348. -- Global Mall
  349. if (intid == 6) then
  350. pPlayer:GossipComplete()
  351. pPlayer:Teleport(global_mall)
  352. end
  353.  
  354. -- Horde Mall
  355. if (intid == 7) then
  356. pPlayer:GossipComplete()
  357. pPlayer:Teleport(horde_mall)
  358. end
  359.  
  360. -- Alliance Mall
  361. if (intid == 8) then
  362. pPlayer:GossipComplete()
  363. pPlayer:Teleport(alliance_mall)
  364. end
  365. -- ******************************************************
  366. -- **************** Neutral City Ports ******************
  367. --Dalaran
  368. if(intid == 30) then
  369. player:GossipComplete()
  370. player:Teleport(571, 5804.7553, 639.7905, 666.9543)
  371. end
  372.  
  373. -- Shattrath
  374. if(intid == 31) then
  375. player:GossipComplete()
  376. player:Teleport(530, -1914.10, 5274.59, 2.43) -14281.9, 552.564, 8.90422, 0.860144
  377. end
  378.  
  379. -- Booty Bay
  380. if(intid == 32) then
  381. player:GossipComplete()
  382. player:Teleport(0, -14281.9, 552.564, 8.90422, 0.860144)
  383. end
  384. -- ******************************************************
  385. -- **************** Neutral City Ports ******************
  386. -- Gurubashi Area
  387. if(intid == 40) then
  388. player:GossipComplete()
  389. player:Teleport(0, -13247.869141, 189.535706, 31.162361)
  390. end
  391.  
  392. -- Blood Ring Arena
  393. if(intid == 41) then
  394. player:GossipComplete()
  395. player:Teleport(530, -2044.388672, 6655.308594, 37.733746)
  396. end
  397.  
  398. -- The Cube
  399. if(intid == 42) then
  400. player:GossipComplete()
  401. player:Teleport(1, 16227.868164, 16404.136719, -44.751499)
  402. end
  403. -- ******************************************************
  404. -- ****************** Dungeon Ports *********************
  405. -- Ragefire Chasm
  406. if(intid == 60) then
  407. player:GossipComplete()
  408. player:Teleport(1, 1811.78, -4410.5, -18.4704, 5.20165)
  409. end
  410.  
  411. -- The Deadmines
  412. if(intid == 61) then
  413. player:GossipComplete()
  414. player:Teleport(0, -11209.6, 1666.54, 24.6974, 1.42053)
  415. end
  416.  
  417. -- Wailing Caverns
  418. if(intid == 62) then
  419. player:GossipComplete()
  420. player:Teleport(1, -731.607, -2218.39, 17.0281, 2.78486)
  421. end
  422.  
  423. -- Shadowfang Keep
  424. if(intid == 63) then
  425. player:GossipComplete()
  426. player:Teleport(0, -234.675, 1561.63, 76.8921, 1.24031)
  427. end
  428.  
  429. -- Blackfathom Deeps
  430. if(intid == 64) then
  431. player:GossipComplete()
  432. player:Teleport(1, 4249.99, 740.102, -25.671, 1.34062)
  433. end
  434.  
  435. -- Stormwind Stockade
  436. if(intid == 65) then
  437. player:GossipComplete()
  438. player:Teleport(0, -8799.15, 832.718, 97.6348, 6.04085)
  439. end
  440.  
  441. -- Gnomeregan
  442. if(intid == 66) then
  443. player:GossipComplete()
  444. player:Teleport(0, -5163.54, 925.423, 257.181, 1.57423)
  445. end
  446.  
  447. -- Scarlet Monastery
  448. if(intid == 67) then
  449. player:GossipComplete()
  450. player:Teleport(0, 2873.15, -764.523, 160.332, 5.10447)
  451. end
  452.  
  453. -- Razorfen Kraul
  454. if(intid == 68) then
  455. player:GossipComplete()
  456. player:Teleport(1, -4470.28, -1677.77, 81.3925, 1.16302)
  457. end
  458.  
  459. -- Maraudon
  460. if(intid == 69) then
  461. player:GossipComplete()
  462. player:Teleport(1, -1421.42, 2907.83, 137.415, 1.70718)
  463. end
  464.  
  465. -- Uldaman
  466. if(intid == 70) then
  467. player:GossipComplete()
  468. player:Teleport(0, -6071.37, -2955.16, 209.782, 0.015708)
  469. end
  470.  
  471. -- Razorfen Dawns
  472. if(intid == 71) then
  473. player:GossipComplete()
  474. player:Teleport(1, -4657.3, -2519.35, 81.0529, 4.54808)
  475. end
  476.  
  477. -- Zul Farrak
  478. if(intid == 72) then
  479. player:GossipComplete()
  480. player:Teleport(1, -6801.19, -2893.02, 9.00388, 0.158639)
  481. end
  482.  
  483. -- Sunken Temple
  484. if(intid == 73) then
  485. player:GossipComplete()
  486. player:Teleport(1, -10177.9, -3994.9, -111.239, 6.01885)
  487. end
  488.  
  489. -- Dire Maul
  490. if(intid == 74) then
  491. player:GossipComplete()
  492. player:Teleport(1, -3520.14, 1119.38, 161.025, 4.70454)
  493. end
  494.  
  495. -- Blackrock Depths
  496. if(intid == 75) then
  497. player:GossipComplete()
  498. player:Teleport(0, -7179.34, -921.212, 165.821, 5.09599)
  499. end
  500.  
  501. -- Blackrock Spire
  502. if(intid == 75) then
  503. player:GossipComplete()
  504. player:Teleport(0, -7527.05, -1226.77, 285.732, 5.29626)
  505. end
  506.  
  507. -- Scholomance
  508. if(intid == 76) then
  509. player:GossipComplete()
  510. player:Teleport(0, 1269.64, -2556.21, 93.6088, 0.620623)
  511. end
  512.  
  513. -- Stratholme
  514. if(intid == 77) then
  515. player:GossipComplete()
  516. player:Teleport(0, 3352.92, -3379.03, 144.782, 6.25978)
  517. end
  518. -- ******************************************************
  519. -- ****************** Raiding Ports *********************
  520.  
  521. RegisterUnitEvent(TeleportNPCEntryID, 18, "TNPC")
  522. RegisterUnitGossipEvent(TeleportNPCEntryID, 1, "Gossip_OnTalk")
  523. RegisterUnitGossipEvent(TeleportNPCEntryID, 2, "Gossip_OnSelect")