stylist.txt 1.6 KB

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