mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 14:21:37 +00:00
Minor group work
This commit is contained in:
@@ -3542,6 +3542,33 @@ namespace Laurion
|
||||
|
||||
DECODE(OP_RemoveBlockedBuffs) { DECODE_FORWARD(OP_BlockedBuffs); }
|
||||
|
||||
DECODE(OP_GroupDisband)
|
||||
{
|
||||
DECODE_LENGTH_EXACT(structs::GroupGeneric_Struct);
|
||||
SETUP_DIRECT_DECODE(GroupGeneric_Struct, structs::GroupGeneric_Struct);
|
||||
|
||||
memcpy(emu->name1, eq->name1, sizeof(emu->name1));
|
||||
memcpy(emu->name2, eq->name2, sizeof(emu->name2));
|
||||
|
||||
FINISH_DIRECT_DECODE();
|
||||
}
|
||||
|
||||
DECODE(OP_GroupInvite)
|
||||
{
|
||||
DECODE_LENGTH_EXACT(structs::GroupGeneric_Struct);
|
||||
SETUP_DIRECT_DECODE(GroupGeneric_Struct, structs::GroupGeneric_Struct);
|
||||
|
||||
memcpy(emu->name1, eq->name1, sizeof(emu->name1));
|
||||
memcpy(emu->name2, eq->name2, sizeof(emu->name2));
|
||||
|
||||
FINISH_DIRECT_DECODE();
|
||||
}
|
||||
|
||||
DECODE(OP_GroupInvite2)
|
||||
{
|
||||
DECODE_FORWARD(OP_GroupInvite);
|
||||
}
|
||||
|
||||
//Naive version but should work well enough for now
|
||||
int ExtractIDFile(const std::string& input) {
|
||||
std::string number;
|
||||
|
||||
@@ -68,6 +68,8 @@ D(OP_CastSpell)
|
||||
D(OP_GMTraining)
|
||||
D(OP_BlockedBuffs)
|
||||
D(OP_RemoveBlockedBuffs)
|
||||
|
||||
D(OP_GroupDisband)
|
||||
D(OP_GroupInvite)
|
||||
D(OP_GroupInvite2)
|
||||
#undef E
|
||||
#undef D
|
||||
|
||||
@@ -861,7 +861,20 @@ namespace Laurion {
|
||||
/*016*/ uint32 silver;
|
||||
/*020*/ uint32 copper;
|
||||
/*024*/
|
||||
}
|
||||
};
|
||||
|
||||
struct GroupGeneric_Struct {
|
||||
/*0000*/ char name1[64];
|
||||
/*0064*/ char name2[64];
|
||||
/*0128*/ uint32 unknown0128;
|
||||
/*0132*/ uint32 unknown0132;
|
||||
/*0136*/ uint32 unknown0136;
|
||||
/*0140*/ uint32 unknown0140;
|
||||
/*0144*/ uint32 unknown0144;
|
||||
/*0148*/ uint32 unknown0148;
|
||||
/*0152*/ uint16 unknown0152;
|
||||
/*0154*/
|
||||
};
|
||||
#pragma pack()
|
||||
|
||||
}; //end namespace structs
|
||||
|
||||
Reference in New Issue
Block a user