summaryrefslogtreecommitdiff
path: root/npc/other/card_trader.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/other/card_trader.txt')
-rw-r--r--npc/other/card_trader.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/npc/other/card_trader.txt b/npc/other/card_trader.txt
index 8838bafb9..871dd805a 100644
--- a/npc/other/card_trader.txt
+++ b/npc/other/card_trader.txt
@@ -57,7 +57,7 @@ prontera,115,90,0 script Putty 4_F_01,{
4453;
setarray .card[1], getarraysize(.card1), getarraysize(.card2), getarraysize(.card3);
}
- set .@points,oversea_event9;
+ .@points = oversea_event9;
if (!.@points) {
mes "[Putty]";
mes "Hi there.";
@@ -103,20 +103,20 @@ prontera,115,90,0 script Putty 4_F_01,{
mes "Please tell me what card you want to exchange.";
next;
input .@i$;
- set .@input$, "_"+.@i$;
- set .@card,0;
+ .@input$ = "_"+.@i$;
+ .@card = 0;
freeloop(1);
- for(set .@j,1; .@j<4; set .@j,.@j+1) {
- for(set .@i,0; .@i<.card[.@j]; set .@i,.@i+1)
+ for(.@j = 1; .@j<4; ++.@j) {
+ for(.@i = 0; .@i<.card[.@j]; ++.@i)
if (compare(.@input$,"_"+getitemname(getd(".card"+.@j+"["+.@i+"]")))) {
- set .@card, getd(".card"+.@j+"["+.@i+"]"); break; }
+ .@card = getd(".card"+.@j+"["+.@i+"]"); break; }
sleep2 10; // For good measure
if (.@card) break; }
freeloop(0);
mes "[Putty]";
if (!.@card) mes "Please, come back here if you want to exchange a monster card.";
else {
- set .@count, countitem(.@card);
+ .@count = countitem(.@card);
if (!.@count) {
mes "You don't have any ^0055FF"+getitemname(.@card)+"s^000000 with you!";
close; }
@@ -127,7 +127,7 @@ prontera,115,90,0 script Putty 4_F_01,{
switch(select("Yes, please!","No, thank you.")) {
case 1:
delitem .@card,.@count;
- set oversea_event9, (.@points+.@count);
+ oversea_event9 = (.@points+.@count);
mes "[Putty]";
mes "Alright, you have received ^CC0000"+.@count+"^000000 points.";
break;
@@ -150,7 +150,7 @@ prontera,115,90,0 script Putty 4_F_01,{
mes "Great, I wish you the best";
mes "of luck with this album. I have a";
mes "very good feeling about this one!";
- set oversea_event9, .@points - 100;
+ oversea_event9 = .@points - 100;
getitem 616,1;
close;
case 2:
@@ -158,7 +158,7 @@ prontera,115,90,0 script Putty 4_F_01,{
mes "[Putty]";
mes "Oh, you must like adventures.";
mes "Here you go, just what you need!";
- set oversea_event9, .@points - 50;
+ oversea_event9 = .@points - 50;
getitem 607,20;
close;
case 3:
@@ -166,7 +166,7 @@ prontera,115,90,0 script Putty 4_F_01,{
mes "[Putty]";
mes "Blue Potions? Are you sure?";
mes "If that's what you want, here they are!";
- set oversea_event9, .@points - 20;
+ oversea_event9 = .@points - 20;
getitem 505,10;
close;
case 4:
@@ -175,7 +175,7 @@ prontera,115,90,0 script Putty 4_F_01,{
mes "It took many bees";
mes "to make all of this.";
mes "Make good use of it.";
- set oversea_event9, .@points - 1;
+ oversea_event9 = .@points - 1;
getitem 518,4;
close;
case 5: