Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Did you make a PR already?

[DiscordArchive] Did you make a PR already?

[DiscordArchive] Did you make a PR already?

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
12-13-2022, 09:44 PM
#11
Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:09.757000+00:00
Original source

Well you got the structure wrong
rektbyfaith
12-13-2022, 09:44 PM #11

Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:09.757000+00:00
Original source

Well you got the structure wrong

rektbyfaith
Administrator
0
12-13-2022, 09:44 PM
#12
Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:16.720000+00:00
Original source

+ I am sure Shauren has it updated
rektbyfaith
12-13-2022, 09:44 PM #12

Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:16.720000+00:00
Original source

+ I am sure Shauren has it updated

rektbyfaith
Administrator
0
12-13-2022, 09:44 PM
#13
Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:20.567000+00:00
Original source

ANYHHOW
rektbyfaith
12-13-2022, 09:44 PM #13

Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:20.567000+00:00
Original source

ANYHHOW

rektbyfaith
Administrator
0
12-13-2022, 09:44 PM
#14
Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:34.987000+00:00
Original source

```cs
public static void ReadLearnedSpellInfo(Packet packet, params object[] indexes)
{
packet.ReadInt32<SpellId>("SpellId", indexes);
packet.ReadBit("IsFavorite", indexes);

var hasUnkBit1 = packet.ReadBit("HasUnk1", indexes);
var hasSuperceedsSpellID = packet.ReadBit("HasSuperceedsSpellID", indexes);
var hasTraitDefinitionID = packet.ReadBit("HasTraitDefinitionID", indexes);
packet.ResetBitReader();

if (hasUnkBit1)
packet.ReadInt32("Unk1", indexes);

if (hasSuperceedsSpellID)
packet.ReadInt32<SpellId>("SuperceedsSpellID", indexes);

if (hasTraitDefinitionID)
packet.ReadInt32("TraitDefinitionID", indexes);
}

[Parser(Opcode.SMSG_LEARNED_SPELLS)]
public static void HandleLearnedSpells(Packet packet)
{
var learnedSpellInfoCount = packet.ReadUInt32("LearnedSpellInfoCount");
packet.ReadUInt32("SpecializationID");

packet.ReadBit("SuppressMessaging");
packet.ResetBitReader();

for (var i = 0; i < learnedSpellInfoCount; ++i)
{
ReadLearnedSpellInfo(packet, i, "LearnedSpellInfo");
}
}
```
rektbyfaith
12-13-2022, 09:44 PM #14

Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:34.987000+00:00
Original source

```cs
public static void ReadLearnedSpellInfo(Packet packet, params object[] indexes)
{
packet.ReadInt32<SpellId>("SpellId", indexes);
packet.ReadBit("IsFavorite", indexes);

var hasUnkBit1 = packet.ReadBit("HasUnk1", indexes);
var hasSuperceedsSpellID = packet.ReadBit("HasSuperceedsSpellID", indexes);
var hasTraitDefinitionID = packet.ReadBit("HasTraitDefinitionID", indexes);
packet.ResetBitReader();

if (hasUnkBit1)
packet.ReadInt32("Unk1", indexes);

if (hasSuperceedsSpellID)
packet.ReadInt32<SpellId>("SuperceedsSpellID", indexes);

if (hasTraitDefinitionID)
packet.ReadInt32("TraitDefinitionID", indexes);
}

[Parser(Opcode.SMSG_LEARNED_SPELLS)]
public static void HandleLearnedSpells(Packet packet)
{
var learnedSpellInfoCount = packet.ReadUInt32("LearnedSpellInfoCount");
packet.ReadUInt32("SpecializationID");

packet.ReadBit("SuppressMessaging");
packet.ResetBitReader();

for (var i = 0; i < learnedSpellInfoCount; ++i)
{
ReadLearnedSpellInfo(packet, i, "LearnedSpellInfo");
}
}
```

rektbyfaith
Administrator
0
12-13-2022, 09:44 PM
#15
Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:57.717000+00:00
Original source

That is the structure for it
rektbyfaith
12-13-2022, 09:44 PM #15

Archived author: MaxtorCoder • Posted: 2022-12-13T21:44:57.717000+00:00
Original source

That is the structure for it

rektbyfaith
Administrator
0
12-13-2022, 09:45 PM
#16
Archived author: Tea • Posted: 2022-12-13T21:45:10.651000+00:00
Original source

its correct, HasUnk1 is unused so it gets no name
rektbyfaith
12-13-2022, 09:45 PM #16

Archived author: Tea • Posted: 2022-12-13T21:45:10.651000+00:00
Original source

its correct, HasUnk1 is unused so it gets no name

rektbyfaith
Administrator
0
12-13-2022, 09:45 PM
#17
Archived author: MaxtorCoder • Posted: 2022-12-13T21:45:22.102000+00:00
Original source

IS it?
rektbyfaith
12-13-2022, 09:45 PM #17

Archived author: MaxtorCoder • Posted: 2022-12-13T21:45:22.102000+00:00
Original source

IS it?

rektbyfaith
Administrator
0
12-13-2022, 09:45 PM
#18
Archived author: MaxtorCoder • Posted: 2022-12-13T21:45:28.685000+00:00
Original source

It's still read as if statement
rektbyfaith
12-13-2022, 09:45 PM #18

Archived author: MaxtorCoder • Posted: 2022-12-13T21:45:28.685000+00:00
Original source

It's still read as if statement

rektbyfaith
Administrator
0
12-13-2022, 09:45 PM
#19
Archived author: MaxtorCoder • Posted: 2022-12-13T21:45:31.622000+00:00
Original source

Hence me adding it
rektbyfaith
12-13-2022, 09:45 PM #19

Archived author: MaxtorCoder • Posted: 2022-12-13T21:45:31.622000+00:00
Original source

Hence me adding it

rektbyfaith
Administrator
0
12-13-2022, 09:45 PM
#20
Archived author: Tea • Posted: 2022-12-13T21:45:41.457000+00:00
Original source

oh i mean, unused in client handler
rektbyfaith
12-13-2022, 09:45 PM #20

Archived author: Tea • Posted: 2022-12-13T21:45:41.457000+00:00
Original source

oh i mean, unused in client handler

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