Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Config
- local NPC_ID = 60001
- local function ShowMenu(player, unit, 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(5, "Nevermind..", 0, 30)
- player:GossipSendMenu(60001, unit)
- end
- end
- local function On_Gossip(event, player, unit)
- if (player:IsInCombat()) then
- player:SendAreaTriggerMessage("|cffff0000You're in combat!")
- player:GossipComplete()
- return
- end
- ShowMenu(player, unit, 0, 0)
- end
- function On_Select(event, player, unit, sender, intid, code)
- ShowMenu(player, unit, sender, intid)
- -- Teleports
- if (intid == 1) then -- Mall
- player:Teleport(0, -586.450989, -4615.452637, 9.384386, 6.188698)
- end
- -- Custom Zones
- if (intid == 2) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(1, "|TInterface/ICONS/inv_scroll_03: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, unit)
- 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, unit)
- end
- -- Transmog Content
- if (intid == 4) then
- player:Teleport(0, -564.214355, -4626.880859, 13.206554, 4.977942)
- end
- -- World Bosses
- if (intid == 5) then
- player:Teleport(1, 149.444031, 1318.088257, 192.075699, 2.597752)
- end
- -- Duel Zone
- if (intid == 6) then
- player:Teleport(724, 3155.9899, 536.5004, 72.888748, 6.218666)
- end
- -- Nothing atm
- if (intid == 7) then
- player:Teleport(1, -2697.097900, -4671.856934, 10.163723, 3.114920)
- end
- if (intid == 8) then
- 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, unit)
- end
- -- This is where Custom Instances teleports begin
- 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, 1, 1, 1, 1)
- player:GossipComplete()
- end
- if (intid == 11) then -- Razorfen Kraul
- player:Teleport(0, x, y, z, o)
- player:GossipComplete()
- end
- if (intid == 12) then -- Hellfire Ramparts
- player:Teleport(0, x, y, z, o)
- player:GossipComplete()
- end
- if (intid == 13) then -- Blood Furnace
- player:Teleport(0, X, y, z, o)
- player:GossipComplete()
- end
- if (intid == 14) then -- Shadow Labyrinth
- player:Teleport(0, x, y, z, o)
- player:GossipComplete()
- end
- if (intid == 15) then -- Zul Farrak
- player:Teleport(0, x, y, z, o)
- player:GossipComplete()
- end
- if (intid == 16) then -- Utgarde Pinnacle
- player:Teleport(0, x, y, z, o)
- player:GossipComplete()
- end
- if (intid == 40) then -- Custom Spell Farm
- player:Teleport(571, 4572.972656, 6047.729492, 79.680885, 3.094661)
- 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 == 30) then
- player:GossipComplete()
- end
- end
- RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
- RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement