Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(50, player, 0)
unit:GossipMenuAddItem(2, "Horde Mall", 1, 0)
unit:GossipMenuAddItem(2, "Alliance Mall", 2, 0)
unit:GossipMenuAddItem(9, "Horde Cities", 3, 0)
unit:GossipMenuAddItem(9, "Alliance Cities", 4, 0)
unit:GossipMenuAddItem(9, "Gurubashi Arena", 45, 0)
unit:GossipMenuAddItem(4, "Remove Ressurection Sickness", 900, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 50) then
unit:GossipCreateMenu(50, player, 0)
unit:GossipMenuAddItem(2, "Horde Mall", 1, 0)
unit:GossipMenuAddItem(2, "Alliance Mall", 2, 0)
unit:GossipMenuAddItem(9, "Horde Cities", 3, 0)
unit:GossipMenuAddItem(9, "Alliance Cities", 4, 0)
unit:GossipMenuAddItem(9, "Gurubashi Arena", 45, 0)
unit:GossipMenuAddItem(4, "Remove Ressurection Sickness", 900, 0)
unit:GossipSendMenu(player)
end
if(intid == 1) then
unit:GossipCreateMenu(51, player, 0)
unit:GossipMenuAddItem(2, I would like to delete this second menu. This is for the Horde Mall., 19, 0)
unit:GossipMenuAddItem(0, "[Back]", 50, 0)
unit:GossipSendMenu(player)
end
if(intid == 2) then
unit:GossipCreateMenu(51, player, 0)
unit:GossipMenuAddItem(2, I would like to delete this second menu. This is for the Alliance Mall.", 20, 0)
unit:GossipMenuAddItem(0, "[Back]", 50, 0)
unit:GossipSendMenu(player)
end
if(intid == 3) then
unit:GossipCreateMenu(51, player, 0)
unit:GossipMenuAddItem(9, "Orgrimmar", 10, 0)
unit:GossipMenuAddItem(9, "Undercity", 11, 0)
unit:GossipMenuAddItem(9, "Thunder Bluff", 12, 0)
unit:GossipMenuAddItem(9, "Silvermoon", 13, 0)
unit:GossipMenuAddItem(0, "[Back]", 50, 0)
unit:GossipSendMenu(player)
end
if(intid == 4) then
unit:GossipCreateMenu(52, player, 0)
unit:GossipMenuAddItem(9, "Stormwind", 14, 0)
unit:GossipMenuAddItem(9, "Ironforge", 15, 0)
unit:GossipMenuAddItem(9, "Darnassus", 16, 0)
unit:GossipMenuAddItem(9, "Exodar", 17, 0)
unit:GossipMenuAddItem(0, "[Back]", 50, 0)
unit:GossipSendMenu(player)
end
if(intid == 8) then
unit:GossipCreateMenu(50, player, 0)
unit:GossipMenuAddItem(1, "The Great Arena", 38, 0)
unit:GossipSendMenu(player)
end
if(intid == 900) then
player:LearnSpell(15007)
player:UnlearnSpell(15007)
end
if(intid == 10) then
player:Teleport(1, 1374.44, -4371.12, 26.03)
end
if(intid == 11) then
player:Teleport(0, 1881, 237.57, 59.04)
end
if(intid == 12) then
player:Teleport(1, -1264.37, 212.11, 59.56)
end
if(intid == 13) then
player:Teleport(530, 9344.70, -7277.72, 14.33)
end
if(intid == 14) then
player:Teleport(0, -9112.70, 398.54, 92.51)
end
if(intid == 15) then
player:Teleport(0, -5039.30, -813.25, 495.13)
end
if(intid == 16) then
player:Teleport(1, 9985.28, 1950.22, 1325.44)
end
if(intid == 17) then
player:Teleport(530, -4072.44, -12017.14, -1.34)
end
if(intid == 19) then
player:Teleport(571, 8194.35, -1963.53, 1738.48)
end
if(intid == 20) then
player:Teleport(571, 7865.57, -1397.5, 1534.06)
end
if(intid == 45) then
player:Teleport(0, -13226.41, 231.95, 33.28)
end
end
RegisterUnitGossipEvent(70500, 1, "On_Gossip")
RegisterUnitGossipEvent(70500, 2, "Gossip_Submenus")
I would like to thank anyone in advance for any assistance in modifying this script.