diff --git a/obr/packets/login/OP_ChatMessage.txt b/obr/packets/login/OP_ChatMessage.txt new file mode 100644 index 000000000..9455318f0 --- /dev/null +++ b/obr/packets/login/OP_ChatMessage.txt @@ -0,0 +1,19 @@ +// 0x01 + +struct LoginBase +{ + u32 sequence_id; + u8 compressed; + u8 encrypt_type; + u32 unknown08; +}; + +struct Packet { + LoginBase base; + u8 success; + s32 error_str_id; + char error_msg[]; + char other_msg[]; +}; + +Packet packet @0x00; \ No newline at end of file diff --git a/obr/packets/login/OP_ExpansionList.txt b/obr/packets/login/OP_ExpansionList.txt new file mode 100644 index 000000000..7931c18b4 --- /dev/null +++ b/obr/packets/login/OP_ExpansionList.txt @@ -0,0 +1 @@ +// 0x30 \ No newline at end of file diff --git a/obr/packets/login/OP_Login.txt b/obr/packets/login/OP_Login.txt new file mode 100644 index 000000000..3743394da --- /dev/null +++ b/obr/packets/login/OP_Login.txt @@ -0,0 +1,18 @@ +// 0x02 + +#include + +struct LoginBase +{ + u32 sequence_id; + u8 compressed; + u8 encrypt_type; + u32 unknown08; +}; + +struct Packet { + LoginBase base; + u8 payload[std::mem::size() - $]; +}; + +Packet packet @0x00; diff --git a/obr/packets/login/OP_SessionReady.txt b/obr/packets/login/OP_SessionReady.txt new file mode 100644 index 000000000..3be35d4e2 --- /dev/null +++ b/obr/packets/login/OP_SessionReady.txt @@ -0,0 +1,16 @@ +// 0x01 + +struct LoginBase +{ + u32 sequence_id; + u8 compressed; + u8 encrypt_type; + u32 unknown08; +}; + +struct Packet { + LoginBase base; + u16 unknown0a; +}; + +Packet packet @0x00;