mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 15:48:22 +00:00
Fix for door clicking, add a few more opcodes.
This commit is contained in:
@@ -2748,6 +2748,17 @@ namespace Laurion
|
||||
|
||||
DECODE(OP_ConsiderCorpse) { DECODE_FORWARD(OP_Consider); }
|
||||
|
||||
DECODE(OP_ClickDoor)
|
||||
{
|
||||
DECODE_LENGTH_EXACT(structs::ClickDoor_Struct);
|
||||
SETUP_DIRECT_DECODE(ClickDoor_Struct, structs::ClickDoor_Struct);
|
||||
|
||||
IN(doorid);
|
||||
IN(player_id);
|
||||
|
||||
FINISH_DIRECT_DECODE();
|
||||
}
|
||||
|
||||
//Naive version but should work well enough for now
|
||||
int ExtractIDFile(const std::string& input) {
|
||||
std::string number;
|
||||
|
||||
@@ -37,6 +37,7 @@ D(OP_ChannelMessage)
|
||||
D(OP_SetServerFilter)
|
||||
D(OP_Consider)
|
||||
D(OP_ConsiderCorpse)
|
||||
D(OP_ClickDoor)
|
||||
|
||||
#undef E
|
||||
#undef D
|
||||
|
||||
@@ -468,6 +468,16 @@ namespace Laurion {
|
||||
/*18*/
|
||||
};
|
||||
|
||||
struct ClickDoor_Struct {
|
||||
/*00*/ uint16 player_id;
|
||||
/*02*/ uint8 padding1[2];
|
||||
/*04*/ int32 unknown1;
|
||||
/*08*/ int32 unknown2;
|
||||
/*12*/ uint8 doorid;
|
||||
/*13*/ uint8 padding2[3];
|
||||
|
||||
};
|
||||
|
||||
#pragma pack()
|
||||
|
||||
}; //end namespace structs
|
||||
|
||||
Reference in New Issue
Block a user