diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-19 03:38:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-28 04:40:43 +0300 |
commit | a7285e774dac19e47c9e9adca3cc97212ed30c59 (patch) | |
tree | f82939e71892fbff768d90eed8444618df111e0a /src/map/clif.c | |
parent | 2b6371dcbf04d6351fcc1141b1416131c6e453be (diff) | |
download | hercules-a7285e774dac19e47c9e9adca3cc97212ed30c59.tar.gz hercules-a7285e774dac19e47c9e9adca3cc97212ed30c59.tar.bz2 hercules-a7285e774dac19e47c9e9adca3cc97212ed30c59.tar.xz hercules-a7285e774dac19e47c9e9adca3cc97212ed30c59.zip |
Add over weight packet.
Thanks @functor-x
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 80cd44aaf..e01bef5c9 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -21562,6 +21562,19 @@ static void clif_style_change_response(struct map_session_data *sd, enum stylist #endif } +static void clif_overweight_percent(struct map_session_data *sd) +{ +#if PACKETVER_MAIN_NUM >= 20171108 || PACKETVER_RE_NUM >= 20171025 || PACKETVER_ZERO_NUM >= 20171019 + struct PACKET_ZC_OVERWEIGHT_PERCENT p; + + nullpo_retv(sd); + + p.packetType = 0xade; + p.percent = battle_config.natural_heal_weight_rate; + clif->send(&p, sizeof(p), &sd->bl, SELF); +#endif +} + /*========================================== * Main client packet processing function *------------------------------------------*/ @@ -22599,6 +22612,7 @@ void clif_defaults(void) clif->pSkillSelectMenu = clif_parse_SkillSelectMenu; clif->pMoveItem = clif_parse_MoveItem; clif->p_cz_blocking_play_cancel = clif_parse_cz_blocking_play_cancel; + clif->overweight_percent = clif_overweight_percent; /* dull */ clif->pDull = clif_parse_dull; /* BGQueue */ |