Code:
function On_gossip(unit, event, player)
Unit:GossipCreateMenu(50, player, 0)
unit:GossipMenuAddItem(0, "Fly", 3, 0)
unit:GossipMenuAddItem(0, "Land", 4, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 3) then
Player:SetFlying()
end
if(intid == 4) then
Player:Land()
end
end
RegisterUnitGossipEvent(75331, 1, "On_Gossip")
RegisterUnitGossipEvent(75331, 2, "Gossip_Submenus")
just looked over it quick corrected a few errors.. Try it i guess