Jump to content
  • 0

Can anyone help me with my Stylist?


Reborn

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

Hello guys, I make a script which is a Stylist but it is not yet finished. Can anyone finish this for me? Here is my script. Thanks


prontera,150,150,5	script	Stylist	878,{

set .@n$,"[Stylist]";

query_sql("SELECT `char_id`,`name`,`hair`,`hair_color`,`clothes_color` FROM `char` WHERE `char_id` = '"+getcharid(0)+"'",@charid$,@name$,@hair$,@haircolor$,@clothcolor$);

mes .@n$;
mes "You are currently wearing:";
mes "Cloth Color: "+@clothcolor$+"";
mes "Hair Color: "+@haircolor$+"";
mes "Hair Style: "+@hair$+"";
next;
mes .@n$;
mes "What would you like to change?";
next;
switch(select("Clothes Color:Hair Color:Hair Style:Saved Dyes:Randomize")) {
	case 1:
	clothcolor:
		mes .@n$;
		mes "Choose a style to begin from between 0 to 699.";
		input (.@clothcolor);
		switch(select("Next:Previous:I Like it!:[Save Clothes]")) {
			case 1: // will show the next clothcolor
			case 2: // will show the previous clothcolor
			case 3:
				next;
				mes .@n$;
				mes "Perfect ! I am glad you found a style that fits you!";
				close;
			case 4:
				switch(select("Set 1:Set 2:Set3")) {
					case 1: // will save the clothcolor that you want to this set
						mes .@n$;
						mes "Your style has been saved.";
						goto clothcolor;
					case 2: // will save the clothcolor that you want to this set
						mes .@n$;
						mes "Your style has been saved.";
						goto clothcolor;
					case 3: // will save the clothcolor that you want to this set
						mes .@n$;
						mes "Your style has been saved.";
						goto clothcolor;
					} 
			}
	case 2:
	haircolor:
		mes .@n$;
		mes "Choose a style to begin from between 0 to 126.";
		input (.@haircolor);
		switch(select("Next:Previous:I Like it!:[Save Clothes]")) {
			case 1: // will show the next hair color
			case 2: // will show the previous hair color
			case 3:
				next;
				mes .@n$;
				mes "Perfect ! I am glad you found a style that fits you!";
				close;
			case 4:
				switch(select("Set 1:Set 2:Set3")) {
					case 1: // will save the haircolor that you want to this set
						mes .@n$;
						mes "Your style has been saved.";
						goto haircolor;
					case 2: // will save the haircolor that you want to this set
						mes .@n$;
						mes "Your style has been saved.";
						goto haircolor;
					case 3: // will save the haircolor that you want to this set
						mes .@n$;
						mes "Your style has been saved.";
						goto haircolor;
					}
			}
	case 3:
		mes .@n$;
		mes "Choose a style to begin from between 0 to 27.";
		input (.@hairstyle);
		switch(select("Next:Previous:I Like it!")) {
			case 1: // will show the next hairstyle
			case 2: // will show the previous hairstyle
			case 3:
				next;
				mes .@n$;
				mes "Perfect ! I am glad you found a style that fits you!";
				close;
			}
	case 4:
		mes .@n$;
		mes "Here are the color sets you saved:";
		mes "Which one do you want to wear ?";
		mes Slot 1 : <clothcolor>,<haircolor>";
		mes Slot 2 : <clothcolor>,<haircolor>";
		mes Slot 3 : <clothcolor>,<haircolor>";
		next;
		switch(select("Set 1:Set2:Set3")) {
			case 1:
				// it will automatically wear the cloth color and hair color that you have saved before in this set.
				mes .@n$;
				mes "Here is the set you like! See you later.";
				close;
			case 2:
				// it will automatically wear the cloth color and hair color that you have saved before in this set.
				mes .@n$;
				mes "Here is the set you like! See you later.";
				close;
			case 3:
				// it will automatically wear the cloth color and hair color that you have saved before in this set.
				mes .@n$;
				mes "Here is the set you like! See you later.";
				close;
			}
	case 5:
		mes .@n$;
		mes "What would you like to change?";
		next;
		switch(select("Next:I Like It!")) {
			case 1:
				// it will going to give you a random cloth color, hair color and hair style.
			case 2:
				next;
				mes .@n$;
				mes "Perfect ! I am glad you found a style that fits you!";
				close;
			}
	}





}
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   3
  • Joined:  05/01/14
  • Last Seen:  

i dont know if this could help but here i go :v

prontera,150,150,4 script S#custom_stylist 68,{
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: ~ Hair Style: ~ Hair Dye");
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;
   cutin "",255;
  }
}
OnInit:
waitingroom "Stylist",0;
}
Edited by Emistry
Please use codebox.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

I already seen this script Roxess, however that is not what i am looking. Thanks anyway for the help.

 

Please attached the right codes for the script that I make. Theres some options there that i want to be exactly as the description on the script is. Can anyone help me with this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

* bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   3
  • Joined:  05/01/14
  • Last Seen:  

you need to use arrays and set values :I

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

I dont know how to do it. can you make it for me please? or anyone here please?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...