From c58cbd9adea1c87da56d36eea222aa8932dc3835 Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 4 Mar 2018 16:56:27 -0500 Subject: send base level where appropriate --- src/map/clif.cpp | 5 ++++- tools/protocol.py | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 9f837db..4aad3e4 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -680,6 +680,7 @@ void clif_set0078_main_1d8(dumb_ptr sd, Buffer& buf) fixed_1d8.pos.dir = sd->dir; fixed_1d8.gm_bits = pc_isGM(sd).get_public_word(); fixed_1d8.dead_sit = sd->state.dead_sit; + fixed_1d8.base_level = sd->status.base_level; fixed_1d8.unused = 0; buf = create_fpacket<0x01d8, 54>(fixed_1d8); @@ -733,7 +734,8 @@ void clif_set0078_alt_1d9(dumb_ptr sd, Buffer& buf) fixed_1d8.pos.y = sd->bl_y; fixed_1d8.pos.dir = sd->dir; fixed_1d8.gm_bits = pc_isGM(sd).get_public_word(); - fixed_1d8.unused = 0; + fixed_1d8.dead_sit = sd->state.dead_sit; + fixed_1d8.base_level = sd->status.base_level; buf = create_fpacket<0x01d9, 53>(fixed_1d8); } @@ -790,6 +792,7 @@ void clif_set007b(dumb_ptr sd, Buffer& buf) fixed_1da.pos2.y1 = sd->to_y; fixed_1da.gm_bits = pc_isGM(sd).get_public_word(); fixed_1da.five = 5; + fixed_1da.base_level = sd->status.base_level; fixed_1da.unused = 0; buf = create_fpacket<0x01da, 60>(fixed_1da); diff --git a/tools/protocol.py b/tools/protocol.py index 0c64e6f..1001158 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -4447,7 +4447,8 @@ def build_context(): at(46, pos1, 'pos'), at(49, u16, 'gm bits'), at(51, u8, 'dead sit'), - at(52, u16, 'unused'), + at(52, u8, 'base level'), + at(53, u8, 'unused'), ], fixed_size=54, pre=[FINISH, GM, MAGIC, SCRIPT, TIMER, 0x007d, 0x0085, 0x0089, 0x008c, 0x009f, 0x00a2, 0x00a7, 0x00a9, 0x00ab, 0x00b2, 0x00b8, 0x00b9, 0x00bb, 0x00c8, 0x00c9, 0x00e4, 0x00e6, 0x00e8, 0x00eb, 0x00ed, 0x00ef, 0x00f3, 0x00f5, 0x00f7, 0x0112, 0x0143, 0x0146, 0x01d5, 0x2afd, 0x2b0d], @@ -4487,7 +4488,8 @@ def build_context(): at(45, sex, 'sex'), at(46, pos1, 'pos'), at(49, u16, 'gm bits'), - at(51, u16, 'unused'), + at(51, u8, 'dead sit'), + at(52, u8, 'base level'), ], fixed_size=53, pre=[0x007d], @@ -4529,7 +4531,8 @@ def build_context(): at(50, pos2, 'pos2'), at(55, u16, 'gm bits'), at(57, u8, 'five'), - at(58, u16, 'unused'), + at(58, u8, 'base level'), + at(59, u8, 'unused'), ], fixed_size=60, pre=[FINISH, GM, MAGIC, SCRIPT, TIMER, 0x007d, 0x0085, 0x0089, 0x008c, 0x009f, 0x00a2, 0x00a7, 0x00a9, 0x00ab, 0x00b2, 0x00b8, 0x00b9, 0x00bb, 0x00c8, 0x00c9, 0x00e4, 0x00e6, 0x00e8, 0x00eb, 0x00ed, 0x00ef, 0x00f3, 0x00f5, 0x00f7, 0x0112, 0x0143, 0x0146, 0x01d5, 0x2afd, 0x2b0d], -- cgit v1.2.3-60-g2f50