View Full Version : Gossip Menu Textbox
10-03-2013, 01:46 PM
Hey is it possible to make a textbox in eluna like on this SS:
10-03-2013, 02:44 PM
No, not likely . Though you might be able to in c++ of you make use of the ui window showed by that packet.
Should check how that ui is sent to the player and if our is modifiable.
you could also just use the code box. See the parameters of gossip add item function in lua
10-03-2013, 03:09 PM
player:GossipMenuAddItem(icon, msg, sender, intid[, code, popup, money]) this you mean but how do i use the popup part i dont really understood it
so if you see i want to make a kind of bounty system and a player write something in a textbox then it gets added to DB
all i dont know is how to get that textbox and save what the player write into the DB
10-03-2013, 04:49 PM
I wrote a small example. I didn't test it, just giving you a general idea on how to handle things.
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)
function GossipSelect(event, player, creature, sender, intid, code)
if (intid == 1) -- Deal with code / bounty stuff
local victim = GetPlayerByName(code)
if (victim ~= nil)
RegisterCreatureGossipEvent(npcId, 1, GossipHello)
RegisterCreatureGossipEvent(npcId, 2, GossipSelect)
10-03-2013, 05:03 PM
Thanks i think i understand now :)
10-03-2013, 06:30 PM
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.