Hi, how are you guys?
Could you help me with my npc stylist? Please.
If possible, I would like to limit hair styles, colors and clothing for VIP players.
Players lv: 1(VIP)
Max cloth color: 450
Max hair style: 50
Max hair color: 80
Players lv: 0(Normal)
Max cloth color: 150
Max hair style: 20
Max hair color: 30
Script:
Spoiler
prontera,164,232,1 script Estilista#custom_stylist 2_M_DYEINGER,{OnProgressbarEnd:
setarray .@max[1],// paletas de casamento só chegam a 77
checkoption(0x1000)?77: getbattleflag("max_cloth_color"),
getbattleflag("max_hair_style"),
getbattleflag("max_hair_color");
setarray .@Look[1],LOOK_CLOTHES_COLOR,LOOK_HAIR,LOOK_HAIR_COLOR;if(@autoscroll){set@autoscroll,0;}else{set@s, select(" - Cor da roupa (^0055FF"+getlook(LOOK_CLOTHES_COLOR)+"^000000): - Penteado (^0055FF"+getlook(LOOK_HAIR)+"^000000): - Cor do penteado (^0055FF"+getlook(LOOK_HAIR_COLOR)+"^000000)");set@Revert, getlook(.@Look[@s]);}set.@Style, getlook(.@Look[@s]);while(1){set.@menu$,(.@previous?(": - Anterior (^0055FF"+((.@Style>1)?.@Style-1:.@max[@s])+"^000000): - Próxima (^0055FF"+((.@Style<.@max[@s])?.@Style+1:1)+"^000000)"):(" - Próxima (^0055FF"+((.@Style<.@max[@s])?.@Style+1:1)+"^000000): - Anterior (^0055FF"+((.@Style>1)?.@Style-1:.@max[@s])+"^000000):"))+": - Próxima ^008000(auto rolagem)^000000: - Anterior ^008000(auto rolagem)^000000:"+" - Pule para...: - Reverter para o original (^0055FF"+@Revert+"^000000)";switch(select(.@menu$)){case1:case3:set.@previous,0;set.@Style,((.@Style<.@max[@s])?.@Style+1:1);break;case2:set.@previous,1;set.@Style,((.@Style>1)?.@Style-1:.@max[@s]);break;case4:
mes "[^008000Estilista^000000]";
mes "Clique em Fechar para iniciar a rolagem automática...";
mes " ";
mes "Clique em qualquer lugar da tela para parar a rolagem automática.";
close2;set@autoscroll,1;
addtimer 1,strnpcinfo(3)+"::OnProgressbarEnd";while(1){set.@Style,((.@Style<.@max[@s])?.@Style+1:1);
setlook .@Look[@s],.@Style;
message strcharinfo(0),"This is style #"+.@Style+".";
progressbar "FFFF00",1;}
end;case5:
mes "[^008000Estilista^000000]";
mes "Clique em Fechar para iniciar a rolagem automática...";
mes " ";
mes "Clique em qualquer lugar da tela para parar a rolagem automática.";
close2;set@autoscroll,1;
addtimer 1,strnpcinfo(3)+"::OnProgressbarEnd";while(1){set.@Style,((.@Style>1)?.@Style-1:.@max[@s]);
setlook .@Look[@s],.@Style;
message strcharinfo(0),"This is style #"+.@Style+".";
progressbar "FFFF00",1;}
end;case6: message strcharinfo(0),"Choose a style between 1 - "+.@max[@s]+".";
input .@Style,0,.@max[@s];if(!.@Style)set.@Style, rand(1,.@max[@s]);break;case7:set.@Style,@Revert; setlook .@Look[@s],@Revert;break;}
setlook .@Look[@s],.@Style;
message strcharinfo(0),"This is style #"+.@Style+".";}}
Question
hardelite
Hi, how are you guys?
Could you help me with my npc stylist? Please.
If possible, I would like to limit hair styles, colors and clothing for VIP players.
Players lv: 1 (VIP)
Max cloth color: 450
Max hair style: 50
Max hair color: 80
Players lv: 0 (Normal)
Max cloth color: 150
Max hair style: 20
Max hair color: 30
Script:
Thank you very much.
Link to comment
Share on other sites
4 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.