diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-24 05:57:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-12 21:18:06 +0300 |
commit | c76f8ded8743966abe10a15a3a03604d76d2d5df (patch) | |
tree | ef5f4b6557c4913cfa8a03de1c1ce526185c955e /src/map/clif.c | |
parent | 1f7f90156632811bcf7f0102325ba504428bc44a (diff) | |
download | hercules-c76f8ded8743966abe10a15a3a03604d76d2d5df.tar.gz hercules-c76f8ded8743966abe10a15a3a03604d76d2d5df.tar.bz2 hercules-c76f8ded8743966abe10a15a3a03604d76d2d5df.tar.xz hercules-c76f8ded8743966abe10a15a3a03604d76d2d5df.zip |
Add packet ZC_ENCHANT_EQUIPMENT
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 19f7a082a..00d3d8908 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -21991,6 +21991,21 @@ static void clif_item_preview(struct map_session_data *sd, int n) #endif } +// insert cardId into equipped item in pos equipment slot into slot cardSlot. +static void clif_enchant_equipment(struct map_session_data *sd, enum equip_pos pos, int cardSlot, int cardId) +{ +#if PACKETVER_MAIN_NUM >= 20160831 || PACKETVER_RE_NUM >= 20151118 || defined(PACKETVER_ZERO) + nullpo_retv(sd); + Assert_retv(cardSlot >= 0 && cardSlot <= 3); + struct PACKET_ZC_ENCHANT_EQUIPMENT p; + p.packetType = HEADER_ZC_ENCHANT_EQUIPMENT; + p.wearState = pos; + p.cardSlot = cardSlot; + p.itemId = cardId; + clif->send(&p, sizeof(p), &sd->bl, SELF); +#endif +} + /*========================================== * Main client packet processing function *------------------------------------------*/ @@ -23157,6 +23172,7 @@ void clif_defaults(void) clif->camera_showWindow = clif_camera_showWindow; clif->camera_change = clif_camera_change; clif->item_preview = clif_item_preview; + clif->enchant_equipment = clif_enchant_equipment; // -- Pet Evolution clif->pPetEvolution = clif_parse_pet_evolution; |