yuhsing

Untitled

Mar 24th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. //***-- Requested by,
  2. //-- MyRO Server.
  3.  
  4.  
  5. // adjusted with 553 cloth colors July 19, 2011
  6.  
  7. payon,126,238,6 script Stylist Ricky 122,{
  8.  
  9. set .@name$,"[^000080Ricky The Stylist^000000]";
  10.  
  11. if(Sex == 0) { // Female
  12. setarray .@max[1],489,251,98; // Number of cloths, haircolors, hairstyles in client (Female)
  13.  
  14. setarray .@blacklist_hairstyle,143,188,261;
  15. setarray .@blacklist_haircolor,143,188,261;
  16. setarray .@blacklist_cloth,143,188,261;
  17.  
  18. } else { // male
  19. setarray .@max[1],489,251,80; // Number of cloths, haircolors, hairstyles in client (Male)
  20.  
  21. setarray .@blacklist_hairstyle,3,5,7;
  22. setarray .@blacklist_haircolor,2,4,6;
  23. setarray .@blacklist_cloth,143,188,261;
  24.  
  25. }
  26.  
  27. // setarray .@blacklist[0],0,143,188,261; // NPC will skip any cloth colors in this array.
  28. // Use for palettes that cause errors or just plain look bad.
  29. // Leave first value at 0 to disable.
  30.  
  31. setarray .@type[1],7,6,1; // DO NOT EDIT
  32. set .@style,0;
  33.  
  34. mes .@name$;
  35. mes "I can change your appearance for you if you'd like.";
  36. mes " ";
  37. mes "Just choose what you'd like to change:";
  38. next;
  39. set .@s,select("Clothes color",
  40. "Hair color",
  41. "Hair style");
  42. deletearray .@blacklist;
  43. switch( .@s ){
  44. Case 1: copyarray .@blacklist[0],.@blacklist_cloth[0],getarraysize( .@blacklist_cloth ); break;
  45. Case 2: copyarray .@blacklist[0],.@blacklist_haircolor[0],getarraysize( .@blacklist_haircolor ); break;
  46. Case 3: copyarray .@blacklist[0],.@blacklist_hairstyle[0],getarraysize( .@blacklist_hairstyle ); break;
  47. default: break;
  48. }
  49. set .@blacklist_size,getarraysize( .@blacklist );
  50.  
  51. mes .@name$;
  52. mes "Alright, how would you like to search?";
  53. next;
  54. menu "Start at the beginning",L_start,
  55. "Choose where to start",-;
  56.  
  57. // CHOOSE WHERE TO START =====================================================
  58. mes .@name$;
  59. mes "Alright, choose a style between ^0000FF0 and " +.@max[.@s]+ "^000000.";
  60. next;
  61. input .@style;
  62.  
  63. if (.@style < 0 || .@style > .@max[.@s]) {
  64. mes .@name$;
  65. mes "Style chosen is out of range.";
  66. close;
  67. }
  68.  
  69. L_start:
  70. setarray @revert[1],getlook(.@type[.@s]),0,0;
  71. mes .@name$;
  72. mes "Alright here we go, starting at style ^007700" +.@style+ "^000000.";
  73. next;
  74.  
  75. // BEGINNING OF STYLE MENU LOOP ================================================
  76. L_menuloop:
  77. if( .@blacklist_size ){
  78. for( set .@f,0; .@f < .@blacklist_size; set .@f,.@f + 1 )
  79. if( .@style == .@blacklist[.@f] ){
  80. mes "^FF0000STYLE REMOVED - " +.@style+ "^000000";
  81. message strcharinfo(0),"GM Message - Style " +.@style+ " was removed.";
  82. if( .@previous == 1 ){
  83. set .@style, .@style - 1;
  84. }else{
  85. set .@style, .@style +1;
  86. }
  87. goto L_menuloop;
  88. }
  89. }
  90. setlook .@type[.@s],.@style;
  91. mes "This is style number ^007700" +.@style+ "^000000.";
  92.  
  93. set .@next, .@style + 1;
  94. set .@prev, .@style - 1;
  95.  
  96. // MAXIMUM MENU
  97. if (.@style == .@max[.@s]) {
  98. set .@next,0;
  99. message strcharinfo(0),"Limit Reached";
  100. }
  101.  
  102. // MINIMUM MENU ==============================================================
  103. if (.@style == 0) {
  104. set .@prev,.@max[.@s];
  105. message strcharinfo(0),"Beginning Reached";
  106. }
  107.  
  108. // PREVIOUS MENU =============================================================
  109. if (.@previous) {
  110. menu "^FF0000Previous - " +.@prev+ "^000000",L_prev,
  111. "^0000FFNext - " +.@next+ "^000000",L_next,
  112. "Jump to",L_jump,
  113. "Save",L_save,
  114. "Load",L_load;
  115. }
  116.  
  117. // DEFAULT MENU ==============================================================
  118. menu "^0000FFNext - " +.@next+ "^000000",L_next,
  119. "^FF0000Previous - " +.@prev+ "^000000",L_prev,
  120. "Jump to",L_jump,
  121. "Save",L_save,
  122. "Load",L_load;
  123.  
  124. L_next:
  125. set .@previous,0;
  126. set .@style, .@next;
  127. goto L_menuloop;
  128.  
  129. L_prev:
  130. set .@previous,1;
  131. set .@style, .@prev;
  132. goto L_menuloop;
  133.  
  134. L_jump:
  135. next;
  136. mes .@name$;
  137. mes "Choose which style you'd like to jump to:";
  138. next;
  139. input .@style;
  140. if (.@style < 0 || .@style > .@max[.@s]) {
  141. mes .@name$;
  142. mes "Style chosen is out of range.";
  143. close;
  144. }
  145. goto L_menuloop;
  146.  
  147. L_save:
  148. next;
  149. mes .@name$;
  150. mes "Choose which slot you'd like to save to:";
  151. set .@x, select("Slot 1 - [" +@revert[1]+ "]",
  152. "Slot 2 - [" +@revert[2]+ "]",
  153. "Slot 3 - [" +@revert[3]+ "]");
  154.  
  155. setarray @revert[.@x], .@style;
  156. goto L_menuloop;
  157.  
  158. L_load:
  159. next;
  160. mes .@name$;
  161. mes "Choose which slot you'd like to load from:";
  162. set .@x, select("Slot 1 - [" +@revert[1]+ "]",
  163. "Slot 2 - [" +@revert[2]+ "]",
  164. "Slot 3 - [" +@revert[3]+ "]");
  165.  
  166. set .@style, @revert[.@x];
  167. goto L_menuloop;
  168. }
  169.  
  170. turbo_room,133,83,1 duplicate(Stylist Ricky) Stylist Ricky#2 122
  171.  
  172. prontera,139,225,6 duplicate(Stylist Ricky) Stylist Ricky#3 122
  173.  
  174. amatsu,129,166,4 duplicate(Stylist Ricky) Stylist Ricky#4 122
  175.  
  176. gonryun,181,109,3 duplicate(Stylist Ricky) Stylist Ricky#5 122
  177.  
  178. morocc,180,84,6 duplicate(Stylist Ricky) Stylist Ricky#6 122
  179.  
  180. aldebaran,102,102,8 duplicate(Stylist Ricky) Stylist Ricky#7 122
  181.  
  182. yuno,136,150,6 duplicate(Stylist Ricky) Stylist Ricky#8 724
  183.  
  184. hugel,115,168,3 duplicate(Stylist Ricky) Stylist Ricky#9 724
  185. geffen,102,40,7 duplicate(Stylist Ricky) Stylist Ricky#10 724
  186.  
  187. izlude,152,101,5 duplicate(Stylist Ricky) Stylist Ricky#11 724
Advertisement
Add Comment
Please, Sign In to add comment