stylist.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. //===== rAthena Script =======================================
  2. //= Stylist
  3. //===== By: ==================================================
  4. //= Euphy
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= rAthena SVN
  9. //===== Description: =========================================
  10. //= Changes your hair style, hair color, and cloth color.
  11. //============================================================
  12. prontera,170,180,1 script Stylist#custom_stylist 122,{
  13. setarray .@Styles[1],553,37,250; // Maximum dye, hair style, and hair color
  14. setarray .@Look[1],7,1,6;
  15. set .@s, select(" ~ Cloth color: ~ Hairstyle: ~ Hair color");
  16. set .@Revert, getlook(.@Look[.@s]); set .@Style,1;
  17. while(1) {
  18. setlook .@Look[.@s], .@Style;
  19. message strcharinfo(0),"This is style #"+.@Style+".";
  20. 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)";
  21. switch(select(.@menu$)) {
  22. case 1: set .@Style, ((.@Style!=.@Styles[.@s])?.@Style+1:1); break;
  23. case 2: set .@Style, ((.@Style!=1)?.@Style-1:.@Styles[.@s]); break;
  24. case 3: message strcharinfo(0),"Choose a style between 1 - "+.@Styles[.@s]+".";
  25. input .@Style,0,.@Styles[.@s];
  26. if (!.@Style) set .@Style, rand(1,.@Styles[.@s]);
  27. break;
  28. case 4: set .@Style, .@Revert; setlook .@Look[.@s], .@Revert; break; }
  29. } end;
  30. }