WIXXZI

Untitled

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