yuhsing

Untitled

Jul 12th, 2013
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. - script Costume Clown -1,{
  2. mes "[Clown]";
  3. mes "Here you can convert your headgears into a Costume Headgear.";
  4. switch(select("I want to convert.:No thanks.")) {
  5. case 1:
  6. next;
  7. mes "Please, select what to convert.";
  8. mes "Remember, cards and refine will be removed.";
  9. next;
  10.  
  11. for( set .@i, 0; .@i < .position_size; set .@i, .@i + 1 ){
  12. if( getequipisequiped( .position[.@i] ) )
  13. set .@menu$, .@menu$ + "["+getequipname( .position[.@i] )+"]";
  14. set .@menu$, .@menu$ + ":";
  15. }
  16. set .@Part, .position[ select( .@menu$ ) - 1 ];
  17. set .@equip_id,getequipid(.@Part);
  18. if( countbound() ){
  19. for( set .@i,0; .@i < getarraysize( @bound_items ); set .@i,.@i+1 )
  20. if( @bound_items[.@i] == .@equip_id ){
  21. mes "This is bounded items.";
  22. close;
  23. }
  24. }
  25. if( !getequipisequiped(.@Part) )
  26. {
  27. mes "[Clown]";
  28. mes "Your not wearing anything there...";
  29. close;
  30. }
  31. mes "[Clown]";
  32. mes "You want to Costume your " + getitemname(getequipid(.@Part)) + "?";
  33. next;
  34. if( select("Yes, proceed:No, I am sorry.") == 2 )
  35. {
  36. mes "[Clown]";
  37. mes "Need some time to think about it, huh?";
  38. mes "Alright, I can understand.";
  39. close;
  40. }
  41. costume .@Part; // Convert the Headgear
  42. mes "[Clown]";
  43. mes "Done, enjoy your costume headgear.";
  44. close;
  45. case 2:
  46. mes "[Clown]";
  47. mes "Very well. Return at once if you seek my services.";
  48. close;
  49. }
  50.  
  51. OnInit:
  52. setarray .position,EQI_HEAD_TOP,EQI_HEAD_MID,EQI_HEAD_LOW;
  53. set .position_size,getarraysize( .position );
  54. end;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment