summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-06-19 21:54:16 -0500
committerWushin <pasekei@gmail.com>2015-06-19 21:54:16 -0500
commitf008d4510f391aa802c31bc06b7cac2628a8b3fb (patch)
treeb8f43ed53a221fdc36355849613c57ff26777f6c /tools
parent8b4faba9b55ea4a0f3c8f6e5cbcd5fcff3509247 (diff)
parent2d8dd9049a22034d6727f082d428f8c10c8c8606 (diff)
downloadtmwa-f008d4510f391aa802c31bc06b7cac2628a8b3fb.tar.gz
tmwa-f008d4510f391aa802c31bc06b7cac2628a8b3fb.tar.bz2
tmwa-f008d4510f391aa802c31bc06b7cac2628a8b3fb.tar.xz
tmwa-f008d4510f391aa802c31bc06b7cac2628a8b3fb.zip
Merge pull request #103 from mekolat/pvp
Pvp enhancements
Diffstat (limited to 'tools')
-rwxr-xr-xtools/protocol.py30
1 files changed, 28 insertions, 2 deletions
diff --git a/tools/protocol.py b/tools/protocol.py
index eae8bb2..f6612f8 100755
--- a/tools/protocol.py
+++ b/tools/protocol.py
@@ -4278,8 +4278,34 @@ def build_context():
Being adds/removes a persistent status effect.
''',
)
- # 0x0199 define='SMSG_PVP_MAP_MODE',
- # 0x019a define='SMSG_PVP_SET',
+ map_user.s(0x0199, 'map pvp status',
+ define='SMSG_PVP_MAP_MODE',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, u16, 'status'),
+ ],
+ fixed_size=4,
+ pre=[NOTHING],
+ post=[PRETTY],
+ desc='''
+ Send the map pvp status
+ ''',
+ )
+ map_user.s(0x019a, 'being pvp status',
+ define='SMSG_PVP_SET',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, block_id, 'block id'),
+ at(6, u32, 'rank'),
+ at(10, u32, 'channel'),
+ ],
+ fixed_size=14,
+ pre=[NOTHING],
+ post=[PRETTY],
+ desc='''
+ Send the pvp status
+ ''',
+ )
map_user.s(0x019b, 'being effect',
define='SMSG_BEING_SELFEFFECT',
fixed=[