• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] More gossip text to a Lua scripted NPC

Status
Not open for further replies.

emilavara

New member
Hello EmuDev!

I'm on CMaNGOS TBC and I'm trying to add more gossip text to a Lua scripted NPC.
I've added the text to npc_text, and also assigned the gossip menu ID to the NPC in creature_template.

But all I get is "Greetings <name>!", and then my script.

So what I want is to add more text to the NPC. So more text, not another menu item.

How do I do this? Can I even do it?
 

Rochet2

Moderator / Eluna Dev
I see.
If gossip is coded in lua then gossip menu ID is not used at all.

You need to give the textid to the GossipSendMenu as first argument.
 

emilavara

New member
Can't get it to work damnit... getting this error message: Bad argument #2 to 'GossipSendMenu' <bad argument expected object, got nil>
Code here:
local function LevelMenu(event, plr, unit)
plr:GossipSendMenu(90000, 0)
plr:GossipMenuAddItem(0, "Level me up!", 0, 1)
plr:GossipMenuAddItem(0, "I want to start from scratch!", 0, 2)
plr:GossipSendMenu(1, unit)
end

- - - Updated - - -

Is there any chance anyone could make a quick little example script? :bounce: <3
 
Status
Not open for further replies.
Top