[DiscordArchive] Can anyone help me understand why my gossip with lua isnt working?
[DiscordArchive] Can anyone help me understand why my gossip with lua isnt working?
Archived author: Sopze • Posted: 2022-02-17T09:52:28.017000+00:00
Original source
Can anyone help me understand why my gossip with lua isnt working?
Archived author: Sopze • Posted: 2022-02-17T09:52:35.288000+00:00
Original source
function TalentNpc_OnGossipHello(event, player, object)
if(player:GetClass() == 1) then
player:GossipClearMenu()
player:GossipMenuAddItem(1, "Arms", 1, 1)
player:GossipMenuAddItem(1, "Fury", 1, 2)
player:GossipMenuAddItem(1, "Protection", 1, 3)
player:GossipSendMenu(1, object, 100091)
end
end
function TalentNpc_OnGossipSelect(event, player, object, sender, intid, code, menu_id) ---if something above gets selected
if(intid == 1) then
player:GossipClearMenu()
player:GossipMenuAddItem(1, "Overpower", 1, 1)
player:GossipSendMenu(2, object, 100091)
end
end
RegisterCreatureGossipEvent(200004, 1, TalentNpc_OnGossipHello)
RegisterCreatureGossipEvent(200004, 2, TalentNpc_OnGossipSelect)
Archived author: Foe • Posted: 2022-02-17T10:05:04.325000+00:00
Original source
You are missing an end for your gossip select function
Archived author: Sopze • Posted: 2022-02-17T10:11:28.033000+00:00
Original source
Well yeah that i fixed^^ But the problem is showing the next gossip
Archived author: Sopze • Posted: 2022-02-17T10:11:51.857000+00:00
Original source
It will only show the one with arms, fury and prot
Archived author: Sopze • Posted: 2022-02-17T10:11:57.885000+00:00
Original source
nothing happens when i click arms
Archived author: Foe • Posted: 2022-02-17T10:56:22.005000+00:00
Original source
Having a single gossip menu item will automatically select that one option, I know there's a work around for it but I can't remember it off the top of my head
Archived author: Nyeriah • Posted: 2022-02-17T10:56:37.794000+00:00
Original source
SetRace() only changes the race variable, so it reads a different one matching the DisplayId(). CFBG actually uses something similiar to SetDisplayId() or the .morph command, yes
Archived author: Foe • Posted: 2022-02-17T10:56:44.554000+00:00
Original source
It's something to do with the menu id iirc
Archived author: Foe • Posted: 2022-02-17T16:03:45.699000+00:00
Original source
It has to do with the gossip icon, change the first variable of add item to 0