Advertisement
WIXXZI

Untitled

Feb 7th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. -- Config
  2. local NPC_ID = 60001
  3.  
  4. local function ShowMenu(player, unit, sender, intid)
  5.  
  6. if (intid == 0) then
  7. player:GossipMenuAddItem(1, "|TInterface/ICONS/Achievement_Zone_Outland_01:35:35|t|cFF7FFF00Mall", 0, 1)
  8. player:GossipMenuAddItem(2, "|TInterface/ICONS/Achievement_Zone_Northrend_01:35:35|t|cFF00008BCustom Zones", 0, 2)
  9. player:GossipMenuAddItem(9, "|TInterface/ICONS/Ability_DualWieldSpecialization:35:35|t|cFF9932CCPvP Zones", 0, 3)
  10. player:GossipMenuAddItem(9, "|TInterface/ICONS/Achievement_Boss_Magtheridon:35:35|t|cFFA52A2AWorld Bosses", 0, 5)
  11. player:GossipMenuAddItem(7, "|TInterface/ICONS/Achievement_Boss_EdwinVancleef:35:35|t|cffff6060Transmog Content", 0, 4)
  12. player:GossipMenuAddItem(7, "|TInterface/ICONS/Spell_Misc_EmotionAngry:35:35|t|cff00ccffDuel Zone", 0, 6)
  13. player:GossipMenuAddItem(3, "|TInterface/ICONS/Achievement_Boss_Sindragosa:35:35|t|cff0000ffCustom Instances", 0, 8)
  14. player:GossipMenuAddItem(5, "Nevermind..", 0, 30)
  15. player:GossipSendMenu(60001, unit)
  16. end
  17. end
  18.  
  19. local function On_Gossip(event, player, unit)
  20. if (player:IsInCombat()) then
  21. player:SendAreaTriggerMessage("|cffff0000You're in combat!")
  22. player:GossipComplete()
  23. return
  24. end
  25. ShowMenu(player, unit, 0, 0)
  26. end
  27.  
  28. function On_Select(event, player, unit, sender, intid, code)
  29. ShowMenu(player, unit, sender, intid)
  30.  
  31. -- Teleports
  32. if (intid == 1) then -- Mall
  33. player:Teleport(0, -586.450989, -4615.452637, 9.384386, 6.188698)
  34. end
  35.  
  36. -- Custom Zones
  37. if (intid == 2) then
  38. player:GossipClearMenu()
  39. player:GossipMenuAddItem(1, "|TInterface/ICONS/inv_scroll_03:35:35|tCustom Spell Farm", 0, 40)
  40. player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_quests_completed_daily_07:35:35|tDaily Quest Zone", 0, 41)
  41. player:GossipMenuAddItem(5, "Back..", 0, 0)
  42. player:GossipSendMenu(1, unit)
  43. end
  44.  
  45. -- PvP Zones
  46. if (intid == 3) then
  47. player:GossipClearMenu()
  48. player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_pvp_p_14:35:35|tDire Maul Arena", 0, 50)
  49. player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_pvp_o_14:35:35|tGurubashi Arena", 0, 51)
  50. player:GossipMenuAddItem(5, "Back..", 0, 0)
  51. player:GossipSendMenu(60001, unit)
  52. end
  53.  
  54. -- Transmog Content
  55. if (intid == 4) then
  56. player:Teleport(0, -564.214355, -4626.880859, 13.206554, 4.977942)
  57. end
  58.  
  59. -- World Bosses
  60. if (intid == 5) then
  61. player:Teleport(1, 149.444031, 1318.088257, 192.075699, 2.597752)
  62. end
  63.  
  64. -- Duel Zone
  65. if (intid == 6) then
  66. player:Teleport(724, 3155.9899, 536.5004, 72.888748, 6.218666)
  67. end
  68. -- Nothing atm
  69. if (intid == 7) then
  70. player:Teleport(1, -2697.097900, -4671.856934, 10.163723, 3.114920)
  71. end
  72.  
  73. if (intid == 8) then
  74. player:GossipClearMenu()
  75. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_fire_immolation:30:30|tRagefire Chasm (Tier 1)", 0, 9)
  76. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_nature_nullifypoison:30:30|tShadowfang Keep (Tier 2)", 0, 10)
  77. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_magic_polymorphpig:30:30|tRazorfen Kraul (Tier 3)", 0, 11)
  78. player:GossipMenuAddItem(2, "|TInterface/ICONS/achievement_character_orc_male:30:30|tHellfire Ramparts (Tier 4)", 0, 12)
  79. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_deathknight_bloodboil:30:30|tBlood Furnace (Tier 5)", 0 , 13)
  80. player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_shadow_sealofkings:30:30|tShadow Labyrinth (Tier 6)", 0, 14)
  81. player:GossipMenuAddItem(2, "|TInterface/ICONS/inv_misc_head_troll_01:30:30|tZul Farrak (Tier 7)", 0, 15)
  82. player:GossipMenuAddItem(9, "|TInterface/ICONS/inv_axe_82:30:30|tUtgarde Pinnacle (Tier 8)", 0, 16)
  83. player:GossipMenuAddItem(5, "Back..", 0, 0)
  84. player:GossipSendMenu(1, unit)
  85. end
  86.  
  87. -- This is where Custom Instances teleports begin
  88.  
  89. if (intid == 9) then -- Ragefire Chasm
  90. player:Teleport(389, 1.092663, -22.955704, -20.326614, 4.390)
  91. player:GossipComplete()
  92. end
  93.  
  94. if (intid == 10) then -- Shadowfang Keep
  95. player:Teleport(0, 1, 1, 1, 1)
  96. player:GossipComplete()
  97. end
  98.  
  99. if (intid == 11) then -- Razorfen Kraul
  100. player:Teleport(0, x, y, z, o)
  101. player:GossipComplete()
  102. end
  103.  
  104. if (intid == 12) then -- Hellfire Ramparts
  105. player:Teleport(0, x, y, z, o)
  106. player:GossipComplete()
  107. end
  108.  
  109. if (intid == 13) then -- Blood Furnace
  110. player:Teleport(0, X, y, z, o)
  111. player:GossipComplete()
  112. end
  113.  
  114. if (intid == 14) then -- Shadow Labyrinth
  115. player:Teleport(0, x, y, z, o)
  116. player:GossipComplete()
  117. end
  118.  
  119. if (intid == 15) then -- Zul Farrak
  120. player:Teleport(0, x, y, z, o)
  121. player:GossipComplete()
  122. end
  123.  
  124. if (intid == 16) then -- Utgarde Pinnacle
  125. player:Teleport(0, x, y, z, o)
  126. player:GossipComplete()
  127. end
  128.  
  129. if (intid == 40) then -- Custom Spell Farm
  130. player:Teleport(571, 4572.972656, 6047.729492, 79.680885, 3.094661)
  131. player:GossipComplete()
  132. end
  133.  
  134. if (intid == 50) then -- Dire Maul Arena
  135. player:Teleport(1, -3760.685547, 1207.847778, 127.435806, 4.695889)
  136. end
  137.  
  138. if (intid == 51) then -- Gurubashi Arena
  139. player:Teleport(0, -13249.189453, 185.469620, 31.646173, 1.118780)
  140. end
  141.  
  142. if (intid == 30) then
  143. player:GossipComplete()
  144.  
  145. end
  146. end
  147.  
  148. RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
  149. RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement