diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-06 03:22:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-06 03:22:50 +0300 |
commit | 43e788045d34933ad520e4c9687e9e4b16523087 (patch) | |
tree | 919bf799d2d088da46c9e65f175f3d38d25cd0b1 /src | |
parent | a3e8a5dd2406247196d796de495056b451c0d73c (diff) | |
download | evol-hercules-43e788045d34933ad520e4c9687e9e4b16523087.tar.gz evol-hercules-43e788045d34933ad520e4c9687e9e4b16523087.tar.bz2 evol-hercules-43e788045d34933ad520e4c9687e9e4b16523087.tar.xz evol-hercules-43e788045d34933ad520e4c9687e9e4b16523087.zip |
Add support for show accessory slots.
Diffstat (limited to 'src')
-rw-r--r-- | src/echar/char.c | 6 | ||||
-rw-r--r-- | src/emap/clif.c | 4 | ||||
-rw-r--r-- | src/emap/pc.c | 6 |
3 files changed, 12 insertions, 4 deletions
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 } |