hyuna Posted March 14, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 144 Reputation: 4 Joined: 10/28/12 Last Seen: November 29, 2014 Share Posted March 14, 2013 (edited) trunk/npc/custom/stylist.txthere is my default stylist script from rathena....my problem is that when I click previous, next still is the top option.I want the previous to be the top option after I click previous and next to be top after I click next again. THX... Edited March 15, 2013 by hyuna Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 14, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 14, 2013 //===== rAthena Script ======================================= //= Stylist //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.1 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= Changes your hair style, hair color, and cloth color. //===== Additional Comments: ================================= //= 1.1 Switched to 'getbattleflag', credits to Saithis. [Euphy] //============================================================ prontera,170,180,1 script Stylist#custom_stylist 122,{ setarray .@Styles[1],getbattleflag("max_cloth_color"),getbattleflag("max_hair_style"),getbattleflag("max_hair_color"); setarray .@Look[1],7,1,6; 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+"."; if( .@s_menu == 2 ) { set .@menu$, " ~ Previous (^0055FF"+((.@Style!=1)?.@Style-1:.@Styles[.@s])+"^000000): ~ Next (^0055FF"+((.@Style!=.@Styles[.@s])?.@Style+1:1)+"^000000): ~ Jump to...: ~ Revert to original (^0055FF"+.@Revert+"^000000)"; set .@s_menu, select(.@menu$); if( .@s_menu == 2 ) set .@s_menu, 1; else if( .@s_menu == 1 ) set .@s_menu, 2; } else { 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)"; set .@s_menu, select(.@menu$); } switch(.@s_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; } } } 2 Quote Link to comment Share on other sites More sharing options...
hyuna Posted March 14, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 144 Reputation: 4 Joined: 10/28/12 Last Seen: November 29, 2014 Author Share Posted March 14, 2013 bump Quote Link to comment Share on other sites More sharing options...
iraciz Posted March 15, 2013 Group: Members Topic Count: 140 Topics Per Day: 0.03 Content Count: 562 Reputation: 111 Joined: 10/05/12 Last Seen: February 12, 2024 Share Posted March 15, 2013 is there any existing script that open a slot to save your hairstyle or cloth color? Quote Link to comment Share on other sites More sharing options...
hyuna Posted March 15, 2013 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 144 Reputation: 4 Joined: 10/28/12 Last Seen: November 29, 2014 Author Share Posted March 15, 2013 THX Capuche!!! SOLVED... Quote Link to comment Share on other sites More sharing options...
Question
hyuna
trunk/npc/custom/stylist.txt
Edited by hyunahere is my default stylist script from rathena....my problem is that when I click previous, next still is the top option.
I want the previous to be the top option after I click previous and next to be top after I click next again. THX...
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.