I want a window to pop up when clicking the "Create a new body" option.
This is what i want:

When i press the option nothing happens and i dont get any errors in world.exe
Code:
BODY = {}
function Menu_OnTrigger(item, event, player)
MailMenu(item, player)
end
function Menu(item, player)
item:GossipCreateMenu(57003, player, 0)
item:GossipMenuAddItem(0, "Create a new body.", 1, 0)
item:GossipSendMenu(player)
end
function Menu_OnSelect(item, event, player, id, intid, Code)
if (intid == 1) then
Body(item, event, player, Code)
end
end
RegisterItemGossipEvent(57100, 1, "Menu_OnTrigger")
RegisterItemGossipEvent(57100, 2, "Menu_OnSelect")
function Body(item, event, player, Code)
BODY[player] = Code
item:GossipCreateMenu(57003, player, 0)
item:GossipMenuAddItem(0, "Save Body.", 1, 0)
item:GossipSendMenu(player)
end