Code:
function On_Gossip(unit,Event,player)
unit:GossipCreateMenu(100, player, 0)
unit:GossipMenuAddItem(2, "Are you guys ready to take them down?", 1, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit,event,player,id,intid,code)
if(intid == 999) then
unit:GossipCreateMenu(200, player, 0)
unit:GossipCreateMenu(2, "Are you guys ready to take them down?", 1, 0)
unit:GossipSendMenu(player)
end
if(intid == 1) then
unit:GossipCreateMenu(200,player,0)
unit:GossipMenuAddItem(1, "We are ready!", 5, 0)
unit:GossipMenuAddItem(1, "No, not yet.", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 5) then
player:Teleport(mapID,x,y,z)
unit:GossipComplete(player)
end
end
RegisterUnitGossipEvent(npcid, 1, "On_Gossip")
RegisterUnitGossipEvent(npcid, 2, "Gossip_Submenus")
SHOULD work. enjoy. if you have any issues just post back