-- Variables
local NPC_ID = 23375
-- On Triggers
function exampleGossipOnTalk(Unit, Event, player)
Unit:GossipCreateMenu(100, player, 0)
Unit:GossipMenuAddItem(0, "Teleport me to the mall!", 1, 0)
Unit:GossipMenuAddItem(0, "Teleport me to the Arena!", 2, 0)
Unit:GossipMenuAddItem(0, "Teleport me to a custom boss!", 3, 0)
Unit:GossipMenuAddItem(0, "Can you make me level 80?", 8, 0)
Unit:GossipMenuAddItem(0, "Can you give me the starter book?", 9, 0)
Unit:GossipMenuAddItem(0, "Nevermind". 4, 0)
Unit:GossipSendMenu(Player)
end
function exampleGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
if (intid = 1) then
Unit:GossipCreateMenu(100, player, 0)
Unit:GossipMenuAddItem(0, "Horde", 5, 0)
Unit:GossipMenuAddItem(0, "Alliance", 6, 0)
Unit:GossipSendMenu(Player)
end
if (intid = 2) then
player:Teleport(0, -13253.832031, 181.906693, 32.238724)
player:GossipComplete
end
if (intid = 3) then
Uniit:GossipCreateMenu(100, player, 0)
Unit:GossipMenuAddItem(0, "Melcoal", 7, 0)
Unit:GossipSendMenu(Player)
end
if (intid = 4) then
player:GossipComplete
end
if (intid = 5) then
player:Teleport(1, -11887, -4668.984375, 7.273964)
player:GossipComplete
end
if (intid = 6) then
player:Teleport(1, -11833.375977, -4790.217285, 6.032765)
player:GossipComplete
end
if (intid = 7) then
player:Teleport(1, -11543.254883, -4649.109863, 0.530466)
player:GossipComplete
end
if (intid =then
player:SetPlayerLevel(80)
player:GossipComplete
end
if (intid = 9) then
player:AddItem(99999, 1)
player:GossipComplete
end
end
-- RegisterUnitEvents
RegisterUnitGossipEvent(NPC_ID, 1, "exampleGossipOnTalk")
RegisterUnitGossipEvent(NPC_ID, 2, "exampleGossipOnSelect")
_________________________________________________________________
Yet when I click on the npc in-game all he says is Hi, how are you.
Please help.![]()