Advertisement
Ronny34m

Untitled

May 30th, 2018
184
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // -------------------------------------------------------------------------------
  2. // Script Name : Headgear to Costume converter >> Costume to Headgear converter
  3. // -------------------------------------------------------------------------------
  4. // Description :
  5. // - Allows a user to convert the equipped headgear (on Top, Mid or Low) into a
  6. // costume item. It will remove any card and refine of the Item.
  7. // - Allows a user to restore the equipped costume headgear (on Top, Mid or Low)
  8. // into its original form. It will not return any card or refine of the item.
  9. // -------------------------------------------------------------------------------
  10. - script Costume Clown -1,{
  11.  
  12.  
  13.  
  14. mes "[Clown]";
  15. mes "Do you want to make some costumes out of your headgears? For everychange you have to pay";
  16. mes "an fee of 250000 Zeny. How this sounds for you?";
  17. switch(select("Yes, here is my money.:No, thanks!")){
  18.  
  19. case 1:
  20. if (Zeny<250000){
  21. mes "[Clown]";
  22. mes "Don't waste my time, dude!";
  23. close;
  24. } else {
  25. set Zeny,Zeny-250000;
  26.  
  27. mes("Thanks for your money, bro!");
  28. switch(select("Go ahead")){
  29. next;
  30.  
  31.  
  32. case 1:
  33. mes "[Clown]";
  34. mes "Here you can convert your headgears into a Costume Headgear or restore to its Original form.";
  35. switch(select("I want to convert.:I want to restore.:No thanks.")) {
  36. case 1:
  37. next;
  38. mes "Please, select what to convert.";
  39. mes "Remember, cards and refine will be removed.";
  40. next;
  41. setarray .@Position$[1],"Top","Mid","Low";
  42. setarray .@Position[1], 6, 5, 4;
  43. set .@Menu$,"";
  44. for( set .@i, 1; .@i < 4; set .@i, .@i + 1 )
  45. {
  46. if( getequipisequiped(.@Position[.@i]) )
  47. set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i])
  48.  
  49. + "]";
  50. set .@Menu$, .@Menu$ + ":";
  51. }
  52. set .@Part, .@Position[ select(.@Menu$) ];
  53. if( !getequipisequiped(.@Part) )
  54. {
  55. mes "[Clown]";
  56. mes "Your not wearing anything there...";
  57. close;
  58. }
  59. mes "[Clown]";
  60. mes "You want to Costume your " + getitemname(getequipid(.@Part)) + "?";
  61. next;
  62. if( select("Yes, proceed:No, I am sorry.") == 2 )
  63. {
  64. mes "[Clown]";
  65. mes "Need some time to think about it, huh?";
  66. mes "Alright, I can understand.";
  67. close;
  68. }
  69. costume .@Part; // Convert the Headgear
  70. mes "[Clown]";
  71. mes "Done, enjoy your costume headgear.";
  72. close;
  73. case 2:
  74. next;
  75. mes "Please, select what to restore.";
  76. mes "Remember, I will only restore it back without refine and cards.";
  77. next;
  78. setarray .@Position$[1],"Top","Mid","Low";
  79. setarray .@Position[1], 10, 11, 12;
  80. set .@Menu$,"";
  81. for( set .@i, 1; .@i < 4; set .@i, .@i + 1 )
  82. {
  83. if( getequipisequiped(.@Position[.@i]) )
  84. set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i])
  85.  
  86. + "]";
  87. set .@Menu$, .@Menu$ + ":";
  88. }
  89. set .@Part, .@Position[ select(.@Menu$) ];
  90. if( !getequipisequiped(.@Part) )
  91. {
  92. mes "[Clown]";
  93. mes "Your not wearing anything there...";
  94. close;
  95. }
  96. mes "[Clown]";
  97. mes "You want to restore your " + getitemname(getequipid(.@Part)) + "?";
  98. next;
  99. if( select("Yes, proceed:No, I am sorry.") == 2 )
  100. {
  101. mes "[Clown]";
  102. mes "Need some time to think about it, huh?";
  103. mes "Alright, I can understand.";
  104. close;
  105. }
  106. a = getequipid(.@Part);
  107. delitem a,1;
  108. getitem a,1;
  109.  
  110. mes "[Clown]";
  111. mes "Done, enjoy your restored headgear.";
  112. close;
  113. case 3:
  114. mes "[Clown]";
  115. mes "Very well. Return at once if you seek my services.";
  116. close;
  117. }
  118. }
  119. }
  120. case 2:
  121.  
  122. mes "[Clown]";
  123. mes "As you wish friend!";
  124. close;
  125. }
  126. }
  127. // --------------------------------------------------------------------------
  128. // Use duplicates to put your npc on different cities
  129. // --------------------------------------------------------------------------
  130. itemmall,188,56,1 duplicate(Costume Clown) Costume Clown#1 715
Advertisement
RAW Paste Data Copied
Advertisement