local npcId = 10000
function GossipHello(event, plr, unit)
plr:GossipMenuAddItem(0, "I would like to place a bounty", 1, 1, true, "Who would you like to place a bounty on?", 10000) -- icon, text, sender, intid, use code (true/false), prompt text, how much gold (amount)
plr:GossipSendMenu(1, unit)
end
function GossipSelect(event, player, creature, sender, intid, code)
if (intid == 1) -- Deal with code / bounty stuff
local victim = GetPlayerByName(code)
if (victim ~= nil)
-- Continue
end
end
end
RegisterCreatureGossipEvent(npcId, 1, GossipHello)
RegisterCreatureGossipEvent(npcId, 2, GossipSelect)