[DiscordArchive] no i mean are they both tables with members?
[DiscordArchive] no i mean are they both tables with members?
Archived author: Anchy • Posted: 2022-08-03T14:25:20.865000+00:00
Original source
no i mean are they both tables with members?
Archived author: Revision • Posted: 2022-08-03T14:25:26.990000+00:00
Original source
Yes
Archived author: Anchy • Posted: 2022-08-03T14:25:42.329000+00:00
Original source
its just the way that they are declared is different, one outside and one inside scope
Archived author: Anchy • Posted: 2022-08-03T14:25:49.148000+00:00
Original source
so i thought maybe there was a difference there
Archived author: Revision • Posted: 2022-08-03T14:26:08.762000+00:00
Original source
It just simplified things for me to create the table before populating it for the config options
Archived author: Anchy • Posted: 2022-08-03T14:26:15.605000+00:00
Original source
oh okay
Archived author: buggedout • Posted: 2022-08-03T14:26:20.515000+00:00
Original source
haha nvm, it didnt work ^^
Archived author: Revision • Posted: 2022-08-03T14:28:22.276000+00:00
Original source
Did you try adding the print?
```
--Selection for NPC gossip
local function OnSelect(event, player, unit, sender, intid, code)
if (intid == 1) then
player:GossipMenuAddItem(0, "Just making sure that you want to turn on hardcore mode?? This will lock the character after death and you will no longer be able to play the character!!!", 0, 2)
player:GossipMenuAddItem(0, "NO TAKE ME BACK!", 0, 3)
player:GossipSendMenu(2, unit)
elseif (intid == 2) then
print('intid 2')
player:AddItem(hardCoreItem)
end
end
```
Notice the line above AddItem.
Archived author: Revision • Posted: 2022-08-03T14:29:33.724000+00:00
Original source
I also didn't include the else because I forgot but all you need is that one print line
Archived author: Foe • Posted: 2022-08-03T14:30:46.770000+00:00
Original source
Wait, what exactly is the issue? You click the first dialogue option, then it closes before you get to the 2nd one? Or do you get to the 2nd dialogue, but it never gives you the item