GM training request decode.

This commit is contained in:
KimLS 2024-12-12 21:03:41 -08:00
parent 6d5424e7b0
commit ef5fdafdbe
3 changed files with 25 additions and 0 deletions

View File

@ -3300,6 +3300,21 @@ namespace Laurion
FINISH_DIRECT_DECODE();
}
DECODE(OP_GMTraining)
{
DECODE_LENGTH_EXACT(structs::GMTrainee_Struct);
SETUP_DIRECT_DECODE(GMTrainee_Struct, structs::GMTrainee_Struct);
OUT(npcid);
OUT(playerid);
for (int i = 0; i < 100; ++i) {
OUT(skills[i]);
}
FINISH_DIRECT_DECODE();
}
//Naive version but should work well enough for now
int ExtractIDFile(const std::string& input) {
std::string number;

View File

@ -56,6 +56,7 @@ D(OP_SpawnAppearance)
D(OP_MoveItem)
D(OP_ShopRequest)
D(OP_CastSpell)
D(OP_GMTraining)
#undef E
#undef D

View File

@ -739,6 +739,15 @@ namespace Laurion {
/*00*/ uint32 hp;
};
struct GMTrainee_Struct
{
/*000*/ uint32 npcid;
/*004*/ uint32 playerid;
/*008*/ uint32 skills[PACKET_SKILL_ARRAY_SIZE];
/*408*/ uint8 unknown408[36];
/*444*/
};
#pragma pack()
}; //end namespace structs