displayjokes 89 Posted January 9, 2019 Share Posted January 9, 2019 Hi! I'm trying to do something like restricting the bonuses that can go on costumes, for example Something like that but that works, i want to get only: hh, str, dex, int, con (for example) when changing costumes. Currently i believe i have the same has the "normal" items, for example: weapon skin has the weapon bonuses, costumes has the same bonus has the armors.. etc.. Any help is appreciated! Thank you! It's all lies Link to comment Share on other sites More sharing options...
Solution MORTE 78 Posted January 9, 2019 Solution Share Posted January 9, 2019 item_attribute.cpp: Quote if (GetType() == ITEM_ARMOR) { switch (GetSubType()) { case ARMOR_BODY: // case COSTUME_BODY: // ÄÚ½ºÃõ °©¿ÊÀº ÀÏ¹Ý °©¿Ê°ú µ¿ÀÏÇÑ Attribute SetÀ» ÀÌ¿ëÇÏ¿© ·£´ý¼Ó¼º ºÙÀ½ (ARMOR_BODY == COSTUME_BODY) return ATTRIBUTE_SET_BODY; case ARMOR_WRIST: return ATTRIBUTE_SET_WRIST; case ARMOR_FOOTS: return ATTRIBUTE_SET_FOOTS; case ARMOR_NECK: return ATTRIBUTE_SET_NECK; case ARMOR_HEAD: // case COSTUME_HAIR: // ÄÚ½ºÃõ Çì¾î´Â ÀÏ¹Ý Åõ±¸ ¾ÆÀÌÅÛ°ú µ¿ÀÏÇÑ Attribute SetÀ» ÀÌ¿ëÇÏ¿© ·£´ý¼Ó¼º ºÙÀ½ (ARMOR_HEAD == COSTUME_HAIR) return ATTRIBUTE_SET_HEAD; case ARMOR_SHIELD: return ATTRIBUTE_SET_SHIELD; case ARMOR_EAR: return ATTRIBUTE_SET_EAR; case COSTUME_B: return ATTRIBUTE_COSTUME_B; } } else if (GetType() == ITEM_COSTUME) return ATTRIBUTE_COSTUME_B; ClientManagerBoot.cpp: Search for: 2x Quote str_to_number(t.bMaxLevelBySet[ATTRIBUTE_SET_EAR], data[col++]); Add below: 2x Quote str_to_number(t.bMaxLevelBySet[ATTRIBUTE_COSTUME_B], data[col++]); Search for: 2x Quote t.bMaxLevelBySet[ATTRIBUTE_SET_EAR]); Add below: 2x Quote t.bMaxLevelBySet[ATTRIBUTE_COSTUME_B]); Search for: 2x Quote "SELECT apply, apply+0, prob, lv1, lv2, lv3, lv4, lv5, weapon, body, wrist, foots, neck, head, shield, ear FROM item_attr_rare%s ORDER BY apply", Add below: 2x Quote "SELECT apply, apply+0, prob, lv1, lv2, lv3, lv4, lv5, weapon, body, wrist, foots, neck, head, shield, ear, costume FROM item_attr_rare%s ORDER BY apply", length.h: Search for: Quote ATTRIBUTE_SET_MAX_NUM Add below: Quote ATTRIBUTE_COSTUME_B, in Player.item_attr: add new field and configure as desired; #not tested 2 Link to comment Share on other sites More sharing options...
displayjokes 89 Posted January 9, 2019 Author Share Posted January 9, 2019 1 hour ago, MORTE said: item_attribute.cpp: ClientManagerBoot.cpp: Search for: 2x Add below: 2x Search for: 2x Add below: 2x Search for: 2x Add below: 2x length.h: Search for: Add below: in Player.item_attr: add new field and configure as desired; #not tested Did everything there, worked like charm! Thank you! It's all lies Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now