Advertisement
Guest User

Untitled

a guest
Jul 18th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. // Script
  2. case 3:
  3. next;
  4. mes @header$;
  5. mes "Okay, then you can now pick on my list!:";
  6. mes " ";
  7. mes "(^FF0000Note that in this list, we have: GC = Gold Coins, SC = Silver Coins and BC = Bronze Coins^000000)";
  8.  
  9. // Build Menu
  10. for (.@a = 0; .@a < getarraysize(.shop); .@a += 5) {
  11. set .@menu$, .@menu$ + (.@menu$ == "" ? "" : ":") +"[^FF0000"+ .shop[.@a+4] +"^000000]"+" "+ getitemname(.shop[.@a+3]) +" for "+ .shop[.@a+2] +" ";
  12. if(.shop[.@a] == 2) .@menu$ += "GC";
  13. else if(.shop[.@a] == 1) .@menu$ += "SC";
  14. else .@menu$ += "BC";
  15. }
  16.  
  17. .@item_choice = (select(.@menu$) - 1);
  18. .@a = 5*.@item_choice;
  19.  
  20. if (countitem(.shop[.@a+1]) < .shop[.@a+2]) {
  21. next;
  22. mes @header$;
  23. mes "You don't have enough event coins.";
  24. close;
  25. }
  26.  
  27. if (checkweight(.shop[.@a+3],.shop[.@a+4])) {
  28. next;
  29. mes @header$;
  30. mes "Done! Thank you for the transaction hope you enjoy it!.";
  31. delitem .shop[.@a+1], .shop[.@a+2];
  32. getitem .shop[.@a+3], .shop[.@a+4];
  33. close;
  34. } else {
  35. next;
  36. mes @header$;
  37. mes "Wait a second! Right now, you're carrying too many items with you. Please come back after putting some of your things into Kafra Storage.";
  38. close;
  39. }
  40.  
  41. // Shop Menu
  42. OnInit:
  43. // ExchangeName,required_id,amount,exchange_id,amount
  44. // ExchangeName:
  45. // BC = 0
  46. // SC = 1
  47. // GC = 2
  48.  
  49. setarray .shop[0],
  50. 0,3117,1,969,50,
  51. 0,3117,1,608,100,
  52. 0,3117,1,607,50,
  53. 1,3118,1,12535,25,
  54. 1,3118,1,12202,10,
  55. 1,3118,1,12203,10,
  56. 1,3118,1,12204,10,
  57. 1,3118,1,12205,10,
  58. 1,3118,1,12206,10,
  59. 1,3118,1,12207,10,
  60. 1,3118,2,12114,300,
  61. 1,3118,2,12115,300,
  62. 1,3118,2,12116,300,
  63. 1,3118,2,12117,300,
  64. 1,3118,2,12029,300,
  65. 1,3118,2,12032,300,
  66. 1,3118,2,12033,300,
  67. 1,3118,2,12028,300,
  68. 2,3119,2,7086,1,
  69. 2,3119,2,7073,2,
  70. 2,3119,2,7074,2,
  71. 2,3119,2,7075,2,
  72. 2,3119,2,7076,2,
  73. 2,3119,2,7077,2,
  74. 2,3119,2,7078,2,
  75. 2,3119,2,7079,2,
  76. 2,3119,2,7080,2,
  77. 2,3119,2,7081,2,
  78. 2,3119,2,7082,2,
  79. 2,3119,2,7083,2,
  80. 2,3119,2,7084,2,
  81. 2,3119,2,7085,2,
  82. 2,3119,2,7087,2,
  83. 2,3119,2,7088,2,
  84. 2,3119,2,7089,2,
  85. 2,3119,2,7090,2,
  86. 2,3119,2,7091,2,
  87. 2,3119,2,7092,2,
  88. 2,3119,5,4399,1,
  89. 2,3119,6,4365,1,
  90. 2,3119,7,4363,1,
  91. 2,3119,8,4367,1,
  92. 2,3119,10,4361,1,
  93. 2,3119,10,4357,1,
  94. 2,3119,10,4359,1;
  95. end;
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement