summaryrefslogtreecommitdiff
path: root/tools/protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/protocol.py')
-rwxr-xr-xtools/protocol.py38
1 files changed, 34 insertions, 4 deletions
diff --git a/tools/protocol.py b/tools/protocol.py
index 83c007b..688821f 100755
--- a/tools/protocol.py
+++ b/tools/protocol.py
@@ -2297,10 +2297,8 @@ def build_context():
at(30, u16, 'unused head mid or maybe part of guild id'),
at(32, u16, 'unused hair color'),
at(34, u16, 'unused clothes color'),
- at(36, u16, 'unused 1'),
- at(38, u16, 'unused 2'),
- at(40, u16, 'unused 3'),
- at(42, u16, 'unused 4'),
+ at(36, i32, 'max_hp'),
+ at(40, i32, 'hp'),
at(44, u16, 'unused 5'),
at(46, u16, 'unused zero 1'),
at(48, u8, 'unused zero 2'),
@@ -4617,7 +4615,39 @@ def build_context():
)
# 0x0213 define='CMSG_SET_STATUS',
# 0x0214 define='SMSG_QUEST_SET_VAR',
+ map_user.s(0x0214, 'send quest',
+ define='SMSG_QUEST_SET_VAR',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, u16, 'variable'),
+ at(4, u32, 'value'),
+ ],
+ fixed_size=8,
+ pre=[NOTHING],
+ post=[PRETTY],
+ desc='''
+ Set Quest Log Variable to Value.
+ ''',
+ )
# 0x0215 define='SMSG_QUEST_PLAYER_VARS',
+ map_user.s(0x0215, 'send all quest',
+ define='SMSG_QUEST_PLAYER_VARS',
+ head=[
+ at(0, u16, 'packet id'),
+ at(2, u16, 'packet length'),
+ ],
+ head_size=4,
+ repeat=[
+ at(0, u16, 'variable'),
+ at(2, u32, 'value'),
+ ],
+ repeat_size=6,
+ pre=[NOTHING],
+ post=[PRETTY],
+ desc='''
+ Set All Quest Log Variable to Value.
+ ''',
+ )
# 0x0220 define='SMSG_BEING_NAME_RESPONSE2',
# 0x0221 define='SMSG_CHAR_CREATE_SUCCEEDED2',
# 0x0222 define='CMSG_CHAT_MESSAGE2',