Bwl-Network

Lua Teleporter

Mar 28th, 2012
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.40 KB | None | 0 0
  1. function On_Gossip(unit, event, player)
  2. unit:GossipCreateMenu(3000, player, 0)
  3. unit:GossipMenuAddItem(9, "German-Wow Orte", 1, 0)
  4. unit:GossipMenuAddItem(2, "Oestliche Koenigreiche Bereiche", 2, 0)
  5. unit:GossipMenuAddItem(2, "Kalimdor Bereiche", 3, 0)
  6. unit:GossipMenuAddItem(3, "Scherbenwelt Bereiche", 4, 0)
  7. unit:GossipMenuAddItem(3, "Nordend bereiche", 5, 0)
  8. unit:GossipMenuAddItem(3, "Neutrale Stadte", 6, 0)
  9. unit:GossipMenuAddItem(3, "Hauptstaedte der Allianze", 7, 0)
  10. unit:GossipMenuAddItem(6, "Zu der Berufskill Arena", 8, 0)
  11. unit:GossipSendMenu(player)
  12. end
  13.  
  14. function Gossip_Submenus(unit, event, player, id, intid, code)
  15.  
  16. if(intid == 999) then
  17. unit:GossipCreateMenu(3000, player, 0)
  18. unit:GossipMenuAddItem(9, "German-Wow Orte", 1, 0)
  19. unit:GossipMenuAddItem(2, "Oestliche Koenigreiche Bereiche", 2, 0)
  20. unit:GossipMenuAddItem(2, "Kalimdor Bereiche", 3, 0)
  21. unit:GossipMenuAddItem(3, "Scherbenwelt Bereiche", 4, 0)
  22. unit:GossipMenuAddItem(3, "Nordend bereiche", 5, 0)
  23. unit:GossipMenuAddItem(3, "Neutrale Stadte", 6, 0)
  24. unit:GossipMenuAddItem(3, "Hauptstaedte der Allianze", 7, 0)
  25. unit:GossipMenuAddItem(6, "Zu der Berufskill Arena", 8, 0)
  26. unit:GossipSendMenu(player)
  27. end
  28.  
  29. if(intid == 1) then
  30. unit:GossipCreateMenu(3000, player, 0)
  31. unit:GossipMenuAddItem(2, "Zum Playertreff", 300, 0)
  32. unit:GossipMenuAddItem(2, "Zum JumpEvent", 301, 0)
  33. unit:GossipMenuAddItem(2, "Zum Labbyrinth", 302, 0)
  34. unit:GossipMenuAddItem(2, "Zum Support Haus", 303, 0)
  35. unit:GossipMenuAddItem(2, "Höle des Feuers", 311, 0)
  36. unit:GossipMenuAddItem(0, "Back", 4, 0)
  37. unit:GossipSendMenu(player)
  38. end
  39.  
  40. if(intid == 2) then
  41. unit:GossipCreateMenu(3000, player, 0)
  42. unit:GossipMenuAddItem(2, "Alterac Mountains", 400, 0)
  43. unit:GossipMenuAddItem(2, "Badlands", 401, 0)
  44. unit:GossipMenuAddItem(2, "Blasted Lands", 402, 0)
  45. unit:GossipMenuAddItem(2, "Burning Steppes", 403, 0)
  46. unit:GossipMenuAddItem(2, "Deadwind Pass", 404, 0)
  47. unit:GossipMenuAddItem(2, "Dun Morogh", 405, 0)
  48. unit:GossipMenuAddItem(2, "Duskwood", 406, 0)
  49. unit:GossipMenuAddItem(2, "Eastern Plaguelands", 407, 0)
  50. unit:GossipMenuAddItem(2, "Elwynn Forest", 408, 0)
  51. unit:GossipMenuAddItem(2, "Eversong Woods", 409, 0)
  52. unit:GossipMenuAddItem(2, "Ghostlands", 410, 0)
  53. unit:GossipMenuAddItem(0, "Next Page", 411, 0)
  54. unit:GossipMenuAddItem(0, "Back", 4, 0)
  55. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  56. unit:GossipSendMenu(player)
  57. end
  58.  
  59. if(intid == 411) then
  60. unit:GossipCreateMenu(3000, player, 0)
  61. unit:GossipMenuAddItem(2, "Hillsbrad Foothills", 412, 0)
  62. unit:GossipMenuAddItem(2, "Loch Modan", 413, 0)
  63. unit:GossipMenuAddItem(2, "Redridge Mountains", 414, 0)
  64. unit:GossipMenuAddItem(2, "Searing Gorge", 415, 0)
  65. unit:GossipMenuAddItem(2, "Silverpine Forest", 416, 0)
  66. unit:GossipMenuAddItem(2, "Strangethorn Vale", 417, 0)
  67. unit:GossipMenuAddItem(2, "Swamp Of Sorrows", 418, 0)
  68. unit:GossipMenuAddItem(2, "The Hinterlands", 419, 0)
  69. unit:GossipMenuAddItem(2, "Trisfal Glades", 420, 0)
  70. unit:GossipMenuAddItem(2, "Westfall", 421, 0)
  71. unit:GossipMenuAddItem(2, "Western Plaguelands", 422, 0)
  72. unit:GossipMenuAddItem(2, "Wetlands", 423, 0)
  73. unit:GossipMenuAddItem(0, "Back", 500, 0)
  74. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  75. unit:GossipSendMenu(player)
  76. end
  77.  
  78. if(intid == 3) then
  79. unit:GossipCreateMenu(3000, player, 0)
  80. unit:GossipMenuAddItem(2, "Ashenvale", 430, 0)
  81. unit:GossipMenuAddItem(2, "Azuremyst Isle", 431, 0)
  82. unit:GossipMenuAddItem(2, "Bloodmyst Isle", 432, 0)
  83. unit:GossipMenuAddItem(2, "Darkshore", 433, 0)
  84. unit:GossipMenuAddItem(2, "Desolace", 434, 0)
  85. unit:GossipMenuAddItem(2, "Durotar", 435, 0)
  86. unit:GossipMenuAddItem(2, "Dustwallow Marsh", 436, 0)
  87. unit:GossipMenuAddItem(2, "Felwood", 437, 0)
  88. unit:GossipMenuAddItem(2, "Moonglade", 438, 0)
  89. unit:GossipMenuAddItem(2, "Mulgore", 439, 0)
  90. unit:GossipMenuAddItem(2, "Silithus", 440, 0)
  91. unit:GossipMenuAddItem(0, "Next Page", 441, 0)
  92. unit:GossipMenuAddItem(0, "Back", 4, 0)
  93. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  94. unit:GossipSendMenu(player)
  95. end
  96.  
  97. if(intid == 441) then
  98. unit:GossipCreateMenu(3000, player, 0)
  99. unit:GossipMenuAddItem(2, "Tanaris", 442, 0)
  100. unit:GossipMenuAddItem(2, "Teldrassil", 443, 0)
  101. unit:GossipMenuAddItem(2, "The Barrens", 444, 0)
  102. unit:GossipMenuAddItem(2, "Thousand Needles", 445, 0)
  103. unit:GossipMenuAddItem(2, "Un'Goro Crater", 446, 0)
  104. unit:GossipMenuAddItem(2, "Winterspring", 447, 0)
  105. unit:GossipMenuAddItem(2, "Azshara", 448, 0)
  106. unit:GossipMenuAddItem(0, "Back", 501, 0)
  107. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  108. unit:GossipSendMenu(player)
  109. end
  110.  
  111. if(intid == 4) then
  112. unit:GossipCreateMenu(3000, player, 0)
  113. unit:GossipMenuAddItem(2, "Hellfire Peninsula", 478, 0)
  114. unit:GossipMenuAddItem(2, "Zangarmarsh", 479, 0)
  115. unit:GossipMenuAddItem(2, "Nagarad", 480, 0)
  116. unit:GossipMenuAddItem(2, "Blades Edge Mountains", 481, 0)
  117. unit:GossipMenuAddItem(2, "Netherstorm", 482, 0)
  118. unit:GossipMenuAddItem(2, "Terokkar Forest", 483, 0)
  119. unit:GossipMenuAddItem(2, "Shadowmoon Valley", 484, 0)
  120. unit:GossipMenuAddItem(0, "Back", 5, 0)
  121. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  122. unit:GossipSendMenu(player)
  123. end
  124.  
  125.  
  126. if(intid == 5) then
  127. unit:GossipCreateMenu(3000, player, 0)
  128. unit:GossipMenuAddItem(2, "Borean Tundra", 485, 0)
  129. unit:GossipMenuAddItem(2, "Crystalsong Forest", 486, 0)
  130. unit:GossipMenuAddItem(2, "Dragonblight", 487, 0)
  131. unit:GossipMenuAddItem(2, "Grizzly Hills", 488, 0)
  132. unit:GossipMenuAddItem(2, "Howling Fjord", 489, 0)
  133. unit:GossipMenuAddItem(2, "Icecrown", 490, 0)
  134. unit:GossipMenuAddItem(2, "Sholazar Basin", 491, 0)
  135. unit:GossipMenuAddItem(2, "The Storm Peaks", 492, 0)
  136. unit:GossipMenuAddItem(2, "Zul'Drak", 493, 0)
  137. unit:GossipMenuAddItem(0, "Back", 6, 0)
  138. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  139. unit:GossipSendMenu(player)
  140. end
  141.  
  142.  
  143. if(intid == 6) then
  144. unit:GossipCreateMenu(3000, player, 0)
  145. unit:GossipMenuAddItem(2, "Dalaran", 304, 0)
  146. unit:GossipMenuAddItem(2, "Shattrath", 305, 0)
  147. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  148. unit:GossipSendMenu(player)
  149. end
  150.  
  151.  
  152. if(intid == 7) then
  153. unit:GossipCreateMenu(3000, player, 0)
  154. unit:GossipMenuAddItem(2, "Stormwind", 306, 0)
  155. unit:GossipMenuAddItem(2, "Ironforge", 307, 0)
  156. unit:GossipMenuAddItem(2, "Darnassus", 308, 0)
  157. unit:GossipMenuAddItem(2, "Exodar", 309, 0)
  158. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  159. unit:GossipSendMenu(player)
  160. end
  161.  
  162.  
  163. if(intid == 8) then
  164. unit:GossipCreateMenu(3000, player, 0)
  165. unit:GossipMenuAddItem(2, "Zu der Berufskill Arena", 310, 0)
  166. unit:GossipSendMenu(player)
  167. end
  168.  
  169. if(intid == 300) then
  170. player:Teleport(0, 2916.822266, -1440.240112, 150.615204)
  171. unit:GossipComplete(player)
  172. end
  173.  
  174. if(intid == 301) then
  175. player:Teleport(0, -11283.765625, 1870.470093, 47.035526)
  176. unit:GossipComplete(player)
  177. end
  178.  
  179. if(intid == 302) then
  180. player:Teleport(0, -7997.721191, 199.011093, 59.457066)
  181. unit:GossipComplete(player)
  182. end
  183.  
  184. if(intid == 303) then
  185. player:Teleport(1, 7328.374023, -1530.528198, 159.531967)
  186. unit:GossipComplete(player)
  187. end
  188.  
  189. if(intid == 304) then
  190. player:Teleport(571, 5795.602539, 769.040710, 661.310425)
  191. unit:GossipComplete(player)
  192. end
  193.  
  194. if(intid == 305) then
  195. player:Teleport(530, 1868.697510, 5439.860840, -10.463367)
  196. unit:GossipComplete(player)
  197. end
  198.  
  199. if(intid == 306) then
  200. player:Teleport(0, -8838.437500, 615.112488, 92.934814)
  201. unit:GossipComplete(player)
  202. end
  203.  
  204. if(intid == 307) then
  205. player:Teleport(0, -4945.828613, -954.727478, 501.632202)
  206. unit:GossipComplete(player)
  207. end
  208.  
  209. if(intid == 308) then
  210. player:Teleport(1, 9951.946289, 2280.609863, 1341.394775)
  211. unit:GossipComplete(player)
  212. end
  213.  
  214. if(intid == 309) then
  215. player:Teleport(530, -3866.120605, -11641.577148, -137.653519)
  216. unit:GossipComplete(player)
  217. end
  218.  
  219. if(intid == 311) then
  220. player:Teleport(230, 1127.989014, -452.042175, -101.385010)
  221. unit:GossipComplete(player)
  222. end
  223.  
  224. if(intid == 310) then
  225. player:Teleport(1, -11836.854492, -4754.102051, 6.230094)
  226. unit:GossipComplete(player)
  227. end
  228.  
  229. if(intid == 400) then
  230. player:Teleport(0, 263.982361, -673.894104, 127.404716)
  231. unit:GossipComplete(player)
  232. end
  233.  
  234. if(intid == 401) then
  235. player:Teleport(0, -6047.203125, -3313.854980, 258.708557)
  236. unit:GossipComplete(player)
  237. end
  238.  
  239. if(intid == 402) then
  240. player:Teleport(0, -10906.685547, -2927.268066, 12.964416)
  241. unit:GossipComplete(player)
  242. end
  243.  
  244. if(intid == 403) then
  245. player:Teleport(0, -7889.491699, -1135.223267, 2.924039)
  246. unit:GossipComplete(player)
  247. end
  248.  
  249. if(intid == 404) then
  250. player:Teleport(0, -10448.166016, -1856.763916, 105.005913)
  251. unit:GossipComplete(player)
  252. end
  253.  
  254. if(intid == 405) then
  255. player:Teleport(0, -5433.301270, -224.541077, 407.520925)
  256. unit:GossipComplete(player)
  257. end
  258.  
  259. if(intid == 406) then
  260. player:Teleport(0, -11279.900391, -361.012268, 62.467072)
  261. unit:GossipComplete(player)
  262. end
  263.  
  264. if(intid == 407) then
  265. player:Teleport(0, 1964.197754, -4337.873047, 74.472122)
  266. unit:GossipComplete(player)
  267. end
  268.  
  269. if(intid == 408) then
  270. player:Teleport(0, -9548.906250, -52.026482, 56.932626)
  271. unit:GossipComplete(player)
  272. end
  273.  
  274. if(intid == 409) then
  275. player:Teleport(530, 9445.799805, -6780.160645, 16.617193)
  276. unit:GossipComplete(player)
  277. end
  278.  
  279. if(intid == 410) then
  280. player:Teleport(530, 7560.582520, -6810.677246, 87.206497)
  281. unit:GossipComplete(player)
  282. end
  283.  
  284. if(intid == 412) then
  285. player:Teleport(0, -843.708008, -545.247009, 11.397400)
  286. unit:GossipComplete(player)
  287. end
  288.  
  289. if(intid == 412) then
  290. player:Teleport(0, -843.708008, -545.247009, 11.397400)
  291. unit:GossipComplete(player)
  292. end
  293.  
  294. if(intid == 414) then
  295. player:Teleport(0, -9249.617188, -2148.591553, 63.933914)
  296. unit:GossipComplete(player)
  297. end
  298.  
  299. if(intid == 415) then
  300. player:Teleport(0, -7355.223633, -1098.422485, 277.840637)
  301. unit:GossipComplete(player)
  302. end
  303.  
  304. if(intid == 416) then
  305. player:Teleport(0, 513.679016, 1625.099976, 125.510002)
  306. unit:GossipComplete(player)
  307. end
  308.  
  309. if(intid == 417) then
  310. player:Teleport(0, -11612.054688, -58.522003, 105.949398)
  311. unit:GossipComplete(player)
  312. end
  313.  
  314. if(intid == 418) then
  315. player:Teleport(0, -10460.044922, -3261.839600, 20.178509)
  316. unit:GossipComplete(player)
  317. end
  318.  
  319. if(intid == 419) then
  320. player:Teleport(0, 146.856552, -2003.116577, 126.594170)
  321. unit:GossipComplete(player)
  322. end
  323.  
  324. if(intid == 420) then
  325. player:Teleport(0, 2034.480835, 292.189941, 54.163761)
  326. unit:GossipComplete(player)
  327. end
  328.  
  329. if(intid == 421) then
  330. player:Teleport(0, -10518.205078, 1069.469116, 54.769070)
  331. unit:GossipComplete(player)
  332. end
  333.  
  334. if(intid == 422) then
  335. player:Teleport(0, 1265.575073, -1194.470703, 59.570076)
  336. unit:GossipComplete(player)
  337. end
  338.  
  339. if(intid == 423) then
  340. player:Teleport(0, -4086.566650, -2614.740479, 44.690865)
  341. unit:GossipComplete(player)
  342. end
  343.  
  344. if(intid == 430) then
  345. player:Teleport(1, 3189.298584, 226.574127, 14.819330)
  346. unit:GossipComplete(player)
  347. end
  348.  
  349. if(intid == 431) then
  350. player:Teleport(530, -4194.541992, -12555.260742, 39.841660)
  351. unit:GossipComplete(player)
  352. end
  353.  
  354. if(intid == 432) then
  355. player:Teleport(530, -2738.501797, -12210.000977, 8.803289)
  356. unit:GossipComplete(player)
  357. end
  358.  
  359. if(intid == 433) then
  360. player:Teleport(1, 6207.632813, -154.939209, 80.792686)
  361. unit:GossipComplete(player)
  362. end
  363.  
  364. if(intid == 434) then
  365. player:Teleport(1, -82.607262, 1676.598145, 89.806580)
  366. unit:GossipComplete(player)
  367. end
  368.  
  369. if(intid == 435) then
  370. player:Teleport(1, 340.362000, -4686.290039, 16.641100)
  371. unit:GossipComplete(player)
  372. end
  373.  
  374. if(intid == 436) then
  375. player:Teleport(1, -3460.119629, -4127.141602, 17.098972)
  376. unit:GossipComplete(player)
  377. end
  378.  
  379. if(intid == 437) then
  380. player:Teleport(1, 5486.022949, -764.407228, 338.605072)
  381. unit:GossipComplete(player)
  382. end
  383.  
  384. if(intid == 438) then
  385. player:Teleport(1, 8013.640625, -2676.404785, 514.589722)
  386. unit:GossipComplete(player)
  387. end
  388.  
  389. if(intid == 439) then
  390. player:Teleport(1, -1840.750000, -456.561005, -8.845256)
  391. unit:GossipComplete(player)
  392. end
  393.  
  394. if(intid == 440) then
  395. player:Teleport(1, -6925.356934, 915.713562, 22.929478)
  396. unit:GossipComplete(player)
  397. end
  398.  
  399. if(intid == 442) then
  400. player:Teleport(1, -7160.649902, 3841.387207, 8.671937)
  401. unit:GossipComplete(player)
  402. end
  403.  
  404. if(intid == 443) then
  405. player:Teleport(1, 9860.146484, 589.684326, 1300.625366)
  406. unit:GossipComplete(player)
  407. end
  408.  
  409. if(intid == 444) then
  410. player:Teleport(1, -1026.215698, -3672.566650, 22.966539)
  411. unit:GossipComplete(player)
  412. end
  413.  
  414. if(intid == 445) then
  415. player:Teleport(1, -4687.388184, -1836.957397, -44.047394)
  416. unit:GossipComplete(player)
  417. end
  418.  
  419. if(intid == 446) then
  420. player:Teleport(1, -6154.613281, -1090.232422, -203.079956)
  421. unit:GossipComplete(player)
  422. end
  423.  
  424. if(intid == 447) then
  425. player:Teleport(1, 6695.457031, -4669.457031, 721.567566)
  426. unit:GossipComplete(player)
  427. end
  428.  
  429. if(intid == 448) then
  430. player:Teleport(1, 2741.128418, -4411.292969, 103.803925)
  431. unit:GossipComplete(player)
  432. end
  433.  
  434. if(intid == 478) then
  435. player:Teleport(530, -248.000000, 956.000000, 84.362801)
  436. unit:GossipComplete(player)
  437. end
  438.  
  439. if(intid == 479) then
  440. player:Teleport(530, -1040.743164, 5380.502930, 22.108717)
  441. unit:GossipComplete(player)
  442. end
  443.  
  444. if(intid == 480) then
  445. player:Teleport(530, -481.318756, 8420.708984, 31.585732)
  446. unit:GossipComplete(player)
  447. end
  448.  
  449. if(intid == 481) then
  450. player:Teleport(530, 1714.867432, 6047.045898, 143.767380)
  451. unit:GossipComplete(player)
  452. end
  453.  
  454. if(intid == 482) then
  455. player:Teleport(530, 3382.884277, 4140.254395, 148.334152)
  456. unit:GossipComplete(player)
  457. end
  458.  
  459. if(intid == 483) then
  460. player:Teleport(530, -1942.855713, 4684.942871, -2.187463)
  461. unit:GossipComplete(player)
  462. end
  463.  
  464. if(intid == 484) then
  465. player:Teleport(530, -2975.471436, 2959.093750, 72.738640)
  466. unit:GossipComplete(player)
  467. end
  468.  
  469. if(intid == 485) then
  470. player:Teleport(571, 2102.045166, 6529.468262, 0.573996)
  471. unit:GossipComplete(player)
  472. end
  473.  
  474. if(intid == 486) then
  475. player:Teleport(571, 5711.308105, 1011.812256, 174.479507)
  476. unit:GossipComplete(player)
  477. end
  478.  
  479. if(intid == 487) then
  480. player:Teleport(571, 3509.596926, 2841.850830, 36.646351)
  481. unit:GossipComplete(player)
  482. end
  483.  
  484. if(intid == 488) then
  485. player:Teleport(571, 3349.896729, -5593.875000, 259.144592)
  486. unit:GossipComplete(player)
  487. end
  488.  
  489. if(intid == 489) then
  490. player:Teleport(571, 2027.013550, -4510.509277, 207.624573)
  491. unit:GossipComplete(player)
  492. end
  493.  
  494. if(intid == 490) then
  495. player:Teleport(571, 6711.064063, 2473.802979, 429.895142)
  496. unit:GossipComplete(player)
  497. end
  498.  
  499. if(intid == 491) then
  500. player:Teleport(571, 5573.436523, 5749.734375, -74.824722)
  501. unit:GossipComplete(player)
  502. end
  503.  
  504. if(intid == 492) then
  505. player:Teleport(571, 6109.867676, -1059.728882, 403.013428)
  506. unit:GossipComplete(player)
  507. end
  508.  
  509. if(intid == 493) then
  510. player:Teleport(571, 5452.265137, -2608.871094, 306.910156)
  511. unit:GossipComplete(player)
  512. end
  513. end
  514.  
  515. RegisterUnitGossipEvent(90000, 1, "On_Gossip")
  516. RegisterUnitGossipEvent(90000, 2, "Gossip_Submenus")
Advertisement
Add Comment
Please, Sign In to add comment