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.
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 [email protected][1], @doram_cc, @doram_hs, @doram_hc; } else{ setarray [email protected][1], getbattleflag("max_cloth_color"), getbattleflag("max_hair_style"), getbattleflag("max_hair_color"); } setarray [email protected][1], LOOK_CLOTHES_COLOR, LOOK_HAIR, LOOK_HAIR_COLOR; set [email protected], select(" ~ Cloth color: ~ Hairstyle: ~ Hair color"); set [email protected], getlook([email protected][[email protected]]); set [email protected],1; while(1) { setlook [email protected][[email protected]], [email protected]; message strcharinfo(0),"This is style #"[email protected]+"."; set [email protected]$, " ~ Next (^0055FF"+(([email protected][email protected][[email protected]])[email protected]+1:1)+"^000000): ~ Previous (^0055FF"+(([email protected]!=1)[email protected]:[email protected][[email protected]])+"^000000): ~ Jump to...: ~ Revert to original (^0055FF"[email protected]+"^000000)"; switch(select([email protected]$)) { case 1: set [email protected], (([email protected] != [email protected][[email protected]]) ? [email protected]+1 : 1); break; case 2: set [email protected], (([email protected] != 1) ? [email protected] : [email protected][[email protected]]); break; case 3: message strcharinfo(0),"Choose a style between 1 - "[email protected][[email protected]]+"."; input [email protected],0,[email protected][[email protected]]; if ([email protected]) set [email protected], rand(1,[email protected][[email protected]]); break; case 4: set [email protected], [email protected]; setlook [email protected][[email protected]], [email protected]; break; } } }
Edited by JinYuichiLink to comment
Share on other sites