diff options
author | gumi <git@gumi.ca> | 2018-12-30 16:06:06 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-12-30 16:32:51 -0500 |
commit | a56b3ea671e9cc74b3f9ea723bc149e83212b998 (patch) | |
tree | a595027339f278c83e4ca8c30454900bdff7f70a /tools | |
parent | a860cff760e39dc63de529991131fe295e03f543 (diff) | |
download | tmwa-a56b3ea671e9cc74b3f9ea723bc149e83212b998.tar.gz tmwa-a56b3ea671e9cc74b3f9ea723bc149e83212b998.tar.bz2 tmwa-a56b3ea671e9cc74b3f9ea723bc149e83212b998.tar.xz tmwa-a56b3ea671e9cc74b3f9ea723bc149e83212b998.zip |
pre-send the auth details to map servers instead of blindly trusting 0x0072
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/protocol.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/protocol.py b/tools/protocol.py index 2940744..413bb67 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -6231,6 +6231,38 @@ def build_context(): Party leader was changed. ''', ) + char_map.s(0x3829, 'account auth', + fixed=[ + at(0, u16, 'packet id'), + at(2, account_id, 'account id'), + at(6, char_id, 'char id'), + at(10, u32, 'login id1'), + at(14, u32, 'login id2'), + at(18, ip4, 'ip'), + ], + fixed_size=22, + pre=[], + post=[], + desc=''' + send auth data to map server + ''', + ) + char_map.r(0x3830, 'account auth reply', + fixed=[ + at(0, u16, 'packet id'), + at(2, account_id, 'account id'), + at(6, char_id, 'char id'), + at(10, u32, 'login id1'), + at(14, u32, 'login id2'), + at(18, ip4, 'ip'), + ], + fixed_size=22, + pre=[], + post=[], + desc=''' + reply to char server + ''', + ) # TOC_MISC # any client |