Гайд для чайников
====================================================;
; xdata.grf ;;;;;;;;;; Repacked by Elixir / OnNplay. ;
;====================================================;
; 251 hair colors, 43 hair styles, 553 cloth colors. ;
;====================================================;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Guide]
Edit your Gravity\RO\data.ini
Put yourdata.grf is after xdata.grf
;-----------------------------------------------;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[data]
0=xdata.grf
1=yourdata.grf
2=sdata.grf
3=data.grf
;-----------------------------------------------;
OR if you merge this xdata.grf to yourdata.grf,
please ensure your file
--> vanity_f_tab.txt
--> vanity_m_tab.txt
are look like this:
;-----------------------------------------------;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
!2
1
7
5
4
3
6
8
9
10
12
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
*2
;-----------------------------------------------;
Select these option for Sakexe.exe diff patching:
-[XRay]_Allow_Create_Custom_Palettes
-[XRay]_Allow_Create_Custom_Hairstyle
Source modification needed for this patches:
For TXT servers: src/char/char.c
For SQL servers: src/char_sql/char.c
;-----------------------------------------------;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//check other inputs
if((slot >= MAX_CHARS) // slots
|| (hair_style >= 24) // hair style
|| (hair_color >= 9) // hair color
;-----------------------------------------------;
Change the 24 to the max number of your hair styles +1
--(ex. you have 43 hair styles, then put 44)
Change the 9 to the max number of your hair dyes +1
--(ex. you have 251 hair dyes (color), then put 252)
Compile...
Here put the max value for each:
eathena\conf\battle\client.conf
;-----------------------------------------------;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// 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
;-----------------------------------------------;
Edit eathena\npc\custom\dye.txt accordingly
to give the correct list at it's menu. You may use edited dye.txt.
Just copy and paste.
;-----------------------------------------------;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//Stylist------------------------------------------------------------------------------------------------------------
prontera,170,180,1 script Stylist 122,{
mes "[^FF8000Stylist^000000]";
mes "I'm the greatest stylist in all of Rune-Midgard~~!";
mes "I can change your hair style or color!";
mes "What do you wish to change?";
next;
menu "Hair style",Lstyle,"Hair color",Lcolor,"Cloth Color",Lcloth,"Nothing",LCancel;
Lstyle:
mes "[^FF8000Stylist^000000]";
mes "Do you want to browse through the choices, or do you know what you want?";
next;
menu "Browse",Lbrowsesty,"I know what I want",Lwantsty;
Lwantsty:
mes "[^FF8000Stylist^000000]";
mes "Great! Now just pick a style and I'll get started!";
next;
mes "[^FF8000Stylist^000000]";
mes "Please pick a style number ^0000FFbetween 0 and 43^000000.";
mes "Number 0, by the way, is the default style for your character.";
next;
input @sty;
if (@sty>43) close;
if (@sty<0) close;
setlook 1,@sty;
next;
mes "[^FF8000Stylist^000000]";
mes "Is this good, or do you want a different style?";
next;
menu "This is good",-,"Different style, please",Lwantsty;
next;
mes "[^FF8000Stylist^000000]";
mes "You look great~! Come back again, okay?";
close;
Lbrowsesty:
set @look, -1;
mes "[^FF8000Stylist^000000]";
mes "Okay, here we go~! Just stop me when you see something you like, okay?";
next;
Lbrowserep:
set @look,@look+1;
setlook 1,@look;
mes "This is Pallete Number^FF9009 "+@look+" ^000000!";
if(@look == 43) menu "Back To The Begin",Lbrowsesty,"I like this one",Lstop;
if(@look != 43) menu "Keep going",Lbrowserep,"I like this one",Lstop;
Lcolor:
mes "[^FF8000Stylist^000000]";
mes "Do you want to browse through the choices, or do you know what you want?";
next;
menu "Browse",Lbrowsecolor,"I know what I want",Lwantcolor;
Lwantcolor:
mes "[^FF8000Stylist^000000]";
mes "Just pick a color and we can get started.";
next;
mes "[^FF8000Stylist^000000]";
mes "Please pick a style number ^0000FFbetween 0 and 251^000000.";
mes "Number 0, by the way, is the default color for your character.";
next;
mes "[^FF8000Stylist^000000]";
mes "0 is default...";
mes "1 is blonde...";
mes "2 is lavender...";
mes "3 is brown...";
mes "4 is green...";
mes "5 is blue...";
mes "6 is white...";
mes "7 is black...";
mes "8 is red...";
mes "and 9-251 are new colors.";
input @color;
if (@color>251) close;
if (@color<0) close;
setlook 6,@color;
next;
mes "[^FF8000Stylist^000000]";
mes "Is this good, or do you want a different color?";
next;
menu "This is good",-,"Different color, please",Lwantcolor;
next;
mes "[^FF8000Stylist^000000]";
mes "You look great~! Come back again, okay?";
close;
Lbrowsecolor:
set @look, -1;
mes "[^FF8000Stylist^000000]";
mes "Okay, here we go~! Just stop me when you see something you like, okay?";
next;
Lbrowsecolorrep:
set @look,@look+1;
setlook 6,@look;
mes "This is Pallete Number^FF9009 "+@look+" ^000000!";
if(@look == 251) menu "Back To The Begin",Lbrowsecolor,"I like this one",Lstop;
if(@look != 251) menu "Keep going",Lbrowsecolorrep,"I like this one",Lstop;
Lstop:
mes "[^FF8000Stylist^000000]";
mes "You look great~! I love it~! ";
close;
LCancel:
mes "[^FF8000Stylist^000000]";
mes "Well come again.";
close;
Lcloth:
mes "[^FF8000Stylist^000000]";
mes "Do you want to browse through the choices, or do you know what you want?";
next;
menu "Browse",Lbrowsecloth,"I know what I want",Lwantcloth;
Lwantcloth:
mes "[^FF8000Stylist^000000]";
mes "Great! Now just pick a pallete and I'll get started!";
next;
mes "[^FF8000Stylist^000000]";
mes "Please pick a style number ^0000FFbetween 0 and 553^000000.";
mes "Number 0, by the way, is the default style for your character.";
next;
input @pal;
if (@pal>553) close;
if (@pal<0) close;
setlook 7,@pal;
next;
mes "[^FF8000Stylist^000000]";
mes "Is this good, or do you want a different pallet";
next;
menu "This is good",-,"Different pallet, please",Lwantcloth;
next;
mes "[^FF8000Stylist^000000]";
mes "You look great~! Come back again, okay?";
close;
Lbrowsecloth:
set @look, -1;
mes "[^FF8000Stylist^000000]";
mes "Okay, here we go~! Just stop me when you see something you like, okay?";
next;
Lbrowseclothrep:
set @look,@look+1;
setlook 7,@look;
mes "This is Pallete Number^FF9009 "+@look+" ^000000!";
if(@look == 553) menu "Back To The Begin",Lbrowsecloth,"I like this one",Lstop;
if(@look != 553) menu "Keep going",Lbrowseclothrep,"I like this one",Lstop;
}
Стиль волос меняет
Цвет волос меняет
Цвет одежды отображается вот так =(