summaryrefslogtreecommitdiff
path: root/npc/merchants/elemental_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/merchants/elemental_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/merchants/elemental_trader.txt')
-rw-r--r--npc/merchants/elemental_trader.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/merchants/elemental_trader.txt b/npc/merchants/elemental_trader.txt
index a1f255743..bf01c29d3 100644
--- a/npc/merchants/elemental_trader.txt
+++ b/npc/merchants/elemental_trader.txt
@@ -80,7 +80,7 @@ ama_in02,61,27,7 script Alchemist#ama 4_M_ALCHE_B,{
mes "Uh-huh, what did you bring?";
next;
setarray .@items[1],995,997,994,996;
- set .@i, .@items[select("Mystic Frozen:Great Nature:Flame Heart:Rough Wind")];
+ .@i = .@items[select("Mystic Frozen:Great Nature:Flame Heart:Rough Wind")];
mes "[Laspuchin Gregory]";
if (countitem(.@i) > 7) {
mes "I will take 8 of them and";
@@ -91,13 +91,13 @@ ama_in02,61,27,7 script Alchemist#ama 4_M_ALCHE_B,{
mes "[Laspuchin Gregory]";
mes "HeeHee, what do you want? Choose one!";
next;
- set .@menu$, "";
- for(set .@j,1; .@j<5; set .@j,.@j+1) {
- if (.@items[.@j] != .@i) set .@menu$, .@menu$+getitemname(.@items[.@j]);
- set .@menu$, .@menu$+":";
+ .@menu$ = "";
+ for(.@j = 1; .@j < 5; ++.@j) {
+ if (.@items[.@j] != .@i) .@menu$ += getitemname(.@items[.@j]);
+ .@menu$ += ":";
}
- set .@menu$, .@menu$+"Cancel the trade";
- set .@j, select(.@menu$);
+ .@menu$ += "Cancel the trade";
+ .@j = select(.@menu$);
mes "[Laspuchin Gregory]";
if (.@j == 5) {
mes "Oh, well.";