function On_Gossip(pUnit, event, player)
local race=player:GetPlayerRace()
if race==1 or race==3 or race==4 or race==7 or race==11 then
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(2, "Alliance Leveling Areas", 1, 0)
pUnit:GossipMenuAddItem(2, "Custom Instances", 3, 0)
pUnit:GossipSendMenu(player)
else
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(2, "Horde Leveling Areas", 2, 0)
pUnit:GossipMenuAddItem(2, "Custom Instances", 3, 0)
pUnit:GossipSendMenu(player)
end
end
function Gossip_Submenus(pUnit, event, player, id, intid, code)
if(intid == 999) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(2, "Alliance Leveling Areas", 1, 0)
pUnit:GossipMenuAddItem(2, "Horde Leveling Areas", 2, 0)
pUnit:GossipMenuAddItem(2, "Custom Instances", 3, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 1) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "No rests for the Holidays", 300, 0)
pUnit:GossipMenuAddItem(1, "Haunted Forest", 301, 0)
pUnit:GossipMenuAddItem(1, "Finders Forest", 302, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 2) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "No rests for the Holidays", 303, 0)
pUnit:GossipMenuAddItem(1, "Haunted Forest", 304, 0)
pUnit:GossipMenuAddItem(1, "Finders Forest", 305, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 3) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "Utgarde Keep", 306, 0)
pUnit:GossipMenuAddItem(1, "Utgarde Pinnacle", 307, 0)
pUnit:GossipMenuAddItem(1, "The Nexus", 308, 0)
pUnit:GossipMenuAddItem(1, "Azjol-Nerub", 309, 0)
pUnit:GossipMenuAddItem(1, "Ahn'kahet", 310, 0)
pUnit:GossipMenuAddItem(1, "Halls of Lightning", 311, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 300) then --No rests for the Holidays
player:Teleport(0, -4952.040039, 923.046021, 396.43798

pUnit:GossipComplete(player)
end
if(intid == 301) then --Haunted Forest
player:Teleport(0, -7186.313965, -282.150848, 60.214787)
pUnit:GossipComplete(player)
end
if(intid == 302) then --Finders Forest
player:Teleport(0, -7590.881348, 1257.607422, 136.364761)
pUnit:GossipComplete(player)
end
if(intid == 303) then --No rests for the Holidays
player:Teleport(0, -5152.333496, 1163.829590, 385.045410)
pUnit:GossipComplete(player)
end
if(intid == 304) then --Haunted Forest
player:Teleport(0, -7124.536133, -294.570343, 59.73954

pUnit:GossipComplete(player)
end
if(intid == 305) then --Finders Forest
player:Teleport(0, -7617.710449, 1414.320801, 151.082993)
pUnit:GossipComplete(player)
end
if(intid == 306) then --Utgarde Keep
player:Teleport(571, 1203.406982, -4864.382324, 41.248001)
pUnit:GossipComplete(player)
end
if(intid == 307) then --Utgarde Pinnacle
player:Teleport(571, 1269.920654, -4854.597168, 215.763885)
pUnit:GossipComplete(player)
end
if(intid == 30

then --The Nexus
player:Teleport(571, 3856.677490, 6983.687988, 86.094810)
pUnit:GossipComplete(player)
end
if(intid == 309) then --Azjol-Nerub
player:Teleport(571, 3721.598633, 2169.613525, 37.027439)
pUnit:GossipComplete(player)
end
if(intid == 310) then --Ahn'kahet
player:Teleport(571, 3653.818115, 2068.238525, 4.150550)
pUnit:GossipComplete(player)
end
if(intid == 311) then --Halls of Lightning
player:Teleport(571, 9082.833984, -1312.702759, 1058.398315)
pUnit:GossipComplete(player)
end
RegisterUnitGossipEvent(100255, 1, "On_Gossip")
RegisterUnitGossipEvent(100255, 2, "Gossip_Submenus")