Yes i was making an LUA Tele NPC and i was wondering whats wrong with this:
Code:
unction warp_on_gossip_talk (unit, event, player)
unit:GossipCreateMenu(3543, player)
unit:GossipMenuAddItem(player, 0, "HordeMall", 1, 0)
unit:GossipMenuAddItem(player, 0, "AllyMall", 2, 0)
unit:GossipMenuAddItem(player, 0, "BootyBay", 3, 0)
unit:GossipSendMenu(player)
end
function warp_on_gossip_select(unit, event, player, id, intid, code)
if(intid == 1) then
player:Teleport(1, -5808.933105, -3912.571777, -92.093262)
end
if(intid == 2) then
player:Teleport(1, -5808.933105, -3912.571777, -92.093262)
end
if(intid == 3) then
player:Teleport(0, -14406.599609, 419.352997, 22.388063)
end
intid = 0
end
RegisterGossipEvent(11325 , 1, "warp_on_gossip_talk")
RegisterGossipEvent(11325 , 2, "warp_on_gossip_select")