summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-04-29 22:40:55 -0500
committerWushin <pasekei@gmail.com>2015-04-29 22:40:55 -0500
commitc7f0a0dbb9fe0cb42b0516ae1d4d60f72bd4ebb5 (patch)
tree804da9630fafbd0a0321fd6ea586a576ce07c431 /tools
parenta75608ef2f62a07879e7ef6d73c0ebe5b23908b2 (diff)
parent950bc8a1a239829864600b82e40d801514fca709 (diff)
downloadtmwa-c7f0a0dbb9fe0cb42b0516ae1d4d60f72bd4ebb5.tar.gz
tmwa-c7f0a0dbb9fe0cb42b0516ae1d4d60f72bd4ebb5.tar.bz2
tmwa-c7f0a0dbb9fe0cb42b0516ae1d4d60f72bd4ebb5.tar.xz
tmwa-c7f0a0dbb9fe0cb42b0516ae1d4d60f72bd4ebb5.zip
Merge pull request #65 from wushin/quest-log
Quest log
Diffstat (limited to 'tools')
-rwxr-xr-xtools/protocol.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/protocol.py b/tools/protocol.py
index 5d4dc37..db14f6d 100755
--- a/tools/protocol.py
+++ b/tools/protocol.py
@@ -4617,7 +4617,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',