Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] How exactly should the text ID be delivered to the gossip? For example if we want to use this, shoul

[DiscordArchive] How exactly should the text ID be delivered to the gossip? For example if we want to use this, shoul

[DiscordArchive] How exactly should the text ID be delivered to the gossip? For example if we want to use this, shoul

rektbyfaith
Administrator
0
09-19-2025, 09:50 AM
#1
Archived author: Vel • Posted: 2025-09-19T09:50:30.016000+00:00
Original source

How exactly should the text ID be delivered to the gossip? For example if we want to use this, should we send the broadcast text ID directly or we have to associate it in `npc_text` table?
[Image: image.png?ex=690c6f65&is=690b1de5&hm=9a1...b2f7f7f45&]
rektbyfaith
09-19-2025, 09:50 AM #1

Archived author: Vel • Posted: 2025-09-19T09:50:30.016000+00:00
Original source

How exactly should the text ID be delivered to the gossip? For example if we want to use this, should we send the broadcast text ID directly or we have to associate it in `npc_text` table?
[Image: image.png?ex=690c6f65&is=690b1de5&hm=9a1...b2f7f7f45&]

rektbyfaith
Administrator
0
09-19-2025, 10:01 AM
#2
Archived author: ModoX • Posted: 2025-09-19T10:01:15.677000+00:00
Original source

Gossip menu is linked to npc_text
rektbyfaith
09-19-2025, 10:01 AM #2

Archived author: ModoX • Posted: 2025-09-19T10:01:15.677000+00:00
Original source

Gossip menu is linked to npc_text

rektbyfaith
Administrator
0
09-19-2025, 10:05 AM
#3
Archived author: Vel • Posted: 2025-09-19T10:05:07.698000+00:00
Original source

Okaaay I see...
rektbyfaith
09-19-2025, 10:05 AM #3

Archived author: Vel • Posted: 2025-09-19T10:05:07.698000+00:00
Original source

Okaaay I see...

rektbyfaith
Administrator
0
09-19-2025, 10:05 AM
#4
Archived author: Vel • Posted: 2025-09-19T10:05:29.217000+00:00
Original source

```c++
struct BroadcastTextMeta
{
static constexpr DB2MetaField Fields[12] =
{
{ .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false },
{ .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_INT, .ArraySize = 2, .IsSigned = false },
{ .Type = FT_SHORT, .ArraySize = 3, .IsSigned = false },
{ .Type = FT_SHORT, .ArraySize = 3, .IsSigned = false },
};

static constexpr DB2Meta Instance =
{
.FileDataId = 841604,
.IndexField = 2,
.ParentIndexField = -1,
.FieldCount = 12,
.FileFieldCount = 12,
.LayoutHash = 0x2EC89623,
.Fields = Fields
};
};
```
How comes fields for this packet has 17 values but the BroadcastText table has only 16 when we don't consider the ID ?
rektbyfaith
09-19-2025, 10:05 AM #4

Archived author: Vel • Posted: 2025-09-19T10:05:29.217000+00:00
Original source

```c++
struct BroadcastTextMeta
{
static constexpr DB2MetaField Fields[12] =
{
{ .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_STRING, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false },
{ .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = false },
{ .Type = FT_INT, .ArraySize = 1, .IsSigned = true },
{ .Type = FT_INT, .ArraySize = 2, .IsSigned = false },
{ .Type = FT_SHORT, .ArraySize = 3, .IsSigned = false },
{ .Type = FT_SHORT, .ArraySize = 3, .IsSigned = false },
};

static constexpr DB2Meta Instance =
{
.FileDataId = 841604,
.IndexField = 2,
.ParentIndexField = -1,
.FieldCount = 12,
.FileFieldCount = 12,
.LayoutHash = 0x2EC89623,
.Fields = Fields
};
};
```
How comes fields for this packet has 17 values but the BroadcastText table has only 16 when we don't consider the ID ?

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