This is the Script im using that was just the error the Server gave me
Code:
function Warp_OnGossip(pUnit, event, player, pMisc)
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(10, "Mall", 1, 0)
---pUnit:GossipMenuAddItem(4, "Remove Res Sickness", 2, 0)
---pUnit:GossipMenuAddItem(2, "Capital City", 3, 0)
pUnit:GossipMenuAddItem(10, "Do i Really have to go farm all those Frost Tokens ??", 4, 0)
pUnit:GossipSendMenu(player)
end
function Warp_Submenu(pUnit, event, player, id, intid, code, pMisc)
if(intid == 0) then
if(player:GetTeam() == 0) then
player:Teleport(269 , -35.670666, 2476.763916, -4.286417)
if(intid == 4) then
pUnit:SendChatMessage(14, 0, "No go Speak to Haris Pilton over there she gives them out for Free!")
end
end
end
end
RegisterUnitGossipEvent(50001, 1, "Warp_OnGossip")
RegisterUnitGossipEvent(50001, 2, "Warp_Submenu")