Issue entering zone is they changed op_enterworld a bit; right now ignore the go home and tutorial features for now

This commit is contained in:
KimLS 2024-11-17 22:26:16 -08:00
parent b167f05006
commit 3a7afb48cb
3 changed files with 19 additions and 0 deletions

View File

@ -2351,6 +2351,18 @@ namespace Larion
// DECODE methods
DECODE(OP_EnterWorld)
{
DECODE_LENGTH_EXACT(structs::EnterWorld_Struct);
SETUP_DIRECT_DECODE(EnterWorld_Struct, structs::EnterWorld_Struct);
memcpy(emu->name, eq->name, sizeof(emu->name));
emu->return_home = 0;
emu->tutorial = 0;
FINISH_DIRECT_DECODE();
}
DECODE(OP_ZoneEntry)
{
DECODE_LENGTH_EXACT(structs::ClientZoneEntry_Struct);

View File

@ -18,6 +18,7 @@ E(OP_GroundSpawn)
E(OP_SendZonepoints)
//list of packets we need to decode on the way in:
D(OP_EnterWorld)
D(OP_ZoneEntry)
#undef E

View File

@ -315,6 +315,12 @@ namespace Larion {
/*04*/ struct ZonePoint_Entry zpe[0]; // Always add one extra to the end after all zonepoints
};
struct EnterWorld_Struct {
/*000*/ char name[64];
/*064*/ int32 unknown1;
/*068*/ int32 unknown2; //larion handles these differently so for now im just going to ignore them till i figure it out
};
#pragma pack()
}; //end namespace structs