summaryrefslogtreecommitdiff
path: root/npc/merchants/clothes_dyer.txt
diff options
context:
space:
mode:
authorRidley <ridley8819@gmail.com>2017-04-23 11:59:58 +0200
committerGitHub <noreply@github.com>2017-04-23 11:59:58 +0200
commit7a1dbca29bcf6aa9066e5501d3e0ab20d6416383 (patch)
treecf3e755c7e81aab9b92d4d05c511584a30d34fb2 /npc/merchants/clothes_dyer.txt
parent1bc4994db3b611dd489d6bde0a218b232ca785f5 (diff)
parent060c4ba50162363315f2f50b35cad931e2b75ec9 (diff)
downloadhercules-7a1dbca29bcf6aa9066e5501d3e0ab20d6416383.tar.gz
hercules-7a1dbca29bcf6aa9066e5501d3e0ab20d6416383.tar.bz2
hercules-7a1dbca29bcf6aa9066e5501d3e0ab20d6416383.tar.xz
hercules-7a1dbca29bcf6aa9066e5501d3e0ab20d6416383.zip
Merge pull request #1548 from AtlantisRO/goto_removal
Removed the usage of deprecated command goto from npc scripts (except custom folder)
Diffstat (limited to 'npc/merchants/clothes_dyer.txt')
-rw-r--r--npc/merchants/clothes_dyer.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/merchants/clothes_dyer.txt b/npc/merchants/clothes_dyer.txt
index 431a51cab..4204f600f 100644
--- a/npc/merchants/clothes_dyer.txt
+++ b/npc/merchants/clothes_dyer.txt
@@ -141,7 +141,7 @@ function Dyes;
mes " - White: White Dyestuffs";
break;
case 4:
- goto L_End;
+ callsub L_End;
}
}
@@ -158,7 +158,7 @@ function Dyes {
.@menu$ += "- "+.@DyeName$[getarg(.@i)]+":";
.@menu$ += "- ^777777Cancel^000000";
.@s = select(.@menu$)-1;
- if (.@s == (getargcount()/2)+1) goto L_End;
+ if (.@s == (getargcount()/2)+1) callsub L_End;
mes .n$;
if (.@s == 0) {
mes "I can change your dye to";
@@ -172,7 +172,7 @@ function Dyes {
mes "Your clothes have been dyed "+.@DyeName$[0]+".";
close;
case 2:
- goto L_End;
+ callsub L_End;
}
}
if (!countitem(.@DyeItems[getarg((.@s-1)*2)])) {