Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] hi, I'm trying to create a npc with a gossip menu. I set the force gossip type_flag and gossip npcfl

[DiscordArchive] hi, I'm trying to create a npc with a gossip menu. I set the force gossip type_flag and gossip npcfl

[DiscordArchive] hi, I'm trying to create a npc with a gossip menu. I set the force gossip type_flag and gossip npcfl

rektbyfaith
Administrator
0
07-22-2023, 08:25 PM
#1
Archived author: kvaris • Posted: 2023-07-22T20:25:55.660000+00:00
Original source

hi, I'm trying to create a npc with a gossip menu. I set the force gossip type_flag and gossip npcflag. the function is essentialy this:

```
player:GossipMenuAddItem(0, "Just Testing", 0, 0)
player:GossipSendMenu(1, unit)
```

the function gets called and I don't have any errors but the menu doesn't show up. what did I miss?
rektbyfaith
07-22-2023, 08:25 PM #1

Archived author: kvaris • Posted: 2023-07-22T20:25:55.660000+00:00
Original source

hi, I'm trying to create a npc with a gossip menu. I set the force gossip type_flag and gossip npcflag. the function is essentialy this:

```
player:GossipMenuAddItem(0, "Just Testing", 0, 0)
player:GossipSendMenu(1, unit)
```

the function gets called and I don't have any errors but the menu doesn't show up. what did I miss?

rektbyfaith
Administrator
0
07-22-2023, 08:27 PM
#2
Archived author: Foe • Posted: 2023-07-22T20:27:36.545000+00:00
Original source

Some gossip icons automatically fire if you only have a single gossip entry
rektbyfaith
07-22-2023, 08:27 PM #2

Archived author: Foe • Posted: 2023-07-22T20:27:36.545000+00:00
Original source

Some gossip icons automatically fire if you only have a single gossip entry

rektbyfaith
Administrator
0
07-22-2023, 08:37 PM
#3
Archived author: kvaris • Posted: 2023-07-22T20:37:11.884000+00:00
Original source

Multiple options solved it. thank you.
rektbyfaith
07-22-2023, 08:37 PM #3

Archived author: kvaris • Posted: 2023-07-22T20:37:11.884000+00:00
Original source

Multiple options solved it. thank you.

rektbyfaith
Administrator
0
07-22-2023, 08:38 PM
#4
Archived author: Foe • Posted: 2023-07-22T20:38:04.490000+00:00
Original source

you can also change the first 0 to as an example 1 and it wouldn't automatically trigger
rektbyfaith
07-22-2023, 08:38 PM #4

Archived author: Foe • Posted: 2023-07-22T20:38:04.490000+00:00
Original source

you can also change the first 0 to as an example 1 and it wouldn't automatically trigger

rektbyfaith
Administrator
0
07-22-2023, 08:40 PM
#5
Archived author: kvaris • Posted: 2023-07-22T20:40:17.410000+00:00
Original source

I had a 1 before. It was from a module on github. but it didn't work so I changed it to 0. I just startet with gossip, now that it works I can dive deeper
rektbyfaith
07-22-2023, 08:40 PM #5

Archived author: kvaris • Posted: 2023-07-22T20:40:17.410000+00:00
Original source

I had a 1 before. It was from a module on github. but it didn't work so I changed it to 0. I just startet with gossip, now that it works I can dive deeper

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)