johnlol

costume

May 10th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. ________________     ______            ________      
  3. ___    |_____  /________  /______      ___  __ \_____
  4. __  /| |  __  /_  __ \_  __ \  _ \     __  /_/ /  __ \
  5. _  ___ / /_/ / / /_/ /  /_/ /  __/     _  _, _// /_/ /
  6. /_/  |_\__,_/  \____//_.___/\___/      /_/ |_| \____/
  7.  
  8. */
  9.  
  10. // -------------------------------------------------------------------------------
  11. //  Script Name : Headgear to Costume converter >> Costume to Headgear converter
  12. // -------------------------------------------------------------------------------
  13. // Description :
  14. // - Allows a user to convert the equipped headgear (on Top, Mid or Low) into a
  15. //   costume item. It will remove any card and refine of the Item.
  16. // - Allows a user to restore the equipped costume headgear (on Top, Mid or Low)
  17. //   into its original form. It will not return any card or refine of the item.
  18. // -------------------------------------------------------------------------------
  19. -   script  Costume Clown   -1,{
  20.     mes "[Clown]";
  21.     mes "Here you can convert your headgears into a Costume Headgear or restore to its Original form.";
  22.     switch(select("I want to convert.:I want to restore.:No thanks.")) {
  23.     case 1:
  24.             next;
  25.             mes "Please, select what to convert.";
  26.             mes "Remember, cards and refine will be removed.";
  27.             next;
  28.                 setarray .@Position$[1],"Top","Mid","Low";
  29.                 setarray .@Position[1],     1,    9,   10;
  30.                 set .@Menu$,"";
  31.             for( set .@i, 1; .@i < 5; set .@i, .@i + 1 )
  32.             {
  33.                 if( getequipisequiped(.@Position[.@i]) )
  34.                 set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]";
  35.                 set .@Menu$, .@Menu$ + ":";
  36.             }
  37.             set .@Part, .@Position[ select(.@Menu$) ];
  38.             if( !getequipisequiped(.@Part) )
  39.             {
  40.                 mes "[Clown]";
  41.                 mes "Your not wearing anything there...";
  42.                 close;
  43.             }
  44.             mes "[Clown]";
  45.             mes "You want to Costume your " + getitemname(getequipid(.@Part)) + "?";
  46.             next;
  47.             if( select("Yes, proceed:No, I am sorry.") == 2 )
  48.             {
  49.                 mes "[Clown]";
  50.                 mes "Need some time to think about it, huh?";
  51.                 mes "Alright, I can understand.";
  52.                 close;
  53.             }
  54.             costume .@Part; // Convert the Headgear
  55.             mes "[Clown]";
  56.             mes "Done, enjoy your costume headgear.";
  57.             close;
  58.     case 2:
  59.             next;
  60.             mes "Please, select what to restore.";
  61.             mes "Remember, I will only restore it back without refine and cards.";
  62.             next;
  63.                 setarray .@Position$[1],"Top","Mid","Low";
  64.                 setarray .@Position[1],     13,    12,   11;
  65.                 set .@Menu$,"";
  66.             for( set .@i, 1; .@i < 5; set .@i, .@i + 1 )
  67.             {
  68.                 if( getequipisequiped(.@Position[.@i]) )
  69.                 set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]";
  70.                 set .@Menu$, .@Menu$ + ":";
  71.             }
  72.             set .@Part, .@Position[ select(.@Menu$) ];
  73.             if( !getequipisequiped(.@Part) )
  74.             {
  75.                 mes "[Clown]";
  76.                 mes "Your not wearing anything there...";
  77.                 close;
  78.             }
  79.             mes "[Clown]";
  80.             mes "You want to restore your " + getitemname(getequipid(.@Part)) + "?";
  81.             next;
  82.             if( select("Yes, proceed:No, I am sorry.") == 2 )
  83.             {
  84.                 mes "[Clown]";
  85.                 mes "Need some time to think about it, huh?";
  86.                 mes "Alright, I can understand.";
  87.                 close;
  88.             }
  89.             a = getequipid(.@Part);        
  90.             delitem a,1;
  91.             getitem a,1;
  92.            
  93.             mes "[Clown]";
  94.             mes "Done, enjoy your restored headgear.";
  95.             close;
  96.     case 3:
  97.         mes "[Clown]";
  98.         mes "Very well. Return at once if you seek my services.";
  99.         close;
  100.     }
  101. }
  102. // --------------------------------------------------------------------------
  103. // Use duplicates to put your npc on different cities
  104. // --------------------------------------------------------------------------
  105. prontera,155,181,4  duplicate(Costume Clown)    Costume Clown#1 715
Add Comment
Please, Sign In to add comment