Rage Guy Posted May 29, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Share Posted May 29, 2013 When changing girl hair style + 50 comes erros but boys no problem i want make max hair style for girls 50 Quote Link to comment Share on other sites More sharing options...
1 Jaburak Posted May 29, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted May 29, 2013 trunk/conf/battle/client.conf // Valid range of dyes and styles on the client. min_hair_style: 0 max_hair_style: 27 min_hair_color: 0 max_hair_color: 8 min_cloth_color: 0 max_cloth_color: 4 Or better use Emistry Advanced Stylist; http://rathena.org/board/files/file/2859-advanced-stylist/ 1 Quote Link to comment Share on other sites More sharing options...
0 chatterboy Posted January 2, 2017 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 309 Reputation: 26 Joined: 11/26/12 Last Seen: November 22, 2024 Share Posted January 2, 2017 thanx for the info Anakid Quote Link to comment Share on other sites More sharing options...
0 srhmike Posted January 2, 2017 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 261 Reputation: 53 Joined: 11/11/16 Last Seen: February 8, 2024 Share Posted January 2, 2017 You could always copy another hair, and just overwrite the one that errors. Quote Link to comment Share on other sites More sharing options...
Rage Guy Posted May 29, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Author Share Posted May 29, 2013 i dont meen that i mean i want make max for girls only or i want remove 3 hair styles Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 29, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted May 29, 2013 Yea, that's why I included Emistry Adv. Stylist. // Blacklisted Style for each style and each gender. // --- Female --- .blacklist_hairstyle_0$ = "2,4,6"; .blacklist_haircolor_0$ = "1,3,5"; .blacklist_cloth_0$ = "1,2,3"; Quote Link to comment Share on other sites More sharing options...
Rage Guy Posted May 29, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Author Share Posted May 29, 2013 i want nothing with zeny // credits to Annieruru function script ValueConvert { set .@num, atoi(""+getarg(0)); if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); set .@l, getstrlen(""+.@num); for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; } return .@num$; } - script Stylist -1,{ OnTalk: mes "[^0055FF ::: Adv. Stylist ::: ^000000]"; mes "I can change your appearance."; if( .cost_size ){ mes " "; mes "^777777[ SERVICES PAYMENT ]^000000"; for( .@i = 0; .@i < .menu_size; .@i++ ) if( .npc_mode & ( 1 << .@i ) ) if( .cost[.@i] ) mes "^0055FF"+.menu_name$[.@i]+" : ^777777"+ValueConvert( .cost[.@i] )+" "+.currency_name$[.@i]+"^000000"; else mes "^0055FF"+.menu_name$[.@i]+" : ^777777Free of Charge^000000"; } next; .@style = ( select( .npc_menu$ ) - 1 ); @style_value = getlook( .look_type[.@style] ); deletearray .@blacklist; switch( .@style ){ Case 0: .@blacklist$ = ","+getd( ".blacklist_hairstyle_"+Sex+"$" )+","; break; Case 1: .@blacklist$ = ","+getd( ".blacklist_haircolor_"+Sex+"$" )+","; break; Case 2: .@blacklist$ = ","+getd( ".blacklist_cloth_"+Sex+"$" )+","; break; default: break; } .@style_number = .min_style[.@style]; do{ message strcharinfo(0),.menu_name$[.@style]+" : "+.@style_number+"th"; .@removed = 0; if( compare( .@blacklist$,","+.@style_number+"," ) ){ message strcharinfo(0),"[ REMOVED ] "+.menu_name$[.@style]+" : "+.@style_number+"th"; .@removed = 1; // setlook .look_type[.@style],.min_style[.@style]; }else{ setlook .look_type[.@style],.@style_number; } .@next = .@style_number + 1; .@prev = .@style_number - 1; if( .@next > .max_style[.@style] ) .@next = .min_style[.@style]; if( .@prev < .min_style[.@style] ) .@prev = .max_style[.@style]; @select = prompt( (( .@backward )?"Backward":"Forward" )+" - [ ^777777"+(( .@backward )? .@prev:.@next )+"th Style^000000 ]", (( !.@backward )?"Backward":"Forward" )+" - [ ^777777"+(( !.@backward )? .@prev:.@next )+"th Style^000000 ]", "Jump to a Style", ( .@removed )?"":"^0055FFOkay, I want this "+.menu_name$[.@style]+"^000000" ) - 1; if( @select == 1 ) .@backward = !.@backward; switch( @select ){ Case 0: Case 1: .@style_number = (( .@backward == 1 )? .@prev:.@next ); break; Case 2: message strcharinfo(0),"Available Style : "+.min_style[.@style]+" ~ "+.max_style[.@style]+"."; input .@style_number,.min_style[.@style],.max_style[.@style]; break; Case 3: .@atoi_currency = atoi( .currency$[.@style] ); if( @style_value == .@style_number ){ message strcharinfo(0),"Swt..that is your original hairstyles."; break; } else if( .@atoi_currency ){ if( countitem( .@atoi_currency ) >= .cost[.@style] ){ .@success = 1; delitem .@atoi_currency,.cost[.@style]; } }else{ if( getd( ""+.currency$[.@style] ) >= .cost[.@style] ){ .@success = 1; setd( ""+.currency$[.@style] ),( getd( ""+.currency$[.@style] ) - .cost[.@style] ); } } if( .@success ){ message strcharinfo(0),"Enjoy your NEW "+.menu_name$[.@style]+" !!"; @style_value = .@style_number; }else{ mes "You dont have enough "+.currency_name$[.@style]+" to change this "+.menu_name$[.@style]+"."; mes "Cost : ^777777"+ValueConvert( .cost[.@style] )+" "+.currency_name$[.@style]+"^000000"; } default: setlook .look_type[.@style],@style_value; break; } }while( @select != 3 && @select != 254 ); @select = 0; close; OnPCLogoutEvent: if( @select ){ setlook .look_type[.@style],@style_value; debugmes "2 .look_type["+.@style+"] | "+.@style_number+" | "+@style_value+" "; } end; OnInit: // NPC Mode ( Bitmask ) // 1 - Enable Hairstyle // 2 - Enable Hair Color // 4 - Enable Cloth Color .npc_mode = 7; // Menu Name setarray .menu_name$, "Hair Style", "Hair Color", "Cloth Color"; // Payment Currency + Cost // Can be ITEM ID or Any Variable. setarray .currency$, "512", // Hairstyle - Ex. need Apple "#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS "Zeny"; // Cloth Color - Ex. need Zeny setarray .cost, 123, // Hairstyle ( 123 Apple ) 5432, // Hair Color ( 5,432 CASHPOINTS ) 12345; // Cloth Color ( 12,345 Zeny ) // Blacklisted Style for each style and each gender. // --- Female --- .blacklist_hairstyle_0$ = "49,50,51,52,53,54,55,56"; .blacklist_haircolor_0$ = "1,3,5"; .blacklist_cloth_0$ = "1,2,3"; // --- Male --- .blacklist_hairstyle_1$ = ""; .blacklist_haircolor_1$ = ""; .blacklist_cloth_1$ = ""; // Dont edit setarray .min_style,getbattleflag( "min_hair_style" ),getbattleflag( "min_hair_color" ),getbattleflag( "min_cloth_color" ); setarray .max_style,getbattleflag( "max_hair_style" ),getbattleflag( "max_hair_color" ),getbattleflag( "max_cloth_color" ); .menu_size = getarraysize( .menu_name$ ); .cost_size = getarraysize( .cost ); setarray .look_type,LOOK_HAIR,LOOK_HAIR_COLOR,LOOK_CLOTHES_COLOR; for( .npc_menu$ = ""; .@i < .menu_size; .@i++ ) .npc_menu$ = .npc_menu$ + ( ( .npc_mode & ( 1 << .@i ) )? .menu_name$[.@i]:"" ) +":"; for( .@i = 0; .@i < .cost_size; .@i++ ){ .@atoi = atoi( .currency$[.@i] ); .currency_name$[.@i] = ( ( !.@atoi || getitemname( .@atoi ) == "null" )? .currency$[.@i]:getitemname( .@atoi ) ); } end; } // NPC Lists prontera,155,181,5 script Adv. Stylist#main 878,{ doevent "Stylist::OnTalk"; } prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#1 878 prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#2 878 prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#3 878 no zeny no cash no payments Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 29, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted May 29, 2013 // Payment Currency + Cost // Can be ITEM ID or Any Variable. setarray .currency$, "512", // Hairstyle - Ex. need Apple "#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS "Zeny"; // Cloth Color - Ex. need Zeny setarray .cost, 123, // Hairstyle ( 123 Apple ) 5432, // Hair Color ( 5,432 CASHPOINTS ) 12345; // Cloth Color ( 12,345 Zeny ) Quote Link to comment Share on other sites More sharing options...
Rage Guy Posted May 30, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Author Share Posted May 30, 2013 // Payment Currency + Cost // Can be ITEM ID or Any Variable. setarray .currency$, "512", // Hairstyle - Ex. need Apple "#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS "Zeny"; // Cloth Color - Ex. need Zeny setarray .cost, 123, // Hairstyle ( 123 Apple ) 5432, // Hair Color ( 5,432 CASHPOINTS ) 12345; // Cloth Color ( 12,345 Zeny ) like that its free? ITS NOT WORKING == // credits to Annieruru function script ValueConvert { set .@num, atoi(""+getarg(0)); if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); set .@l, getstrlen(""+.@num); for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; } return .@num$; } - script Stylist -1,{ OnTalk: mes "[^0055FF ::: Adv. Stylist ::: ^000000]"; mes "I can change your appearance."; if( .cost_size ){ mes " "; mes "^777777[ SERVICES PAYMENT ]^000000"; for( .@i = 0; .@i < .menu_size; .@i++ ) if( .npc_mode & ( 1 << .@i ) ) if( .cost[.@i] ) mes "^0055FF"+.menu_name$[.@i]+" : ^777777"+ValueConvert( .cost[.@i] )+" "+.currency_name$[.@i]+"^000000"; else mes "^0055FF"+.menu_name$[.@i]+" : ^777777Free of Charge^000000"; } next; .@style = ( select( .npc_menu$ ) - 1 ); @style_value = getlook( .look_type[.@style] ); deletearray .@blacklist; switch( .@style ){ Case 0: .@blacklist$ = ","+getd( ".blacklist_hairstyle_"+Sex+"$" )+","; break; Case 1: .@blacklist$ = ","+getd( ".blacklist_haircolor_"+Sex+"$" )+","; break; Case 2: .@blacklist$ = ","+getd( ".blacklist_cloth_"+Sex+"$" )+","; break; default: break; } .@style_number = .min_style[.@style]; do{ message strcharinfo(0),.menu_name$[.@style]+" : "+.@style_number+"th"; .@removed = 0; if( compare( .@blacklist$,","+.@style_number+"," ) ){ message strcharinfo(0),"[ REMOVED ] "+.menu_name$[.@style]+" : "+.@style_number+"th"; .@removed = 1; // setlook .look_type[.@style],.min_style[.@style]; }else{ setlook .look_type[.@style],.@style_number; } .@next = .@style_number + 1; .@prev = .@style_number - 1; if( .@next > .max_style[.@style] ) .@next = .min_style[.@style]; if( .@prev < .min_style[.@style] ) .@prev = .max_style[.@style]; @select = prompt( (( .@backward )?"Backward":"Forward" )+" - [ ^777777"+(( .@backward )? .@prev:.@next )+"th Style^000000 ]", (( !.@backward )?"Backward":"Forward" )+" - [ ^777777"+(( !.@backward )? .@prev:.@next )+"th Style^000000 ]", "Jump to a Style", ( .@removed )?"":"^0055FFOkay, I want this "+.menu_name$[.@style]+"^000000" ) - 1; if( @select == 1 ) .@backward = !.@backward; switch( @select ){ Case 0: Case 1: .@style_number = (( .@backward == 1 )? .@prev:.@next ); break; Case 2: message strcharinfo(0),"Available Style : "+.min_style[.@style]+" ~ "+.max_style[.@style]+"."; input .@style_number,.min_style[.@style],.max_style[.@style]; break; Case 3: .@atoi_currency = atoi( .currency$[.@style] ); if( @style_value == .@style_number ){ message strcharinfo(0),"Swt..that is your original hairstyles."; break; } else if( .@atoi_currency ){ if( countitem( .@atoi_currency ) >= .cost[.@style] ){ .@success = 1; delitem .@atoi_currency,.cost[.@style]; } }else{ if( getd( ""+.currency$[.@style] ) >= .cost[.@style] ){ .@success = 1; setd( ""+.currency$[.@style] ),( getd( ""+.currency$[.@style] ) - .cost[.@style] ); } } if( .@success ){ message strcharinfo(0),"Enjoy your NEW "+.menu_name$[.@style]+" !!"; @style_value = .@style_number; }else{ mes "You dont have enough "+.currency_name$[.@style]+" to change this "+.menu_name$[.@style]+"."; mes "Cost : ^777777"+ValueConvert( .cost[.@style] )+" "+.currency_name$[.@style]+"^000000"; } default: setlook .look_type[.@style],@style_value; break; } }while( @select != 3 && @select != 254 ); @select = 0; close; OnPCLogoutEvent: if( @select ){ setlook .look_type[.@style],@style_value; debugmes "2 .look_type["+.@style+"] | "+.@style_number+" | "+@style_value+" "; } end; OnInit: // NPC Mode ( Bitmask ) // 1 - Enable Hairstyle // 2 - Enable Hair Color // 4 - Enable Cloth Color .npc_mode = 7; // Menu Name setarray .menu_name$, "Hair Style", "Hair Color", "Cloth Color"; // Payment Currency + Cost // Can be ITEM ID or Any Variable. setarray .currency$, "512", // Hairstyle - Ex. need Apple "#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS "Zeny"; // Cloth Color - Ex. need Zeny setarray .cost, 123, // Hairstyle ( 123 Apple ) 5432, // Hair Color ( 5,432 CASHPOINTS ) 12345; // Cloth Color ( 12,345 Zeny ) // Blacklisted Style for each style and each gender. // --- Female --- .blacklist_hairstyle_0$ = "49,50,51,52,53,54,55,56"; .blacklist_haircolor_0$ = "1,3,5"; .blacklist_cloth_0$ = "1,2,3"; // --- Male --- .blacklist_hairstyle_1$ = ""; .blacklist_haircolor_1$ = ""; .blacklist_cloth_1$ = ""; // Dont edit setarray .min_style,getbattleflag( "min_hair_style" ),getbattleflag( "min_hair_color" ),getbattleflag( "min_cloth_color" ); setarray .max_style,getbattleflag( "max_hair_style" ),getbattleflag( "max_hair_color" ),getbattleflag( "max_cloth_color" ); .menu_size = getarraysize( .menu_name$ ); .cost_size = getarraysize( .cost ); setarray .look_type,LOOK_HAIR,LOOK_HAIR_COLOR,LOOK_CLOTHES_COLOR; for( .npc_menu$ = ""; .@i < .menu_size; .@i++ ) .npc_menu$ = .npc_menu$ + ( ( .npc_mode & ( 1 << .@i ) )? .menu_name$[.@i]:"" ) +":"; for( .@i = 0; .@i < .cost_size; .@i++ ){ .@atoi = atoi( .currency$[.@i] ); .currency_name$[.@i] = ( ( !.@atoi || getitemname( .@atoi ) == "null" )? .currency$[.@i]:getitemname( .@atoi ) ); } end; } // NPC Lists prontera,155,181,5 script Adv. Stylist#main 878,{ doevent "Stylist::OnTalk"; } prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#1 878 prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#2 878 prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#3 878 Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 30, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted May 30, 2013 Find: // Payment Currency + Cost // Can be ITEM ID or Any Variable. setarray .currency$, "512", // Hairstyle - Ex. need Apple "#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS "Zeny"; // Cloth Color - Ex. need Zeny setarray .cost, 123, // Hairstyle ( 123 Apple ) 5432, // Hair Color ( 5,432 CASHPOINTS ) 12345; // Cloth Color ( 12,345 Zeny ) Replace: // Payment Currency + Cost // Can be ITEM ID or Any Variable. //setarray .currency$, // "512", // Hairstyle - Ex. need Apple // "#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS // "Zeny"; // Cloth Color - Ex. need Zeny //setarray .cost, // 123, // Hairstyle ( 123 Apple ) // 5432, // Hair Color ( 5,432 CASHPOINTS ) // 12345; // Cloth Color ( 12,345 Zeny ) Quote Link to comment Share on other sites More sharing options...
Rage Guy Posted May 30, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Author Share Posted May 30, 2013 nothing happen when i press on the npc Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 30, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted May 30, 2013 dont remove all these setting if you are unsure what it will caused to the script ..... set set the cost value to 0 and it will be free ... Quote Link to comment Share on other sites More sharing options...
Rage Guy Posted May 30, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.03 Content Count: 354 Reputation: 3 Joined: 02/17/13 Last Seen: August 14, 2016 Author Share Posted May 30, 2013 am not talking about that !! the npc is not working in my server > nothing happens when pressing him . Quote Link to comment Share on other sites More sharing options...
Patskie Posted May 30, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 3 hours ago Share Posted May 30, 2013 // Payment Currency + Cost // Can be ITEM ID or Any Variable. setarray .currency$, "512", // Hairstyle - Ex. need Apple "#CASHPOINTS", // Hair Color - Ex. need CASHPOINTS "Zeny"; // Cloth Color - Ex. need Zeny setarray .cost, 0, // Hairstyle ( 123 Apple ) 0, // Hair Color ( 5,432 CASHPOINTS ) 0; // Cloth Color ( 12,345 Zeny ) Quote Link to comment Share on other sites More sharing options...
Question
Rage Guy
When changing girl hair style + 50 comes erros
but boys no problem
i want make max hair style for girls 50
Link to comment
Share on other sites
13 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.