diff options
author | Haru <haru@dotalux.com> | 2014-10-26 02:06:46 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-11-02 01:36:50 +0100 |
commit | bf4b0a281207e46a9b21a9c9f779aeafaa739b62 (patch) | |
tree | 0230ee95510255548ebb7f4080460b466c9e2ca6 /npc/merchants/cashheadgear_dye.txt | |
parent | 6b20c5b6988c889df35b890d93c338f8b87fa430 (diff) | |
download | hercules-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/cashheadgear_dye.txt')
-rw-r--r-- | npc/merchants/cashheadgear_dye.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/npc/merchants/cashheadgear_dye.txt b/npc/merchants/cashheadgear_dye.txt index f2d739aba..f9a6cd089 100644 --- a/npc/merchants/cashheadgear_dye.txt +++ b/npc/merchants/cashheadgear_dye.txt @@ -15,7 +15,7 @@ prt_in,253,168,4 script Alora 4_F_LGTGIRL,{ // Mysterious Dyestuff - set .@dyeID, 6220; + .@dyeID = 6220; // Headgear Choices setarray .@hgn$[1], "Mage Hat","Beanie","Drooping Cat","Deviruchi Hat","Wig","Ribbon","Magestic Goat"; // Mage Hats - Normal, Yellow, Blue, Brown, Gray, Red @@ -39,12 +39,12 @@ prt_in,253,168,4 script Alora 4_F_LGTGIRL,{ mes "[Alora]"; mes "Do you have a headgear that you would like to dye?"; next; - for(set .@i,1; .@i < getarraysize(.@hgn$); set .@i,.@i+1) { - if(.@i == 1) set .@menu$, .@hgn$[.@i]; - else set .@menu$, .@menu$ +":"+ .@hgn$[.@i]; + for(.@i = 1; .@i < getarraysize(.@hgn$); ++.@i) { + if(.@i == 1) .@menu$ = .@hgn$[.@i]; + else .@menu$ += ":"+ .@hgn$[.@i]; } - set .@menu$, .@menu$ +":Cancel"; - set .@t, select(.@menu$); + .@menu$ += ":Cancel"; + .@t = select(.@menu$); if(.@t == getarraysize(.@hgn$)) { mes "[Alora]"; mes "Have a good journey adventurer!"; @@ -54,24 +54,24 @@ prt_in,253,168,4 script Alora 4_F_LGTGIRL,{ mes "[Alora]"; mes "Okay, what color do you want to change it to?"; next; - for(set .@i,1; .@i < getarraysize(getd(".@hg_"+.@t+"")); set .@i,.@i+1) { + for(.@i = 1; .@i < getarraysize(getd(".@hg_"+.@t+"")); ++.@i) { if(.@i == 1 && .@t != 5) - set .@menu$, "Normal"; + .@menu$ = "Normal"; else if(.@i == 1 && .@t == 5) - set .@menu$, getitemname(getd(".@hg_"+.@t+"["+.@i+"]")); + .@menu$ = getitemname(getd(".@hg_"+.@t+"["+.@i+"]")); else { sscanf(getitemname(getd(".@hg_"+.@t+"["+.@i+"]")),"%s "+ .@hgn$[.@t],.@colour$); - set .@menu$, .@menu$ +":"+ .@colour$; + .@menu$ += ":"+ .@colour$; } } - set .@menu$, .@menu$ +":Cancel"; - set .@c, select(.@menu$); + .@menu$ += ":Cancel"; + .@c = select(.@menu$); if(.@c == getarraysize(getd(".@hg_"+.@t+""))) { mes "[Alora]"; mes "Oh, okay no problem!"; close; } - set .@dyHG, getd(".@hg_"+.@t+"["+.@c+"]"); + .@dyHG = getd(".@hg_"+.@t+"["+.@c+"]"); mes "[Alora]"; mes "Oh I'm so excited aren't you?"; mes "And just to be sure, what color is the "+ .@hgn$[.@t] +" you want me to use?"; @@ -85,18 +85,18 @@ prt_in,253,168,4 script Alora 4_F_LGTGIRL,{ mes "["+ strcharinfo(0) +"]"; mes "Ok, thanks for the warning, I think I'll give you my"; next; - set .@menu$, "Nevermind"; - for(set .@i,1; .@i < getarraysize(getd(".@hg_"+.@t+"")); set .@i,.@i+1) { - if(.@i == 1) set .@menu$, .@menu$ +":Normal "+ getitemname(getd(".@hg_"+.@t+"["+.@i+"]")); - else set .@menu$, .@menu$ +":"+ getitemname(getd(".@hg_"+.@t+"["+.@i+"]")); + .@menu$ = "Nevermind"; + for(.@i = 1; .@i < getarraysize(getd(".@hg_"+.@t+"")); ++.@i) { + if(.@i == 1) .@menu$ += ":Normal "+ getitemname(getd(".@hg_"+.@t+"["+.@i+"]")); + else .@menu$ += ":"+ getitemname(getd(".@hg_"+.@t+"["+.@i+"]")); } - set .@mine, select(.@menu$) - 1; + .@mine = select(.@menu$) - 1; if(!.@mine) { mes "[Alora]"; mes "It's best to be very sure, have a safe journey."; close; } - set .@myHG, getd(".@hg_"+.@t+"["+.@mine+"]"); + .@myHG = getd(".@hg_"+.@t+"["+.@mine+"]"); if(.@dyHG == .@myHG) { mes "[Alora]"; mes "Woah what happened?"; |