From bf4b0a281207e46a9b21a9c9f779aeafaa739b62 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 26 Oct 2014 02:06:46 +0100 Subject: Replaced 'set' with direct assignment where applicable (common folder) Signed-off-by: Haru --- npc/other/acolyte_warp.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'npc/other/acolyte_warp.txt') diff --git a/npc/other/acolyte_warp.txt b/npc/other/acolyte_warp.txt index 10cd72124..9760d4e67 100644 --- a/npc/other/acolyte_warp.txt +++ b/npc/other/acolyte_warp.txt @@ -41,10 +41,10 @@ prontera,98,121,4 script Acolyte#Prtclear 4_F_01,{ setarray .@maps$[0], "izlude", "geffen", "payon", "morocc", "alberta", "aldebaran", "comodo", "umbala", "yuno"; setarray .@cost[0], 600, 1200, 1200, 1200, 1800, 2200, 2200, 2200, 1800; - set .@size, getarraysize(.@towns$); - for(set .@i,0; .@i<.@size; set .@i,.@i+1) - set .@menu$, .@menu$+.@towns$[.@i]+" -> "+.@cost[.@i]+"z:"; - set .@i, select(.@menu$+"Cancel")-1; + .@size = getarraysize(.@towns$); + for(.@i = 0; .@i<.@size; ++.@i) + .@menu$ += .@towns$[.@i]+" -> "+.@cost[.@i]+"z:"; + .@i = select(.@menu$+"Cancel")-1; if (.@i == .@size) close; if (Zeny < .@cost[.@i]) { @@ -104,10 +104,10 @@ yuno,142,184,6 script Acolyte#Junoclear 4_F_01,{ setarray .@maps$[0], "einbroch", "lighthalzen", "hugel", "rachel", "prontera"; setarray .@cost[0], 2200, 2200, 2200, 2200, 1800; - set .@size, getarraysize(.@towns$); - for(set .@i,0; .@i<.@size; set .@i,.@i+1) - set .@menu$, .@menu$+.@towns$[.@i]+" -> "+.@cost[.@i]+"z:"; - set .@i, select(.@menu$+"Cancel")-1; + .@size = getarraysize(.@towns$); + for(.@i = 0; .@i<.@size; ++.@i) + .@menu$ += .@towns$[.@i]+" -> "+.@cost[.@i]+"z:"; + .@i = select(.@menu$+"Cancel")-1; if (.@i == .@size) close; if (Zeny < .@cost[.@i]) { -- cgit v1.2.3-60-g2f50