Advertisement
Guest User

GossipNPC

a guest
Feb 1st, 2013
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.68 KB | None | 0 0
  1. --[[
  2. ]]
  3.  
  4. -- Variables
  5. local NPC_ID = 175001
  6.  
  7. -- On Triggers
  8. function On_Gossip(unit, event, player)
  9. unit:GossipCreateMenu(3000, player, 0)
  10. unit:GossipMenuAddItem(2, "Teleport me to mall.", 1, 0)
  11. unit:GossipMenuAddItem(2, "Teleport Menu", 2, 0)
  12. Unit:GossipMenuAddItem(0, "Train Me!", 3, 0)
  13. Unit:GossipMenuAddItem(0, "Remove my Resurrection Sickness.", 4, 0)
  14. end
  15.  
  16. function Gossip_Submenus(unit, event, player, id, intid, code)
  17.  
  18. if(intid == 2) then
  19. unit:GossipCreateMenu(3000, player, 0)
  20. unit:GossipMenuAddItem(2, "Neutral Cities", 10, 0)
  21. unit:GossipMenuAddItem(2, "Alliance Cities", 11, 0)
  22. unit:GossipMenuAddItem(2, "Horde Cities", 12, 0)
  23. unit:GossipMenuAddItem(2, "Azheroth Locations", 13, 0)
  24. unit:GossipMenuAddItem(2, "Outland Locations", 14, 0)
  25. unit:GossipMenuAddItem(2, "Northrend Locations", 15, 0)
  26. unit:GossipMenuAddItem(3, "Obstacle Courses", 16, 0)
  27. unit:GossipMenuAddItem(6, "PvP Arenas", 17, 0)
  28. unit:GossipSendMenu(player)
  29. end
  30.  
  31. function Gossip_Submenus(unit, event, player, id, intid, code)
  32.  
  33. if(intid == 10) then
  34. unit:GossipCreateMenu(3000, player, 0)
  35. unit:GossipMenuAddItem(2, "Dalaran", 300, 0)
  36. unit:GossipMenuAddItem(2, "Shattrath", 309, 0)
  37. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  38. unit:GossipSendMenu(player)
  39. end
  40.  
  41. if(intid == 11) then
  42. unit:GossipCreateMenu(3000, player, 0)
  43. unit:GossipMenuAddItem(2, "Stormwind", 301, 0)
  44. unit:GossipMenuAddItem(2, "Ironforge", 302, 0)
  45. unit:GossipMenuAddItem(2, "Darnassus", 303, 0)
  46. unit:GossipMenuAddItem(2, "Exodar", 304, 0)
  47. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  48. unit:GossipSendMenu(player)
  49. end
  50.  
  51. if(intid == 12) then
  52. unit:GossipCreateMenu(3000, player, 0)
  53. unit:GossipMenuAddItem(2, "Orgrimmar", 305, 0)
  54. unit:GossipMenuAddItem(2, "Undercity", 306, 0)
  55. unit:GossipMenuAddItem(2, "Thunder Bluff", 307, 0)
  56. unit:GossipMenuAddItem(2, "Silvermoon", 308, 0)
  57. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  58. unit:GossipSendMenu(player)
  59. end
  60.  
  61. if(intid == 13) then
  62. unit:GossipCreateMenu(3000, player, 0)
  63. unit:GossipMenuAddItem(3, "Eastern Kingdoms", 500, 0)
  64. unit:GossipMenuAddItem(3, "Kalimdor", 501, 0)
  65. unit:GossipMenuAddItem(2, "Instances", 502, 0)
  66. unit:GossipMenuAddItem(0, "Back", 999, 0)
  67. unit:GossipSendMenu(player)
  68. end
  69.  
  70. if(intid == 14) then
  71. unit:GossipCreateMenu(3000, player, 0)
  72. unit:GossipMenuAddItem(3, "Raids", 503, 0)
  73. unit:GossipMenuAddItem(3, "Instances", 504, 0)
  74. unit:GossipMenuAddItem(2, "Locations", 505, 0)
  75. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  76. unit:GossipSendMenu(player)
  77. end
  78.  
  79. if(intid == 15) then
  80. unit:GossipCreateMenu(3000, player, 0)
  81. unit:GossipMenuAddItem(3, "Locations", 506, 0)
  82. unit:GossipMenuAddItem(2, "Instances", 507, 0)
  83. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  84. unit:GossipSendMenu(player)
  85. end
  86.  
  87. if(intid == 16) then
  88. unit:GossipCreateMenu(3000, player, 0)
  89. unit:GossipMenuAddItem(0, "Hard Obstacle Course", 700, 0)
  90. unit:GossipMenuAddItem(0, "Your Custom Event 2", 701, 0)
  91. unit:GossipMenuAddItem(0, "Your Custom Event 3", 702, 0)
  92. unit:GossipMenuAddItem(0, "Your Custom Event 4", 703, 0)
  93. unit:GossipMenuAddItem(0, "Your Custom Event 5", 704, 0)
  94. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  95. unit:GossipSendMenu(player)
  96. end
  97.  
  98. if(intid == 17) then --PvP Arenas
  99. unit:GossipCreateMenu(3000, player, 0)
  100. unit:GossipMenuAddItem(0, "Gurubashi Arena", 900, 0)
  101. unit:GossipMenuAddItem(0, "Dire Maul Arena", 901, 0)
  102. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  103. unit:GossipSendMenu(player)
  104. end
  105.  
  106.  
  107. if(intid == 500) then
  108. unit:GossipCreateMenu(3000, player, 0)
  109. unit:GossipMenuAddItem(2, "Alterac Mountains", 400, 0)
  110. unit:GossipMenuAddItem(2, "Badlands", 401, 0)
  111. unit:GossipMenuAddItem(2, "Blasted Lands", 402, 0)
  112. unit:GossipMenuAddItem(2, "Burning Steppes", 403, 0)
  113. unit:GossipMenuAddItem(2, "Deadwind Pass", 404, 0)
  114. unit:GossipMenuAddItem(2, "Dun Morogh", 405, 0)
  115. unit:GossipMenuAddItem(2, "Duskwood", 406, 0)
  116. unit:GossipMenuAddItem(2, "Eastern Plaguelands", 407, 0)
  117. unit:GossipMenuAddItem(2, "Elwynn Forest", 408, 0)
  118. unit:GossipMenuAddItem(2, "Eversong Woods", 409, 0)
  119. unit:GossipMenuAddItem(2, "Ghostlands", 410, 0)
  120. unit:GossipMenuAddItem(0, "Next Page", 411, 0)
  121. unit:GossipMenuAddItem(0, "Back", 4, 0)
  122. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  123. unit:GossipSendMenu(player)
  124. end
  125.  
  126. if(intid == 411) then
  127. unit:GossipCreateMenu(3000, player, 0)
  128. unit:GossipMenuAddItem(2, "Hillsbrad Foothills", 412, 0)
  129. unit:GossipMenuAddItem(2, "Loch Modan", 413, 0)
  130. unit:GossipMenuAddItem(2, "Redridge Mountains", 414, 0)
  131. unit:GossipMenuAddItem(2, "Searing Gorge", 415, 0)
  132. unit:GossipMenuAddItem(2, "Silverpine Forest", 416, 0)
  133. unit:GossipMenuAddItem(2, "Strangethorn Vale", 417, 0)
  134. unit:GossipMenuAddItem(2, "Swamp Of Sorrows", 418, 0)
  135. unit:GossipMenuAddItem(2, "The Hinterlands", 419, 0)
  136. unit:GossipMenuAddItem(2, "Trisfal Glades", 420, 0)
  137. unit:GossipMenuAddItem(2, "Westfall", 421, 0)
  138. unit:GossipMenuAddItem(2, "Western Plaguelands", 422, 0)
  139. unit:GossipMenuAddItem(2, "Wetlands", 423, 0)
  140. unit:GossipMenuAddItem(0, "Back", 500, 0)
  141. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  142. unit:GossipSendMenu(player)
  143. end
  144.  
  145. if(intid == 501) then
  146. unit:GossipCreateMenu(3000, player, 0)
  147. unit:GossipMenuAddItem(2, "Ashenvale", 430, 0)
  148. unit:GossipMenuAddItem(2, "Azuremyst Isle", 431, 0)
  149. unit:GossipMenuAddItem(2, "Bloodmyst Isle", 432, 0)
  150. unit:GossipMenuAddItem(2, "Darkshore", 433, 0)
  151. unit:GossipMenuAddItem(2, "Desolace", 434, 0)
  152. unit:GossipMenuAddItem(2, "Durotar", 435, 0)
  153. unit:GossipMenuAddItem(2, "Dustwallow Marsh", 436, 0)
  154. unit:GossipMenuAddItem(2, "Felwood", 437, 0)
  155. unit:GossipMenuAddItem(2, "Moonglade", 438, 0)
  156. unit:GossipMenuAddItem(2, "Mulgore", 439, 0)
  157. unit:GossipMenuAddItem(2, "Silithus", 440, 0)
  158. unit:GossipMenuAddItem(0, "Next Page", 441, 0)
  159. unit:GossipMenuAddItem(0, "Back", 4, 0)
  160. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  161. unit:GossipSendMenu(player)
  162. end
  163.  
  164. if(intid == 441) then
  165. unit:GossipCreateMenu(3000, player, 0)
  166. unit:GossipMenuAddItem(2, "Tanaris", 442, 0)
  167. unit:GossipMenuAddItem(2, "Teldrassil", 443, 0)
  168. unit:GossipMenuAddItem(2, "The Barrens", 444, 0)
  169. unit:GossipMenuAddItem(2, "Thousand Needles", 445, 0)
  170. unit:GossipMenuAddItem(2, "Un'Goro Crater", 446, 0)
  171. unit:GossipMenuAddItem(2, "Winterspring", 447, 0)
  172. unit:GossipMenuAddItem(2, "Azshara", 448, 0)
  173. unit:GossipMenuAddItem(0, "Back", 501, 0)
  174. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  175. unit:GossipSendMenu(player)
  176. end
  177.  
  178. if(intid == 502) then
  179. unit:GossipCreateMenu(3000, player, 0)
  180. unit:GossipMenuAddItem(2, "Shadowfang Keep", 450, 0)
  181. unit:GossipMenuAddItem(2, "Zul'Gurub", 451, 0)
  182. unit:GossipMenuAddItem(2, "Scarlet Monastery", 452, 0)
  183. unit:GossipMenuAddItem(2, "Stratholme", 453, 0)
  184. unit:GossipMenuAddItem(2, "Scholomance", 454, 0)
  185. unit:GossipMenuAddItem(2, "Blackrock", 455, 0)
  186. unit:GossipMenuAddItem(2, "Onyxia's Lair", 456, 0)
  187. unit:GossipMenuAddItem(2, "Molten Core", 457, 0)
  188. unit:GossipMenuAddItem(2, "Karazhan", 458, 0)
  189. unit:GossipMenuAddItem(2, "Caverns Of Time", 459, 0)
  190. unit:GossipMenuAddItem(0, "Back", 4, 0)
  191. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  192. unit:GossipSendMenu(player)
  193. end
  194.  
  195. if(intid == 503) then
  196. unit:GossipCreateMenu(3000, player, 0)
  197. unit:GossipMenuAddItem(2, "Gruul's Lair", 460, 0)
  198. unit:GossipMenuAddItem(2, "Magtheridon's Laid", 461, 0)
  199. unit:GossipMenuAddItem(2, "Zul'Aman", 462, 0)
  200. unit:GossipMenuAddItem(2, "Serpentshrine Cavern", 463, 0)
  201. unit:GossipMenuAddItem(2, "The Eye", 464, 0)
  202. unit:GossipMenuAddItem(2, "Black Temple", 465, 0)
  203. unit:GossipMenuAddItem(2, "Sunwell Plateau", 466, 0)
  204. unit:GossipMenuAddItem(0, "Back", 5, 0)
  205. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  206. unit:GossipSendMenu(player)
  207. end
  208.  
  209. if(intid == 504) then
  210. unit:GossipCreateMenu(3000, player, 0)
  211. unit:GossipMenuAddItem(2, "Hellfire Ramparts", 467, 0)
  212. unit:GossipMenuAddItem(2, "The BloodFurnace", 468, 0)
  213. unit:GossipMenuAddItem(2, "Shattered Halls", 469, 0)
  214. unit:GossipMenuAddItem(2, "Mana-Tombs", 470, 0)
  215. unit:GossipMenuAddItem(2, "Sethekk Halls", 471, 0)
  216. unit:GossipMenuAddItem(2, "Auchenai Crypts", 472, 0)
  217. unit:GossipMenuAddItem(2, "Shadow Labyrinth", 473, 0)
  218. unit:GossipMenuAddItem(2, "Magisters Terrace", 474, 0)
  219. unit:GossipMenuAddItem(2, "Tempest Keep", 475, 0)
  220. unit:GossipMenuAddItem(2, "Slave Pens", 476, 0)
  221. unit:GossipMenuAddItem(2, "The Underbog", 477, 0)
  222. unit:GossipMenuAddItem(0, "Back", 5, 0)
  223. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  224. unit:GossipSendMenu(player)
  225. end
  226.  
  227. if(intid == 505) then
  228. unit:GossipCreateMenu(3000, player, 0)
  229. unit:GossipMenuAddItem(2, "Hellfire Peninsula", 478, 0)
  230. unit:GossipMenuAddItem(2, "Zangarmarsh", 479, 0)
  231. unit:GossipMenuAddItem(2, "Nagarad", 480, 0)
  232. unit:GossipMenuAddItem(2, "Blades Edge Mountains", 481, 0)
  233. unit:GossipMenuAddItem(2, "Netherstorm", 482, 0)
  234. unit:GossipMenuAddItem(2, "Terokkar Forest", 483, 0)
  235. unit:GossipMenuAddItem(2, "Shadowmoon Valley", 484, 0)
  236. unit:GossipMenuAddItem(0, "Back", 5, 0)
  237. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  238. unit:GossipSendMenu(player)
  239. end
  240.  
  241. if(intid == 506) then
  242. unit:GossipCreateMenu(3000, player, 0)
  243. unit:GossipMenuAddItem(2, "Borean Tundra", 485, 0)
  244. unit:GossipMenuAddItem(2, "Crystalsong Forest", 486, 0)
  245. unit:GossipMenuAddItem(2, "Dragonblight", 487, 0)
  246. unit:GossipMenuAddItem(2, "Grizzly Hills", 488, 0)
  247. unit:GossipMenuAddItem(2, "Howling Fjord", 489, 0)
  248. unit:GossipMenuAddItem(2, "Icecrown", 490, 0)
  249. unit:GossipMenuAddItem(2, "Sholazar Basin", 491, 0)
  250. unit:GossipMenuAddItem(2, "The Storm Peaks", 492, 0)
  251. unit:GossipMenuAddItem(2, "Zul'Drak", 493, 0)
  252. unit:GossipMenuAddItem(0, "Back", 6, 0)
  253. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  254. unit:GossipSendMenu(player)
  255. end
  256.  
  257. if(intid == 507) then
  258. unit:GossipCreateMenu(3000, player, 0)
  259. unit:GossipMenuAddItem(2, "Naxxramas", 494, 0)
  260. unit:GossipMenuAddItem(2, "Halls Of Lightning", 495, 0)
  261. unit:GossipMenuAddItem(2, "Halls Of Stone", 496, 0)
  262. unit:GossipMenuAddItem(2, "The Obsidian Sanctum", 497, 0)
  263. unit:GossipMenuAddItem(2, "Vault Of Archavon", 498, 0)
  264. unit:GossipMenuAddItem(2, "Voilet Hold", 499, 0)
  265. unit:GossipMenuAddItem(2, "Utgarde Pinnacle", 600, 0)
  266. unit:GossipMenuAddItem(2, "The Nexus/Occulus/Eye Of Eternity", 601, 0)
  267. unit:GossipMenuAddItem(2, "Uldar", 602, 0)
  268. unit:GossipMenuAddItem(0, "Back", 6, 0)
  269. unit:GossipMenuAddItem(0, "Main Menu", 999, 0)
  270. unit:GossipSendMenu(player)
  271. end
  272.  
  273. if(intid == 900) then
  274. unit:GossipCreateMenu(62, player, 0)
  275. player:LearnSpell(15007)
  276. player:UnlearnSpell(15007)
  277. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  278. unit:GossipSendMenu(player)
  279. end
  280.  
  281. if(intid == 300) then
  282. player:Teleport(571, 5798.553711, 645.019287, 647.477783)
  283. unit:GossipComplete(player)
  284. end
  285.  
  286. if(intid == 301) then
  287. player:Teleport(0, -8913.230469, 554.632996, 93.794830)
  288. unit:GossipComplete(player)
  289. end
  290.  
  291. if(intid == 302) then
  292. player:Teleport(0, -4982.447266, -880.969604, 501.659882)
  293. unit:GossipComplete(player)
  294. end
  295.  
  296. if(intid == 303) then
  297. player:Teleport(1, 9946.639648, 2610.149414, 1316.256348)
  298. unit:GossipComplete(player)
  299. end
  300.  
  301. if(intid == 304) then
  302. player:Teleport(530, -4008.085205, -11885.257813, -1.419589)
  303. unit:GossipComplete(player)
  304. end
  305.  
  306. if(intid == 305) then
  307. player:Teleport(1, 1505.377319, -4414.602539, 20.598469)
  308. unit:GossipComplete(player)
  309. end
  310.  
  311. if(intid == 306) then
  312. player:Teleport(0, 1831.750854, 238.543503, 60.478447)
  313. unit:GossipComplete(player)
  314. end
  315.  
  316. if(intid == 307) then
  317. player:Teleport(1, -1282.347534, 133.302917, 131.218323)
  318. unit:GossipComplete(player)
  319. end
  320.  
  321. if(intid == 308) then
  322. player:Teleport(530, 9381.675781, -7277.671387, 14.241373)
  323. unit:GossipComplete(player)
  324. end
  325.  
  326. if(intid == 309) then
  327. player:Teleport(530, -1704.053589, 5376.160156, 3.416441)
  328. unit:GossipComplete(player)
  329. end
  330.  
  331. if(intid == 310) then
  332. player:Teleport(1, -11836.854492, -4754.102051, 6.230094)
  333. unit:GossipComplete(player)
  334. end
  335.  
  336. if(intid == 311) then
  337. player:Teleport(1, -10714.201172, 2414.157227, 7.605680)
  338. unit:GossipComplete(player)
  339. end
  340.  
  341. if(intid == 312) then
  342. player:Teleport(36, -1478.834351, 521.719360, -0.000186)
  343. unit:GossipComplete(player)
  344. end
  345.  
  346. if(intid == 313) then
  347. player:Teleport(36, -760.039124, 438.745941, 727.394104)
  348. unit:GossipComplete(player)
  349. end
  350.  
  351. if(intid == 314) then
  352. player:Teleport(169, -1111.939941, -1941.119995, 92.007500)
  353. unit:GossipComplete(player)
  354. end
  355.  
  356. if(intid == 315) then
  357. player:Teleport(0, -11208.176758, 1674.476196, 24.608866)
  358. unit:GossipComplete(player)
  359. end
  360.  
  361. if(intid == 320) then
  362. player:Teleport(1, 4612.354004, -3862.625000, 944.182495)
  363. unit:GossipComplete(player)
  364. end
  365.  
  366. if(intid == 322) then
  367. player:Teleport(0, -13226.803711, 229.691193, 33.161755)
  368. unit:GossipComplete(player)
  369. end
  370.  
  371. if(intid == 323) then
  372. player:Teleport(0, -4147.456055, -1114.092529, 170.117996)
  373. unit:GossipComplete(player)
  374. end
  375.  
  376. if(intid == 324) then
  377. player:Teleport(1, 7420.457031, -1580.407349, 179.838913)
  378. unit:GossipComplete(player)
  379. end
  380.  
  381. if(intid == 326) then
  382. player:Teleport(0, -8075.481445, -317.063660, 271.870087)
  383. unit:GossipComplete(player)
  384. end
  385.  
  386. if(intid == 400) then
  387. player:Teleport(0, 263.982361, -673.894104, 127.404716)
  388. unit:GossipComplete(player)
  389. end
  390.  
  391. if(intid == 401) then
  392. player:Teleport(0, -6047.203125, -3313.854980, 258.708557)
  393. unit:GossipComplete(player)
  394. end
  395.  
  396. if(intid == 402) then
  397. player:Teleport(0, -10906.685547, -2927.268066, 12.964416)
  398. unit:GossipComplete(player)
  399. end
  400.  
  401. if(intid == 403) then
  402. player:Teleport(0, -7889.491699, -1135.223267, 2.924039)
  403. unit:GossipComplete(player)
  404. end
  405.  
  406. if(intid == 404) then
  407. player:Teleport(0, -10448.166016, -1856.763916, 105.005913)
  408. unit:GossipComplete(player)
  409. end
  410.  
  411. if(intid == 405) then
  412. player:Teleport(0, -5433.301270, -224.541077, 407.520925)
  413. unit:GossipComplete(player)
  414. end
  415.  
  416. if(intid == 406) then
  417. player:Teleport(0, -11279.900391, -361.012268, 62.467072)
  418. unit:GossipComplete(player)
  419. end
  420.  
  421. if(intid == 407) then
  422. player:Teleport(0, 1964.197754, -4337.873047, 74.472122)
  423. unit:GossipComplete(player)
  424. end
  425.  
  426. if(intid == 408) then
  427. player:Teleport(0, -9548.906250, -52.026482, 56.932626)
  428. unit:GossipComplete(player)
  429. end
  430.  
  431. if(intid == 409) then
  432. player:Teleport(530, 9445.799805, -6780.160645, 16.617193)
  433. unit:GossipComplete(player)
  434. end
  435.  
  436. if(intid == 410) then
  437. player:Teleport(530, 7560.582520, -6810.677246, 87.206497)
  438. unit:GossipComplete(player)
  439. end
  440.  
  441. if(intid == 412) then
  442. player:Teleport(0, -843.708008, -545.247009, 11.397400)
  443. unit:GossipComplete(player)
  444. end
  445.  
  446. if(intid == 412) then
  447. player:Teleport(0, -843.708008, -545.247009, 11.397400)
  448. unit:GossipComplete(player)
  449. end
  450.  
  451. if(intid == 414) then
  452. player:Teleport(0, -9249.617188, -2148.591553, 63.933914)
  453. unit:GossipComplete(player)
  454. end
  455.  
  456. if(intid == 415) then
  457. player:Teleport(0, -7355.223633, -1098.422485, 277.840637)
  458. unit:GossipComplete(player)
  459. end
  460.  
  461. if(intid == 416) then
  462. player:Teleport(0, 513.679016, 1625.099976, 125.510002)
  463. unit:GossipComplete(player)
  464. end
  465.  
  466. if(intid == 417) then
  467. player:Teleport(0, -11612.054688, -58.522003, 105.949398)
  468. unit:GossipComplete(player)
  469. end
  470.  
  471. if(intid == 418) then
  472. player:Teleport(0, -10460.044922, -3261.839600, 20.178509)
  473. unit:GossipComplete(player)
  474. end
  475.  
  476. if(intid == 419) then
  477. player:Teleport(0, 146.856552, -2003.116577, 126.594170)
  478. unit:GossipComplete(player)
  479. end
  480.  
  481. if(intid == 420) then
  482. player:Teleport(0, 2034.480835, 292.189941, 54.163761)
  483. unit:GossipComplete(player)
  484. end
  485.  
  486. if(intid == 421) then
  487. player:Teleport(0, -10518.205078, 1069.469116, 54.769070)
  488. unit:GossipComplete(player)
  489. end
  490.  
  491. if(intid == 422) then
  492. player:Teleport(0, 1265.575073, -1194.470703, 59.570076)
  493. unit:GossipComplete(player)
  494. end
  495.  
  496. if(intid == 423) then
  497. player:Teleport(0, -4086.566650, -2614.740479, 44.690865)
  498. unit:GossipComplete(player)
  499. end
  500.  
  501. if(intid == 430) then
  502. player:Teleport(1, 3189.298584, 226.574127, 14.819330)
  503. unit:GossipComplete(player)
  504. end
  505.  
  506. if(intid == 431) then
  507. player:Teleport(530, -4194.541992, -12555.260742, 39.841660)
  508. unit:GossipComplete(player)
  509. end
  510.  
  511. if(intid == 432) then
  512. player:Teleport(530, -2738.501797, -12210.000977, 8.803289)
  513. unit:GossipComplete(player)
  514. end
  515.  
  516. if(intid == 433) then
  517. player:Teleport(1, 6207.632813, -154.939209, 80.792686)
  518. unit:GossipComplete(player)
  519. end
  520.  
  521. if(intid == 434) then
  522. player:Teleport(1, -82.607262, 1676.598145, 89.806580)
  523. unit:GossipComplete(player)
  524. end
  525.  
  526. if(intid == 435) then
  527. player:Teleport(1, 340.362000, -4686.290039, 16.641100)
  528. unit:GossipComplete(player)
  529. end
  530.  
  531. if(intid == 436) then
  532. player:Teleport(1, -3460.119629, -4127.141602, 17.098972)
  533. unit:GossipComplete(player)
  534. end
  535.  
  536. if(intid == 437) then
  537. player:Teleport(1, 5486.022949, -764.407228, 338.605072)
  538. unit:GossipComplete(player)
  539. end
  540.  
  541. if(intid == 438) then
  542. player:Teleport(1, 8013.640625, -2676.404785, 514.589722)
  543. unit:GossipComplete(player)
  544. end
  545.  
  546. if(intid == 439) then
  547. player:Teleport(1, -1840.750000, -456.561005, -8.845256)
  548. unit:GossipComplete(player)
  549. end
  550.  
  551. if(intid == 440) then
  552. player:Teleport(1, -6925.356934, 915.713562, 22.929478)
  553. unit:GossipComplete(player)
  554. end
  555.  
  556. if(intid == 442) then
  557. player:Teleport(1, -7160.649902, 3841.387207, 8.671937)
  558. unit:GossipComplete(player)
  559. end
  560.  
  561. if(intid == 443) then
  562. player:Teleport(1, 9860.146484, 589.684326, 1300.625366)
  563. unit:GossipComplete(player)
  564. end
  565.  
  566. if(intid == 444) then
  567. player:Teleport(1, -1026.215698, -3672.566650, 22.966539)
  568. unit:GossipComplete(player)
  569. end
  570.  
  571. if(intid == 445) then
  572. player:Teleport(1, -4687.388184, -1836.957397, -44.047394)
  573. unit:GossipComplete(player)
  574. end
  575.  
  576. if(intid == 446) then
  577. player:Teleport(1, -6154.613281, -1090.232422, -203.079956)
  578. unit:GossipComplete(player)
  579. end
  580.  
  581. if(intid == 447) then
  582. player:Teleport(1, 6695.457031, -4669.457031, 721.567566)
  583. unit:GossipComplete(player)
  584. end
  585.  
  586. if(intid == 448) then
  587. player:Teleport(1, 2741.128418, -4411.292969, 103.803925)
  588. unit:GossipComplete(player)
  589. end
  590.  
  591. if(intid == 450) then
  592. player:Teleport(0, -242.876968, 1542.257568, 76.892174)
  593. unit:GossipComplete(player)
  594. end
  595.  
  596. if(intid == 451) then
  597. player:Teleport(0, -242.876968, 1542.257568, 76.892174)
  598. unit:GossipComplete(player)
  599. end
  600.  
  601. if(intid == 452) then
  602. player:Teleport(0, 2878.302246, -816.704773, 160.332397)
  603. unit:GossipComplete(player)
  604. end
  605.  
  606. if(intid == 453) then
  607. player:Teleport(0, 3351.682373, -3379.496094, 144.780228)
  608. unit:GossipComplete(player)
  609. end
  610.  
  611. if(intid == 454) then
  612. player:Teleport(0, 1266.714722, -2556.920166, 94.127419)
  613. unit:GossipComplete(player)
  614. end
  615.  
  616. if(intid == 455) then
  617. player:Teleport(0, -7534.680176, -1213.109985, 285.431000)
  618. unit:GossipComplete(player)
  619. end
  620.  
  621. if(intid == 456) then
  622. player:Teleport(1, -4708.069336, -3727.718994, 54.573933)
  623. unit:GossipComplete(player)
  624. end
  625.  
  626. if(intid == 457) then
  627. player:Teleport(230, 1125.097900, -454.822937, -101.581688)
  628. unit:GossipComplete(player)
  629. end
  630.  
  631. if(intid == 458) then
  632. player:Teleport(0, -11124.409180, -2015.627930, 47.120663)
  633. unit:GossipComplete(player)
  634. end
  635.  
  636. if(intid == 459) then
  637. player:Teleport(1, -8182.500000, 4696.040039, 17.523251)
  638. unit:GossipComplete(player)
  639. end
  640.  
  641. if(intid == 460) then
  642. player:Teleport(530, 3524.755371, 5101.661133, 3.072796)
  643. unit:GossipComplete(player)
  644. end
  645.  
  646. if(intid == 461) then
  647. player:Teleport(530, -333.516205, 3125.315918, -102.970184)
  648. unit:GossipComplete(player)
  649. end
  650.  
  651. if(intid == 462) then
  652. player:Teleport(530, 6852.098145, -7953.127441, 170.098938)
  653. unit:GossipComplete(player)
  654. end
  655.  
  656. if(intid == 463) then
  657. player:Teleport(530, 791.185181, 6865.699219, -65.006554)
  658. unit:GossipComplete(player)
  659. end
  660.  
  661. if(intid == 464) then
  662. player:Teleport(530, 3089.215820, 1381.435059, 184.864380)
  663. unit:GossipComplete(player)
  664. end
  665.  
  666. if(intid == 465) then
  667. player:Teleport(530, -3604.214600, 326.868164, 38.729469)
  668. unit:GossipComplete(player)
  669. end
  670.  
  671. if(intid == 466) then
  672. player:Teleport(530, 12577.938477, -6775.112305, 15.086068)
  673. unit:GossipComplete(player)
  674. end
  675.  
  676. if(intid == 467) then
  677. player:Teleport(530, -360.265076, 3068.756104, -15.114500)
  678. unit:GossipComplete(player)
  679. end
  680.  
  681. if(intid == 468) then
  682. player:Teleport(530, -299.533020, 3158.082520, 31.658264)
  683. unit:GossipComplete(player)
  684. end
  685.  
  686. if(intid == 469) then
  687. player:Teleport(530, -308.039093, 3069.387207, -3.330737)
  688. unit:GossipComplete(player)
  689. end
  690.  
  691. if(intid == 470) then
  692. player:Teleport(530, -3095.589355, 4947.178711, -101.084450)
  693. unit:GossipComplete(player)
  694. end
  695.  
  696. if(intid == 471) then
  697. player:Teleport(530, -3360.259521, 4693.305176, -101.048592)
  698. unit:GossipComplete(player)
  699. end
  700.  
  701. if(intid == 472) then
  702. player:Teleport(530, -3363.312500, 5206.016602, -101.049477)
  703. unit:GossipComplete(player)
  704. end
  705.  
  706. if(intid == 473) then
  707. player:Teleport(530, -3605.316406, 4942.418945, -101.048210)
  708. unit:GossipComplete(player)
  709. end
  710.  
  711. if(intid == 474) then
  712. player:Teleport(530, 12886.801758, -7332.976074, 65.481247)
  713. unit:GossipComplete(player)
  714. end
  715.  
  716. if(intid == 475) then
  717. player:Teleport(530, 3100.356094, 1527.632568, 190.300339)
  718. unit:GossipComplete(player)
  719. end
  720.  
  721. if(intid == 476) then
  722. player:Teleport(530, 716.138062, 6991.310547, -73.074303)
  723. unit:GossipComplete(player)
  724. end
  725.  
  726. if(intid == 477) then
  727. player:Teleport(530, 778.920959, 6766.257324, -71.898819)
  728. unit:GossipComplete(player)
  729. end
  730.  
  731. if(intid == 478) then
  732. player:Teleport(530, -248.000000, 956.000000, 84.362801)
  733. unit:GossipComplete(player)
  734. end
  735.  
  736. if(intid == 479) then
  737. player:Teleport(530, -1040.743164, 5380.502930, 22.108717)
  738. unit:GossipComplete(player)
  739. end
  740.  
  741. if(intid == 480) then
  742. player:Teleport(530, -481.318756, 8420.708984, 31.585732)
  743. unit:GossipComplete(player)
  744. end
  745.  
  746. if(intid == 481) then
  747. player:Teleport(530, 1714.867432, 6047.045898, 143.767380)
  748. unit:GossipComplete(player)
  749. end
  750.  
  751. if(intid == 482) then
  752. player:Teleport(530, 3382.884277, 4140.254395, 148.334152)
  753. unit:GossipComplete(player)
  754. end
  755.  
  756. if(intid == 483) then
  757. player:Teleport(530, -1942.855713, 4684.942871, -2.187463)
  758. unit:GossipComplete(player)
  759. end
  760.  
  761. if(intid == 484) then
  762. player:Teleport(530, -2975.471436, 2959.093750, 72.738640)
  763. unit:GossipComplete(player)
  764. end
  765.  
  766. if(intid == 485) then
  767. player:Teleport(571, 2102.045166, 6529.468262, 0.573996)
  768. unit:GossipComplete(player)
  769. end
  770.  
  771. if(intid == 486) then
  772. player:Teleport(571, 5711.308105, 1011.812256, 174.479507)
  773. unit:GossipComplete(player)
  774. end
  775.  
  776. if(intid == 487) then
  777. player:Teleport(571, 3509.596926, 2841.850830, 36.646351)
  778. unit:GossipComplete(player)
  779. end
  780.  
  781. if(intid == 488) then
  782. player:Teleport(571, 3349.896729, -5593.875000, 259.144592)
  783. unit:GossipComplete(player)
  784. end
  785.  
  786. if(intid == 489) then
  787. player:Teleport(571, 2027.013550, -4510.509277, 207.624573)
  788. unit:GossipComplete(player)
  789. end
  790.  
  791. if(intid == 490) then
  792. player:Teleport(571, 6711.064063, 2473.802979, 429.895142)
  793. unit:GossipComplete(player)
  794. end
  795.  
  796. if(intid == 491) then
  797. player:Teleport(571, 5573.436523, 5749.734375, -74.824722)
  798. unit:GossipComplete(player)
  799. end
  800.  
  801. if(intid == 492) then
  802. player:Teleport(571, 6109.867676, -1059.728882, 403.013428)
  803. unit:GossipComplete(player)
  804. end
  805.  
  806. if(intid == 493) then
  807. player:Teleport(571, 5452.265137, -2608.871094, 306.910156)
  808. unit:GossipComplete(player)
  809. end
  810.  
  811. if(intid == 494) then
  812. player:Teleport(571, 3672.763672, -1272.110596, 243.509659)
  813. unit:GossipComplete(player)
  814. end
  815.  
  816. if(intid == 495) then
  817. player:Teleport(571, 9183.885742, -1385.423096, 1110.215698)
  818. unit:GossipComplete(player)
  819. end
  820.  
  821. if(intid == 496) then
  822. player:Teleport(571, 8921.869141, -981.888062, 1039.308594)
  823. unit:GossipComplete(player)
  824. end
  825.  
  826. if(intid == 497) then
  827. player:Teleport(571, 3516.448486, 268.855072, -114.035500)
  828. unit:GossipComplete(player)
  829. end
  830.  
  831. if(intid == 498) then
  832. player:Teleport(571, 5467.650879, 2840.862305, 418.675415)
  833. unit:GossipComplete(player)
  834. end
  835.  
  836. if(intid == 499) then
  837. player:Teleport(571, 5687.046387, 495.134888, 652.644714)
  838. unit:GossipComplete(player)
  839. end
  840.  
  841. if(intid == 600) then
  842. player:Teleport(571, 1255.936279, -4852.825684, 215.602203)
  843. unit:GossipComplete(player)
  844. end
  845.  
  846. if(intid == 601) then
  847. player:Teleport(571, 3773.419922, 6939.600098, 106.174004)
  848. unit:GossipComplete(player)
  849. end
  850.  
  851. if(intid == 602) then
  852. player:Teleport(571, 9333.074219, -1115.338257, 1245.146851)
  853. unit:GossipComplete(player)
  854. end
  855.  
  856. --Event Teleports Start Here!
  857.  
  858. if(intid == 700) then
  859. player:Teleport(476, 85.4, 51.7, 63)
  860. unit:GossipComplete(player)
  861. end
  862.  
  863. if(intid == 701) then
  864. player:Teleport(mapid, xcoord, ycoord, zcoord)
  865. unit:GossipComplete(player)
  866. end
  867.  
  868. if(intid == 702) then
  869. player:Teleport(mapid, xcoord, ycoord, zcoord)
  870. unit:GossipComplete(player)
  871. end
  872.  
  873. if(intid == 703) then
  874. player:Teleport(mapid, xcoord, ycoord, zcoord)
  875. unit:GossipComplete(player)
  876. end
  877.  
  878. if(intid == 704) then
  879. player:Teleport(mapid, xcoord, ycoord, zcoord)
  880. unit:GossipComplete(player)
  881. end
  882.  
  883. --Event Teleports Stop Here & Custom Instances/Area Teleports Start Here!
  884.  
  885. if(intid == 800) then
  886. player:Teleport(mapid, xcoord, ycoord, zcoord)
  887. unit:GossipComplete(player)
  888. end
  889.  
  890. if(intid == 801) then
  891. player:Teleport(mapid, xcoord, ycoord, zcoord)
  892. unit:GossipComplete(player)
  893. end
  894.  
  895. if(intid == 802) then
  896. player:Teleport(mapid, xcoord, ycoord, zcoord)
  897. unit:GossipComplete(player)
  898. end
  899.  
  900. if(intid == 803) then
  901. player:Teleport(mapid, xcoord, ycoord, zcoord)
  902. unit:GossipComplete(player)
  903. end
  904.  
  905. if(intid == 804) then
  906. player:Teleport(mapid, xcoord, ycoord, zcoord)
  907. unit:GossipComplete(player)
  908. end
  909.  
  910. --Custom Instances/Areas Teleports Stop Here!
  911.  
  912. if(intid == 900) then
  913. player:Teleport(0, -13263.00, 160.08, 37.27)
  914. unit:GossipComplete(player)
  915. end
  916.  
  917. if(intid == 901) then
  918. player:Teleport(1, -3842.24, 1097.79, 163.01)
  919. unit:GossipComplete(player)
  920. end
  921. end
  922.  
  923.  
  924.  
  925. function exampleGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
  926. if (intid == 1) then
  927. player:Teleport(1, -11837, -4812, 6)
  928. player:GossipComplete()
  929. end
  930. if (intid == 4) then
  931. if (player:HasAura(15007) == true) then
  932. player:SendBroadcastMessage("Resurrection Sickness has been removed.")
  933. player:RemoveAura(15007)
  934. player:GossipComplete()
  935. else
  936. player:SendBroadcastMessage("You do not have Resurrection Sickness!")
  937. player:GossipComplete()
  938. end
  939. end
  940. end
  941.  
  942. -- RegisterUnitEvents
  943. RegisterUnitGossipEvent(175001, 1, exampleGossipOnTalk)
  944. RegisterUnitGossipEvent(175001, 2, exampleGossipOnSelect)
  945. RegisterUnitGossipEvent(175001, 3, "On_Gossip")
  946. RegisterUnitGossipEvent(175001, 4, "Gossip_Submenus")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement