summaryrefslogtreecommitdiff
path: root/npc/other/card_trader.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-10-26 02:06:46 +0100
committerHaru <haru@dotalux.com>2014-11-02 01:36:50 +0100
commitbf4b0a281207e46a9b21a9c9f779aeafaa739b62 (patch)
tree0230ee95510255548ebb7f4080460b466c9e2ca6 /npc/other/card_trader.txt
parent6b20c5b6988c889df35b890d93c338f8b87fa430 (diff)
downloadhercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.gz
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.bz2
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.xz
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.zip
Replaced 'set' with direct assignment where applicable (common folder)
Signed-off-by: Haru <haru@dotalux.com>
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: