Advertisement
WIXXZI

Untitled

Feb 7th, 2023
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.60 KB | None | 0 0
  1. ocal ITEM_ID = 6948
  2.  
  3. local function ShowMenu(event, player, item, sender, intid)
  4. if (intid == 0) then
  5.  
  6. player:GossipMenuAddItem(1, "|TInterface/ICONS/Achievement_Zone_Outland_01:35:35|t|cFF7FFF00Mall", 0, 1)
  7. player:GossipMenuAddItem(2, "|TInterface/ICONS/Achievement_Zone_Northrend_01:35:35|t|cFF00008BCustom Zones", 0, 2)
  8. player:GossipMenuAddItem(9, "|TInterface/ICONS/Ability_DualWieldSpecialization:35:35|t|cFF9932CCPvP Zones", 0, 3)
  9. player:GossipMenuAddItem(9, "|TInterface/ICONS/Achievement_Boss_Magtheridon:35:35|t|cFFA52A2AWorld Bosses", 0, 5)
  10. player:GossipMenuAddItem(7, "|TInterface/ICONS/Achievement_Boss_EdwinVancleef:35:35|t|cffff6060Transmog Content", 0, 4)
  11. player:GossipMenuAddItem(7, "|TInterface/ICONS/Spell_Misc_EmotionAngry:35:35|t|cff00ccffDuel Zone", 0, 6)
  12. player:GossipMenuAddItem(3, "|TInterface/ICONS/Achievement_Boss_Sindragosa:35:35|t|cff0000ffCustom Instances", 0, 8)
  13. player:GossipMenuAddItem(3, "|TInterface/ICONS/achievement_pvp_p_15:35:35|t|cFF8A2BE2Vip Tools", 0, 52)
  14. player:GossipMenuAddItem(5, "Nevermind..", 0, 30)
  15. player:GossipSendMenu(8, item)
  16. end
  17. if (intid == 150) then
  18.  
  19. player:GossipMenuAddItem(1, "|TInterface/ICONS/Achievement_Zone_Outland_01:35:35|t|cFF7FFF00Mall", 0, 1)
  20. player:GossipMenuAddItem(2, "|TInterface/ICONS/Achievement_Zone_Northrend_01:35:35|t|cFF00008BCustom Zones", 0, 2)
  21. player:GossipMenuAddItem(9, "|TInterface/ICONS/Ability_DualWieldSpecialization:35:35|t|cFF9932CCPvP Zones", 0, 3)
  22. player:GossipMenuAddItem(9, "|TInterface/ICONS/Achievement_Boss_Magtheridon:35:35|t|cFFA52A2AWorld Bosses", 0, 5)
  23. player:GossipMenuAddItem(7, "|TInterface/ICONS/Achievement_Boss_EdwinVancleef:35:35|t|cffff6060Transmog Content", 0, 4)
  24. player:GossipMenuAddItem(7, "|TInterface/ICONS/Spell_Misc_EmotionAngry:35:35|t|cff00ccffDuel Zone", 0, 6)
  25. player:GossipMenuAddItem(3, "|TInterface/ICONS/Achievement_Boss_Sindragosa:35:35|t|cff0000ffCustom Instances", 0, 8)
  26. player:GossipMenuAddItem(3, "|TInterface/ICONS/achievement_pvp_p_01:35:35|t|cFF8A2BE2Player Tools", 0, 7)
  27. player:GossipMenuAddItem(5, "Nevermind..", 0, 30)
  28. player:GossipSendMenu(2, item)
  29. end
  30. end
  31.  
  32.  
  33. local function On_Gossip(event, player, item)
  34. local rank = player:GetGMRank()
  35. if (player:IsInCombat()) then
  36. player:SendAreaTriggerMessage("|cffff0000You're in combat!")
  37. player:GossipComplete()
  38. return
  39. end
  40. if rank >=1 then
  41. ShowMenu(event, player, item, 0, 0)
  42. elseif rank == 0 then
  43. ShowMenu(event, player, item, 0, 150)
  44. end
  45. end
  46. local function On_Select(event, player, item, sender, intid)
  47. ShowMenu(event, player, item, sender, intid)
  48. -- Teleports
  49.  
  50. if (intid == 1) then -- Mall
  51. player:Teleport(0, -586.450989, -4615.452637, 9.384386, 6.188698)
  52. player:GossipComplete()
  53. end
  54.  
  55. -- Custom Zones
  56. if (intid == 2) then
  57. player:GossipClearMenu()
  58. player:GossipMenuAddItem(1, "|TInterface/ICONS/inv_misc_volatileair:35:35|tCustom Spell Farm", 0, 40)
  59. player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_quests_completed_daily_07:35:35|tDaily Quest Zone", 0, 41)
  60. player:GossipMenuAddItem(5, "Back..", 0, 0)
  61. player:GossipSendMenu(1, item)
  62. end
  63.  
  64. -- PvP Zones
  65. if (intid == 3) then
  66. player:GossipClearMenu()
  67. player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_pvp_p_14:35:35|tDire Maul Arena", 0, 50)
  68. player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_pvp_o_14:35:35|tGurubashi Arena", 0, 51)
  69. player:GossipMenuAddItem(5, "Back..", 0, 0)
  70. player:GossipSendMenu(60001, item)
  71. end
  72.  
  73. -- Transmog Content
  74. if (intid == 4) then
  75. player:Teleport(0, -564.214355, -4626.880859, 13.206554, 4.977942)
  76. player:GossipComplete()
  77. end
  78.  
  79. -- World Bosses
  80. if (intid == 5) then
  81. player:Teleport(1, 149.444031, 1318.088257, 192.075699, 2.597752)
  82. player:GossipComplete()
  83. end
  84.  
  85. -- Duel Zone
  86. if (intid == 6) then
  87. player:Teleport(724, 3155.9899, 536.5004, 72.888748, 6.218666)
  88. player:GossipComplete()
  89. end
  90. -- Player tools
  91. if (intid == 7) then
  92. player:GossipComplete()
  93. player:Teleport(1, -2697.097900, -4671.856934, 10.163723, 3.114920)
  94. end
  95.  
  96. if (intid == 8) then -- Custom Instances menu
  97. player:GossipClearMenu()
  98. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_fire_immolation:30:30|tRagefire Chasm (Tier 1)", 0, 9)
  99. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_nature_nullifypoison:30:30|tShadowfang Keep (Tier 2)", 0, 10)
  100. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_magic_polymorphpig:30:30|tRazorfen Kraul (Tier 3)", 0, 11)
  101. player:GossipMenuAddItem(2, "|TInterface/ICONS/achievement_character_orc_male:30:30|tHellfire Ramparts (Tier 4)", 0, 12)
  102. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_deathknight_bloodboil:30:30|tBlood Furnace (Tier 5)", 0 , 13)
  103. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_shadow_sealofkings:30:30|tShadow Labyrinth (Tier 6)", 0, 14)
  104. player:GossipMenuAddItem(2, "|TInterface/ICONS/inv_misc_head_troll_01:30:30|tZul Farrak (Tier 7)", 0, 15)
  105. player:GossipMenuAddItem(9, "|TInterface/ICONS/inv_axe_82:30:30|tUtgarde Pinnacle (Tier 8)", 0, 16)
  106. player:GossipMenuAddItem(5, "Back..", 0, 0)
  107. player:GossipSendMenu(1, item)
  108. end
  109.  
  110.  
  111. if (intid == 9) then -- Ragefire Chasm
  112. player:Teleport(389, 1.092663, -22.955704, -20.326614, 4.390)
  113. player:GossipComplete()
  114. end
  115.  
  116. if (intid == 10) then -- Shadowfang Keep
  117. player:Teleport(0, -242.164902, 1543.681885, 76.892212, 1.1198837)
  118. player:GossipComplete()
  119. end
  120.  
  121. if (intid == 11) then -- Razorfen Kraul
  122. player:Teleport(1, -4474.772461, -1695.642334, 82.273674, 1.339731)
  123. player:GossipComplete()
  124. end
  125.  
  126. if (intid == 12) then -- Hellfire Ramparts
  127. player:Teleport(530, -357.303558, 3065.019287, -15.145701, 2.011700)
  128. player:GossipComplete()
  129. end
  130.  
  131. if (intid == 13) then -- Blood Furnace
  132. player:Teleport(530, -284.574738, 3135.608398, 31.441107, 2.176633)
  133. player:GossipComplete()
  134. end
  135.  
  136. if (intid == 14) then -- Shadow Labyrinth
  137. player:Teleport(530, -3622.432373, 4943.083984, -101.048973, 3.132896)
  138. player:GossipComplete()
  139. end
  140.  
  141. if (intid == 15) then -- Zul Farrak
  142. player:Teleport(1, -6807.509277, -2891.428955, 8.883235, 0.036902)
  143. player:GossipComplete()
  144. end
  145.  
  146. if (intid == 16) then -- Utgarde Pinnacle
  147. player:Teleport(571, 1253.351562, -4853.539551, 215.732941, 3.490784)
  148. player:GossipComplete()
  149. end
  150.  
  151. if (intid == 30) then -- Only Gossip Complete
  152. player:GossipComplete()
  153. end
  154.  
  155. if (intid == 40) then
  156. player:Teleport(571, 4572.972656, 6047.729492, 79.680885, 3.094661) -- Spell Farm Zone
  157. player:GossipComplete()
  158. end
  159.  
  160. if (intid == 41) then -- Daily Quest Zone
  161. player:Teleport(571, 4572.972656, 6047.729492, 79.680885, 3.094661) -- Spell Farm Zone
  162. player:GossipComplete()
  163. end
  164.  
  165. if (intid == 50) then -- Dire Maul Arena
  166. player:Teleport(1, -3760.685547, 1207.847778, 127.435806, 4.695889)
  167. end
  168.  
  169. if (intid == 51) then -- Gurubashi Arena
  170. player:Teleport(0, -13249.189453, 185.469620, 31.646173, 1.118780)
  171. end
  172.  
  173. if (intid == 52) then -- VIP Tools menu
  174. player:GossipClearMenu()
  175. player:GossipMenuAddItem(2, "|TInterface/ICONS/achievement_pvp_a_14:30:30|tVIP Mall", 0, 20)
  176. player:GossipMenuAddItem(3, "|TInterface/ICONS/achievement_pvp_g_01:30:30|tVIP Buff", 0, 21)
  177. player:GossipMenuAddItem(1, "|TInterface/ICONS/inv_misc_coin_02:30:30|tBank", 0, 22)
  178. player:GossipMenuAddItem(5, "|TInterface/ICONS/factionchange:30:30|tChange Faction", 0, 23)
  179. player:GossipMenuAddItem(5, "|TInterface/ICONS/racechange:30:30|tChange Race", 0, 24)
  180. player:GossipMenuAddItem(5, "|TInterface/ICONS/vas_appearancechange:30:30|tChange Name", 0, 25)
  181. player:GossipMenuAddItem(5, "Back..", 0, 0)
  182. player:GossipSendMenu(4, item)
  183. end
  184.  
  185. end
  186.  
  187. RegisterItemGossipEvent(ITEM_ID, 1, On_Gossip)
  188. RegisterItemGossipEvent(ITEM_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement