Advertisement
XtremeGX

ICC teleport

Jun 1st, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.99 KB | None | 0 0
  1. local GameObject_ID = 202242
  2.  
  3. function On_Gossip(unit, event, player)
  4. unit:GossipCreateMenu(3000, player, 0)
  5. unit:GossipMenuAddItem(2, "The Lower Spire", 1, 0)
  6. unit:GossipMenuAddItem(2, "The Plagueworks", 2, 0)
  7. unit:GossipMenuAddItem(2, "The Crimson Hall", 3, 0)
  8. unit:GossipMenuAddItem(2, "The Frostwing Halls", 4, 0)
  9. unit:GossipMenuAddItem(2, "The Frozen Throne", 5, 0)
  10. unit:GossipMenuAddItem(4, "Remove Ressurection sickness", 998, 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(2, "The Lower Spire", 1, 0)
  19. unit:GossipMenuAddItem(2, "The Plagueworks", 2, 0)
  20. unit:GossipMenuAddItem(2, "The Crimson Hall", 3, 0)
  21. unit:GossipMenuAddItem(2, "The Frostwing Halls", 4, 0)
  22. unit:GossipMenuAddItem(2, "The Frozen Throne", 5, 0)
  23. unit:GossipMenuAddItem(4, "Remove Ressurection sickness", 998, 0)
  24. unit:GossipSendMenu(player)
  25. end
  26.  
  27. if(intid == 1) then
  28. unit:GossipCreateMenu(3000, player, 0)
  29. unit:GossipMenuAddItem(2, "Lord Marrowgar", 300, 0)
  30. unit:GossipMenuAddItem(2, "Lady Deathwhisper", 301, 0)
  31. unit:GossipMenuAddItem(2, "Gunship Battle", 302, 0)
  32. unit:GossipMenuAddItem(2, "Deathbringer Saurfang", 303, 0)
  33. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  34. unit:GossipSendMenu(player)
  35. end
  36.  
  37. if(intid == 2) then
  38. unit:GossipCreateMenu(3000, player, 0)
  39. unit:GossipMenuAddItem(2, "Festergut", 304, 0)
  40. unit:GossipMenuAddItem(2, "Rotface", 305, 0)
  41. unit:GossipMenuAddItem(2, "Professor Putricide", 306, 0)
  42. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  43. unit:GossipSendMenu(player)
  44. end
  45.  
  46. if(intid == 3) then
  47. unit:GossipCreateMenu(3000, player, 0)
  48. unit:GossipMenuAddItem(2, "Blood Prince Council", 307, 0)
  49. unit:GossipMenuAddItem(2, "Blood-Queen Lana'thel", 308, 0)
  50. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  51. unit:GossipSendMenu(player)
  52. end
  53.  
  54. if(intid == 4) then
  55. unit:GossipCreateMenu(3000, player, 0)
  56. unit:GossipMenuAddItem(3, "Valithria Dreamwalker", 309, 0)
  57. unit:GossipMenuAddItem(3, "Sindragosa", 310, 0)
  58. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  59. unit:GossipSendMenu(player)
  60. end
  61.  
  62. if(intid == 5) then
  63. unit:GossipCreateMenu(3000, player, 0)
  64. unit:GossipMenuAddItem(3, "The Lich King", 511, 0)
  65. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  66. unit:GossipSendMenu(player)
  67. end
  68.  
  69. if(intid == 900) then
  70. unit:GossipCreateMenu(62, player, 0)
  71. player:LearnSpell(15007)
  72. player:UnlearnSpell(15007)
  73. unit:GossipMenuAddItem(0, "[Back]", 999, 0)
  74. unit:GossipSendMenu(player)
  75. end
  76.  
  77. if(intid == 300) then
  78. player:Teleport(631, -17.090115, 2211.440430, 30.115721)
  79. unit:GossipComplete(player)
  80. end
  81.  
  82. if(intid == 301) then
  83. player:Teleport(631, -503.285339, 2211.499268, 62.823330)
  84. unit:GossipComplete(player)
  85. end
  86.  
  87. if(intid == 302) then
  88. player:Teleport(631, -615.354980, 2211.466309, 199.971100)
  89. unit:GossipComplete(player)
  90. end
  91.  
  92. if(intid == 303) then
  93. player:Teleport(631, -549.196106, 2211.171631, 539.290466)
  94. unit:GossipComplete(player)
  95. end
  96.  
  97. if(intid == 304) then
  98. player:Teleport(631, 4268.282715, 3083.905029, 360.443359)
  99. unit:GossipComplete(player)
  100. end
  101.  
  102. if(intid == 305) then
  103. player:Teleport(631, 4446.13960, 3081.873047, 360.524475)
  104. unit:GossipComplete(player)
  105. end
  106.  
  107. if(intid == 306) then
  108. player:Teleport(631, 4356.679199, 3166.011230, 389.398712)
  109. unit:GossipComplete(player)
  110. end
  111.  
  112. if(intid == 307) then
  113. player:Teleport(631, 4452.511230, 2769.268555, 349.352020)
  114. unit:GossipComplete(player)
  115. end
  116.  
  117. if(intid == 308) then
  118. player:Teleport(631, 4559.946777, 2769.475098, 400.138641)
  119. unit:GossipComplete(player)
  120. end
  121.  
  122. if(intid == 309) then
  123. player:Teleport(631, 4356.701172, 2674.051270, 349.336792)
  124. unit:GossipComplete(player)
  125. end
  126.  
  127. if(intid == 310) then
  128. player:Teleport(631, 4356.701172, 2674.051270, 349.336792)
  129. unit:GossipComplete(player)
  130. end
  131.  
  132. if(intid == 311) then
  133. player:Teleport(631, 529.727905, -2414.865234, 1040.869056)
  134. unit:GossipComplete(player)
  135. end
  136.  
  137. end
  138. end
  139.  
  140. RegisterGameObjectEvent(202242, 4, "object_OnGossip")
  141. RegisterGOGossipEvent(202242, 2, "Gossip_Submenus")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement