Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ocal ITEM_ID = 6948
- local function ShowMenu(event, player, item, sender, intid)
- if (intid == 0) then
- player:GossipMenuAddItem(1, "|TInterface/ICONS/Achievement_Zone_Outland_01:35:35|t|cFF7FFF00Mall", 0, 1)
- player:GossipMenuAddItem(2, "|TInterface/ICONS/Achievement_Zone_Northrend_01:35:35|t|cFF00008BCustom Zones", 0, 2)
- player:GossipMenuAddItem(9, "|TInterface/ICONS/Ability_DualWieldSpecialization:35:35|t|cFF9932CCPvP Zones", 0, 3)
- player:GossipMenuAddItem(9, "|TInterface/ICONS/Achievement_Boss_Magtheridon:35:35|t|cFFA52A2AWorld Bosses", 0, 5)
- player:GossipMenuAddItem(7, "|TInterface/ICONS/Achievement_Boss_EdwinVancleef:35:35|t|cffff6060Transmog Content", 0, 4)
- player:GossipMenuAddItem(7, "|TInterface/ICONS/Spell_Misc_EmotionAngry:35:35|t|cff00ccffDuel Zone", 0, 6)
- player:GossipMenuAddItem(3, "|TInterface/ICONS/Achievement_Boss_Sindragosa:35:35|t|cff0000ffCustom Instances", 0, 8)
- player:GossipMenuAddItem(3, "|TInterface/ICONS/achievement_pvp_p_15:35:35|t|cFF8A2BE2Vip Tools", 0, 52)
- player:GossipMenuAddItem(5, "Nevermind..", 0, 30)
- player:GossipSendMenu(8, item)
- end
- if (intid == 150) then
- player:GossipMenuAddItem(1, "|TInterface/ICONS/Achievement_Zone_Outland_01:35:35|t|cFF7FFF00Mall", 0, 1)
- player:GossipMenuAddItem(2, "|TInterface/ICONS/Achievement_Zone_Northrend_01:35:35|t|cFF00008BCustom Zones", 0, 2)
- player:GossipMenuAddItem(9, "|TInterface/ICONS/Ability_DualWieldSpecialization:35:35|t|cFF9932CCPvP Zones", 0, 3)
- player:GossipMenuAddItem(9, "|TInterface/ICONS/Achievement_Boss_Magtheridon:35:35|t|cFFA52A2AWorld Bosses", 0, 5)
- player:GossipMenuAddItem(7, "|TInterface/ICONS/Achievement_Boss_EdwinVancleef:35:35|t|cffff6060Transmog Content", 0, 4)
- player:GossipMenuAddItem(7, "|TInterface/ICONS/Spell_Misc_EmotionAngry:35:35|t|cff00ccffDuel Zone", 0, 6)
- player:GossipMenuAddItem(3, "|TInterface/ICONS/Achievement_Boss_Sindragosa:35:35|t|cff0000ffCustom Instances", 0, 8)
- player:GossipMenuAddItem(3, "|TInterface/ICONS/achievement_pvp_p_01:35:35|t|cFF8A2BE2Player Tools", 0, 7)
- player:GossipMenuAddItem(5, "Nevermind..", 0, 30)
- player:GossipSendMenu(2, item)
- end
- end
- local function On_Gossip(event, player, item)
- local rank = player:GetGMRank()
- if (player:IsInCombat()) then
- player:SendAreaTriggerMessage("|cffff0000You're in combat!")
- player:GossipComplete()
- return
- end
- if rank >=1 then
- ShowMenu(event, player, item, 0, 0)
- elseif rank == 0 then
- ShowMenu(event, player, item, 0, 150)
- end
- end
- local function On_Select(event, player, item, sender, intid)
- ShowMenu(event, player, item, sender, intid)
- -- Teleports
- if (intid == 1) then -- Mall
- player:Teleport(0, -586.450989, -4615.452637, 9.384386, 6.188698)
- player:GossipComplete()
- end
- -- Custom Zones
- if (intid == 2) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(1, "|TInterface/ICONS/inv_misc_volatileair:35:35|tCustom Spell Farm", 0, 40)
- player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_quests_completed_daily_07:35:35|tDaily Quest Zone", 0, 41)
- player:GossipMenuAddItem(5, "Back..", 0, 0)
- player:GossipSendMenu(1, item)
- end
- -- PvP Zones
- if (intid == 3) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_pvp_p_14:35:35|tDire Maul Arena", 0, 50)
- player:GossipMenuAddItem(1, "|TInterface/ICONS/achievement_pvp_o_14:35:35|tGurubashi Arena", 0, 51)
- player:GossipMenuAddItem(5, "Back..", 0, 0)
- player:GossipSendMenu(60001, item)
- end
- -- Transmog Content
- if (intid == 4) then
- player:Teleport(0, -564.214355, -4626.880859, 13.206554, 4.977942)
- player:GossipComplete()
- end
- -- World Bosses
- if (intid == 5) then
- player:Teleport(1, 149.444031, 1318.088257, 192.075699, 2.597752)
- player:GossipComplete()
- end
- -- Duel Zone
- if (intid == 6) then
- player:Teleport(724, 3155.9899, 536.5004, 72.888748, 6.218666)
- player:GossipComplete()
- end
- -- Player tools
- if (intid == 7) then
- player:GossipComplete()
- player:Teleport(1, -2697.097900, -4671.856934, 10.163723, 3.114920)
- end
- if (intid == 8) then -- Custom Instances menu
- player:GossipClearMenu()
- player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_fire_immolation:30:30|tRagefire Chasm (Tier 1)", 0, 9)
- player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_nature_nullifypoison:30:30|tShadowfang Keep (Tier 2)", 0, 10)
- player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_magic_polymorphpig:30:30|tRazorfen Kraul (Tier 3)", 0, 11)
- player:GossipMenuAddItem(2, "|TInterface/ICONS/achievement_character_orc_male:30:30|tHellfire Ramparts (Tier 4)", 0, 12)
- player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_deathknight_bloodboil:30:30|tBlood Furnace (Tier 5)", 0 , 13)
- player:GossipMenuAddItem(2, "|TInterface/ICONS/spell_shadow_sealofkings:30:30|tShadow Labyrinth (Tier 6)", 0, 14)
- player:GossipMenuAddItem(2, "|TInterface/ICONS/inv_misc_head_troll_01:30:30|tZul Farrak (Tier 7)", 0, 15)
- player:GossipMenuAddItem(9, "|TInterface/ICONS/inv_axe_82:30:30|tUtgarde Pinnacle (Tier 8)", 0, 16)
- player:GossipMenuAddItem(5, "Back..", 0, 0)
- player:GossipSendMenu(1, item)
- end
- if (intid == 9) then -- Ragefire Chasm
- player:Teleport(389, 1.092663, -22.955704, -20.326614, 4.390)
- player:GossipComplete()
- end
- if (intid == 10) then -- Shadowfang Keep
- player:Teleport(0, -242.164902, 1543.681885, 76.892212, 1.1198837)
- player:GossipComplete()
- end
- if (intid == 11) then -- Razorfen Kraul
- player:Teleport(1, -4474.772461, -1695.642334, 82.273674, 1.339731)
- player:GossipComplete()
- end
- if (intid == 12) then -- Hellfire Ramparts
- player:Teleport(530, -357.303558, 3065.019287, -15.145701, 2.011700)
- player:GossipComplete()
- end
- if (intid == 13) then -- Blood Furnace
- player:Teleport(530, -284.574738, 3135.608398, 31.441107, 2.176633)
- player:GossipComplete()
- end
- if (intid == 14) then -- Shadow Labyrinth
- player:Teleport(530, -3622.432373, 4943.083984, -101.048973, 3.132896)
- player:GossipComplete()
- end
- if (intid == 15) then -- Zul Farrak
- player:Teleport(1, -6807.509277, -2891.428955, 8.883235, 0.036902)
- player:GossipComplete()
- end
- if (intid == 16) then -- Utgarde Pinnacle
- player:Teleport(571, 1253.351562, -4853.539551, 215.732941, 3.490784)
- player:GossipComplete()
- end
- if (intid == 30) then -- Only Gossip Complete
- player:GossipComplete()
- end
- if (intid == 40) then
- player:Teleport(571, 4572.972656, 6047.729492, 79.680885, 3.094661) -- Spell Farm Zone
- player:GossipComplete()
- end
- if (intid == 41) then -- Daily Quest Zone
- player:Teleport(571, 4572.972656, 6047.729492, 79.680885, 3.094661) -- Spell Farm Zone
- player:GossipComplete()
- end
- if (intid == 50) then -- Dire Maul Arena
- player:Teleport(1, -3760.685547, 1207.847778, 127.435806, 4.695889)
- end
- if (intid == 51) then -- Gurubashi Arena
- player:Teleport(0, -13249.189453, 185.469620, 31.646173, 1.118780)
- end
- if (intid == 52) then -- VIP Tools menu
- player:GossipClearMenu()
- player:GossipMenuAddItem(2, "|TInterface/ICONS/achievement_pvp_a_14:30:30|tVIP Mall", 0, 20)
- player:GossipMenuAddItem(3, "|TInterface/ICONS/achievement_pvp_g_01:30:30|tVIP Buff", 0, 21)
- player:GossipMenuAddItem(1, "|TInterface/ICONS/inv_misc_coin_02:30:30|tBank", 0, 22)
- player:GossipMenuAddItem(5, "|TInterface/ICONS/factionchange:30:30|tChange Faction", 0, 23)
- player:GossipMenuAddItem(5, "|TInterface/ICONS/racechange:30:30|tChange Race", 0, 24)
- player:GossipMenuAddItem(5, "|TInterface/ICONS/vas_appearancechange:30:30|tChange Name", 0, 25)
- player:GossipMenuAddItem(5, "Back..", 0, 0)
- player:GossipSendMenu(4, item)
- end
- end
- RegisterItemGossipEvent(ITEM_ID, 1, On_Gossip)
- RegisterItemGossipEvent(ITEM_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement