Advertisement
johnlol

stylist

Jul 2nd, 2020
2,250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //===== rAthena Script =======================================
  2. //= Stylist
  3. //===== By: ==================================================
  4. //= Euphy
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Changes your hair style, hair color, and cloth color.
  11. //===== Additional Comments: =================================
  12. //= 1.0 Initial script.
  13. //= 1.1 Switched to 'getbattleflag', credits to Saithis. [Euphy]
  14. //============================================================
  15.  
  16. prontera,170,180,1  script  Stylist#custom_stylist  122,{
  17.     setarray .@Styles[1],
  18.         getbattleflag("max_cloth_color"),
  19.         getbattleflag("max_hair_style"),
  20.         getbattleflag("max_hair_color");
  21.     setarray .@Look[1],
  22.         LOOK_CLOTHES_COLOR,
  23.         LOOK_HAIR,
  24.         LOOK_HAIR_COLOR;
  25.     set .@s, select(" ~ Cloth color: ~ Hairstyle: ~ Hair color");
  26.     set .@Revert, getlook(.@Look[.@s]);
  27.     set .@Style,1;
  28.     while(1) {
  29.         setlook .@Look[.@s], .@Style;
  30.         message strcharinfo(0),"This is style #"+.@Style+".";
  31.         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)";
  32.         switch(select(.@menu$)) {
  33.         case 1:
  34.             set .@Style, ((.@Style != .@Styles[.@s]) ? .@Style+1 : 1);
  35.             break;
  36.         case 2:
  37.             set .@Style, ((.@Style != 1) ? .@Style-1 : .@Styles[.@s]);
  38.             break;
  39.         case 3:
  40.             message strcharinfo(0),"Choose a style between 1 - "+.@Styles[.@s]+".";
  41.             input .@Style,0,.@Styles[.@s];
  42.             if (!.@Style)
  43.                 set .@Style, rand(1,.@Styles[.@s]);
  44.             break;
  45.         case 4:
  46.             set .@Style, .@Revert;
  47.             setlook .@Look[.@s], .@Revert;
  48.             break;
  49.         }
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement