Jump to content

Recommended Posts

Hi!

I'm trying to do something like restricting the bonuses that can go on costumes, for example

image.thumb.png.d56c442e820d3592958802ff3fb87a66.png

 

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
https://metin2.dev/topic/20377-costume-specific-bonus/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Solution

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

  • Love 2
Link to comment
https://metin2.dev/topic/20377-costume-specific-bonus/#findComment-110567
Share on other sites

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! :D

It's all lies

Link to comment
https://metin2.dev/topic/20377-costume-specific-bonus/#findComment-110570
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.