Jump to content
  • 0

Adding new Cloth and Headgear Styles


Question

Posted

Hello,

 

I am pretty afraid to mess something up, so I wanted to ask here if my plan is complete and correct.

 

I want to implement new cloth and headgear styles, now I've read some guides and set up this plan:

 

1. Download this data: http://www.eathena.ws/board/index.php?showtopic=200408&hl=palettes

2. Load all files in my server's GRF

3. Change my src/char_sql/char.c like this:

//check other inputs
if((slot >= MAX_CHARS) // slots
|| (hair_style >= 44) // hair style
|| (hair_color >= 252) // hair color

4. Change my conf/battle/client.conf like this:

// valid range of dye's and styles on the client
min_hair_style: 0
max_hair_style: 43
min_hair_color: 0
max_hair_color: 251
min_cloth_color: 0 
max_cloth_color: 553

I am using a 20101228 Client by the way.

Anything else I need to do, or I would do wrong at the moment?

Anything I need to change in the rAthena's stylist.txt?

 

Thanks a lot!

3 answers to this question

Recommended Posts

Posted

Okay, I've got it.

I had to do everything from 1. to 3.

Instead of 4. I had to edit src/map/battle.c

{ "min_hair_style",                     &battle_config.min_hair_style,                  0,      0,      INT_MAX,        },
{ "max_hair_style",                     &battle_config.max_hair_style,                  23,     0,      INT_MAX,        },
{ "min_hair_color",                     &battle_config.min_hair_color,                  0,      0,      INT_MAX,        },
{ "max_hair_color",                     &battle_config.max_hair_color,                  262,      0,      INT_MAX,        },
{ "min_cloth_color",                    &battle_config.min_cloth_color,                 0,      0,      INT_MAX,        },
{ "max_cloth_color",                    &battle_config.max_cloth_color,                 552,      0,      INT_MAX,        },

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...