Originally Posted by
spykid19780123
My Suggestion: Remake the NPC again, and set it to a different id. +Rep if this helped =D
Don't ask for rep.
Furthermore, the second RegisterUnitGossipEvent's second argument should be 2 not 1.
Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(50, player, 0)
unit:GossipMenuAddItem(0, "Get me out of here!", 66, 0)
unit:GossipMenuAddItem(0, "Never mind.", 67, 0) -- If we don't do this, it automatically clicks 'Get me out of here!'.
unit:GossipSendMenu(player)
unit:SendChatMessage(12, 0, "Are you lost?")
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 66) then --maze starting place
player:Teleport(169, -3467.147461, -2422.540527, 126.911583)
unit:GossipComplete(player)
elseif intid == 67 then
unit:GossipComplete();
end
end
RegisterUnitGossipEvent(100013, 1, "On_Gossip")
RegisterUnitGossipEvent(100013, 2, "Gossip_Submenus")