hi guys, i need help with this stylist script, i practically want to add the option for those who have the bodystyle 2, they can only change color of clothes 3 times, i try to use the if(getlook(LOOK_BODY2)), with the same option that has the doram so i can't overpass the limits of colors and styles, but the other function is blocked and i don't have the slightest idea of how to do it, i hope and you can help me, i leave you the complete stylist script.
prontera,142,227,3 script Stylist#custom_stylist 122,{
@doram_cc = 3;
@doram_hs = 10;
@doram_hc = 8;
if( Class == 4218 ){
setarray .@Styles[1],
@doram_cc,
@doram_hs,
@doram_hc;
}
else{
setarray .@Styles[1],
getbattleflag("max_cloth_color"),
getbattleflag("max_hair_style"),
getbattleflag("max_hair_color");
}
setarray .@Look[1],
LOOK_CLOTHES_COLOR,
LOOK_HAIR,
LOOK_HAIR_COLOR;
set .@s, select(" ~ Cloth color: ~ Hairstyle: ~ Hair color");
set .@Revert, getlook(.@Look[.@s]);
set .@Style,1;
while(1) {
setlook .@Look[.@s], .@Style;
message strcharinfo(0),"This is style #"+.@Style+".";
set .@menu$, " ~ Next (^0055FF"+((.@Style!=.@Styles[.@s])?.@Style+1:1)+"^000000): ~ Previous (^0055FF"+((.@Style!=1)?.@Style-1:.@Styles[.@s])+"^000000): ~ Jump to...: ~ Revert to original (^0055FF"+.@Revert+"^000000)";
switch(select(.@menu$)) {
case 1:
set .@Style, ((.@Style != .@Styles[.@s]) ? .@Style+1 : 1);
break;
case 2:
set .@Style, ((.@Style != 1) ? .@Style-1 : .@Styles[.@s]);
break;
case 3:
message strcharinfo(0),"Choose a style between 1 - "+.@Styles[.@s]+".";
input .@Style,0,.@Styles[.@s];
if (!.@Style)
set .@Style, rand(1,.@Styles[.@s]);
break;
case 4:
set .@Style, .@Revert;
setlook .@Look[.@s], .@Revert;
break;
}
}
}
Question
JinYuichi
hi guys, i need help with this stylist script, i practically want to add the option for those who have the bodystyle 2, they can only change color of clothes 3 times, i try to use the if(getlook(LOOK_BODY2)), with the same option that has the doram so i can't overpass the limits of colors and styles, but the other function is blocked and i don't have the slightest idea of how to do it, i hope and you can help me, i leave you the complete stylist script.
Link to comment
Share on other sites
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.