From 43e788045d34933ad520e4c9687e9e4b16523087 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 Mar 2016 03:22:50 +0300 Subject: Add support for show accessory slots. --- src/echar/char.c | 6 +++--- src/emap/clif.c | 4 ++++ src/emap/pc.c | 6 +++++- 3 files changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/echar/char.c b/src/echar/char.c index 9294a2c..6d43f22 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -270,7 +270,7 @@ void send_additional_slots(int fd, struct char_session_data* sd) type = 12; break; case EQP_ACC_L: - type = 0; + type = 19; break; case EQP_ARMOR: type = 17; @@ -281,8 +281,8 @@ void send_additional_slots(int fd, struct char_session_data* sd) case EQP_SHOES: type = 9; break; - case EQP_ACC_R: // not implimented - type = 0; + case EQP_ACC_R: + type = 18; break; case EQP_HEAD_TOP: type = 4; diff --git a/src/emap/clif.c b/src/emap/clif.c index 11b542f..ee5e838 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -238,6 +238,8 @@ static void eclif_send_additional_slots(TBL_PC* sd, TBL_PC* sd2) equipPos(EQI_COSTUME_LOW, 15); equipPos(EQI_COSTUME_GARMENT, 16); equipPos(EQI_ARMOR, 17); + equipPos(EQI_ACC_R, 18); + equipPos(EQI_ACC_L, 19); //skipping SHADOW slots } @@ -276,6 +278,8 @@ static void eclif_send_additional_slots2(struct block_list *bl) equipPos2(EQI_COSTUME_LOW, 15); equipPos2(EQI_COSTUME_GARMENT, 16); equipPos2(EQI_ARMOR, 17); + equipPos2(EQI_ACC_R, 18); + equipPos2(EQI_ACC_L, 19); //skipping SHADOW slots } diff --git a/src/emap/pc.c b/src/emap/pc.c index ae66edd..95230d5 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -143,8 +143,10 @@ void epc_equipitem_pos(TBL_PC *sd, struct item_data *id, int *nPtr, int *posPtr) equipPos2(EQP_COSTUME_HEAD_LOW, 15); equipPos2(EQP_COSTUME_GARMENT, 16); equipPos2(EQP_ARMOR, 17); - //skipping SHADOW slots + equipPos2(EQP_ACC_R, 18); + equipPos2(EQP_ACC_L, 19); + //skipping SHADOW slots } #undef equipPos @@ -199,6 +201,8 @@ void epc_unequipitem_pos(TBL_PC *sd, unequipPos2(EQP_COSTUME_HEAD_LOW, 15); unequipPos2(EQP_COSTUME_GARMENT, 16); unequipPos2(EQP_ARMOR, 17); + unequipPos2(EQP_ACC_R, 18); + unequipPos2(EQP_ACC_L, 19); //skipping SHADOW slots } -- cgit v1.2.3-60-g2f50