Forums WoW Modding Support Archives Azerothcore Discord Archives [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?

[DiscordArchive] Can anyone help me understand why my gossip with lua isnt working?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
02-17-2022, 09:52 AM
#1
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?
rektbyfaith
02-17-2022, 09:52 AM #1

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?

rektbyfaith
Administrator
0
02-17-2022, 09:52 AM
#2
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)
rektbyfaith
02-17-2022, 09:52 AM #2

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)

rektbyfaith
Administrator
0
02-17-2022, 10:05 AM
#3
Archived author: Foe • Posted: 2022-02-17T10:05:04.325000+00:00
Original source

You are missing an end for your gossip select function
rektbyfaith
02-17-2022, 10:05 AM #3

Archived author: Foe • Posted: 2022-02-17T10:05:04.325000+00:00
Original source

You are missing an end for your gossip select function

rektbyfaith
Administrator
0
02-17-2022, 10:11 AM
#4
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
rektbyfaith
02-17-2022, 10:11 AM #4

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

rektbyfaith
Administrator
0
02-17-2022, 10:11 AM
#5
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
rektbyfaith
02-17-2022, 10:11 AM #5

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

rektbyfaith
Administrator
0
02-17-2022, 10:11 AM
#6
Archived author: Sopze • Posted: 2022-02-17T10:11:57.885000+00:00
Original source

nothing happens when i click arms
rektbyfaith
02-17-2022, 10:11 AM #6

Archived author: Sopze • Posted: 2022-02-17T10:11:57.885000+00:00
Original source

nothing happens when i click arms

rektbyfaith
Administrator
0
02-17-2022, 10:56 AM
#7
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
rektbyfaith
02-17-2022, 10:56 AM #7

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

rektbyfaith
Administrator
0
02-17-2022, 10:56 AM
#8
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
rektbyfaith
02-17-2022, 10:56 AM #8

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

rektbyfaith
Administrator
0
02-17-2022, 10:56 AM
#9
Archived author: Foe • Posted: 2022-02-17T10:56:44.554000+00:00
Original source

It's something to do with the menu id iirc
rektbyfaith
02-17-2022, 10:56 AM #9

Archived author: Foe • Posted: 2022-02-17T10:56:44.554000+00:00
Original source

It's something to do with the menu id iirc

rektbyfaith
Administrator
0
02-17-2022, 04:03 PM
#10
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
rektbyfaith
02-17-2022, 04:03 PM #10

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

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)