Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Script
- case 3:
- next;
- mes @header$;
- mes "Okay, then you can now pick on my list!:";
- mes " ";
- mes "(^FF0000Note that in this list, we have: GC = Gold Coins, SC = Silver Coins and BC = Bronze Coins^000000)";
- // Build Menu
- for (.@a = 0; .@a < getarraysize(.shop); .@a += 5) {
- set .@menu$, .@menu$ + (.@menu$ == "" ? "" : ":") +"[^FF0000"+ .shop[.@a+4] +"^000000]"+" "+ getitemname(.shop[.@a+3]) +" for "+ .shop[.@a+2] +" ";
- if(.shop[.@a] == 2) .@menu$ += "GC";
- else if(.shop[.@a] == 1) .@menu$ += "SC";
- else .@menu$ += "BC";
- }
- .@item_choice = (select(.@menu$) - 1);
- .@a = 5*.@item_choice;
- if (countitem(.shop[.@a+1]) < .shop[.@a+2]) {
- next;
- mes @header$;
- mes "You don't have enough event coins.";
- close;
- }
- if (checkweight(.shop[.@a+3],.shop[.@a+4])) {
- next;
- mes @header$;
- mes "Done! Thank you for the transaction hope you enjoy it!.";
- delitem .shop[.@a+1], .shop[.@a+2];
- getitem .shop[.@a+3], .shop[.@a+4];
- close;
- } else {
- next;
- mes @header$;
- 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.";
- close;
- }
- // Shop Menu
- OnInit:
- // ExchangeName,required_id,amount,exchange_id,amount
- // ExchangeName:
- // BC = 0
- // SC = 1
- // GC = 2
- setarray .shop[0],
- 0,3117,1,969,50,
- 0,3117,1,608,100,
- 0,3117,1,607,50,
- 1,3118,1,12535,25,
- 1,3118,1,12202,10,
- 1,3118,1,12203,10,
- 1,3118,1,12204,10,
- 1,3118,1,12205,10,
- 1,3118,1,12206,10,
- 1,3118,1,12207,10,
- 1,3118,2,12114,300,
- 1,3118,2,12115,300,
- 1,3118,2,12116,300,
- 1,3118,2,12117,300,
- 1,3118,2,12029,300,
- 1,3118,2,12032,300,
- 1,3118,2,12033,300,
- 1,3118,2,12028,300,
- 2,3119,2,7086,1,
- 2,3119,2,7073,2,
- 2,3119,2,7074,2,
- 2,3119,2,7075,2,
- 2,3119,2,7076,2,
- 2,3119,2,7077,2,
- 2,3119,2,7078,2,
- 2,3119,2,7079,2,
- 2,3119,2,7080,2,
- 2,3119,2,7081,2,
- 2,3119,2,7082,2,
- 2,3119,2,7083,2,
- 2,3119,2,7084,2,
- 2,3119,2,7085,2,
- 2,3119,2,7087,2,
- 2,3119,2,7088,2,
- 2,3119,2,7089,2,
- 2,3119,2,7090,2,
- 2,3119,2,7091,2,
- 2,3119,2,7092,2,
- 2,3119,5,4399,1,
- 2,3119,6,4365,1,
- 2,3119,7,4363,1,
- 2,3119,8,4367,1,
- 2,3119,10,4361,1,
- 2,3119,10,4357,1,
- 2,3119,10,4359,1;
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement