summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2022-10-23 15:45:32 +0000
committerJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-23 15:45:32 +0000
commit5cdf930c6596b778db40138726163b9dfd68ae4f (patch)
tree14495e785cfdcb3d8678a6edeeab9438a5f3af2e /tools
parent45b741f89800d7aad76ed0831416a8e7571886d1 (diff)
downloadtmwa-5cdf930c6596b778db40138726163b9dfd68ae4f.tar.gz
tmwa-5cdf930c6596b778db40138726163b9dfd68ae4f.tar.bz2
tmwa-5cdf930c6596b778db40138726163b9dfd68ae4f.tar.xz
tmwa-5cdf930c6596b778db40138726163b9dfd68ae4f.zip
Added get all reg2, get single reg2, set/add reg2 and del reg2 to tmwa-admin. Fixed communication from char server to login server. Added translations and comments. Minor QoL.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/protocol.py102
1 files changed, 101 insertions, 1 deletions
diff --git a/tools/protocol.py b/tools/protocol.py
index df6e2fb..7419639 100755
--- a/tools/protocol.py
+++ b/tools/protocol.py
@@ -6837,7 +6837,107 @@ def build_context():
Reload GM file request.
''',
)
-
+ login_admin.r(0x7956, 'get all account reg2',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, account_id, 'account id'),
+ ],
+ fixed_size=6,
+ pre=[ADMIN],
+ post=[0x7957],
+ desc='''
+ Request all login-stored ##registers of an account.
+ ''',
+ )
+ login_admin.s(0x7957, 'get all account reg2 result',
+ head=[
+ at(0, u16, 'packet id'),
+ at(2, u16, 'packet length'),
+ at(4, account_id, 'account id'),
+ ],
+ head_size=8,
+ repeat=[
+ at(0, var_name, 'name'),
+ at(32, u32, 'value'),
+ ],
+ repeat_size=36,
+ pre=[0x7956],
+ post=[IDLE],
+ desc='''
+ Recive all login-stored ##registers of an account.
+ ''',
+ )
+ login_admin.r(0x7958, 'get account reg2',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, account_id, 'account id'),
+ at(6, var_name, 'name'),
+ ],
+ fixed_size=38,
+ pre=[ADMIN],
+ post=[0x7959],
+ desc='''
+ Request a login-stored ##register of an account.
+ ''',
+ )
+ login_admin.s(0x7959, 'get account reg2 result',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, account_id, 'account id'),
+ at(6, var_name, 'name'),
+ at(38, u32, 'value'),
+ ],
+ fixed_size=42,
+ pre=[0x7958],
+ post=[IDLE],
+ desc='''
+ Recive a login-stored ##register of an account.
+ ''',
+ )
+ login_admin.r(0x795a, 'set account reg2',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, account_id, 'account id'),
+ at(6, var_name, 'name'),
+ at(38, u32, 'value'),
+ ],
+ fixed_size=42,
+ pre=[ADMIN],
+ post=[0x795b],
+ desc='''
+ Modify a login-stored ##register of an account.
+ ''',
+ )
+ login_admin.s(0x795b, 'set/del account reg2 result',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, account_id, 'account id'),
+ at(6, u8, 'operation'),
+ at(7, u8, 'result'),
+ ],
+ fixed_size=8,
+ pre=[0x795a, 0x795c],
+ post=[IDLE],
+ desc='''
+ Modify/Delete login-stored ##register of an account result.
+ operation: 0=set 1=del
+ result: 0=success 1=(set) new var created/(del) err var to delete not found 2=(set) err max vars reached
+ ''',
+ )
+ login_admin.r(0x795c, 'del account reg2',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, account_id, 'account id'),
+ at(6, var_name, 'name'),
+ ],
+ fixed_size=38,
+ pre=[ADMIN],
+ post=[0x795b],
+ desc='''
+ delete a login-stored ##register of an account.
+ ''',
+ )
+
# TOC_NEW
## new-style packets
# notify packets, standalone, can occur at any time; always 'payload'