diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-05-29 09:19:11 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-05-29 09:51:13 -0300 |
commit | a05e17c4ae6d461317f7617de3155ebe54aba08d (patch) | |
tree | 6a73a758cb60ad1b52f118b6e7f511b98430940c /npc/003-8 | |
parent | c09a3533f1d856ae3b3945902409bd0b5a537c5d (diff) | |
download | serverdata-a05e17c4ae6d461317f7617de3155ebe54aba08d.tar.gz serverdata-a05e17c4ae6d461317f7617de3155ebe54aba08d.tar.bz2 serverdata-a05e17c4ae6d461317f7617de3155ebe54aba08d.tar.xz serverdata-a05e17c4ae6d461317f7617de3155ebe54aba08d.zip |
Get rid of a loop
Diffstat (limited to 'npc/003-8')
-rw-r--r-- | npc/003-8/jhedia.txt | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/npc/003-8/jhedia.txt b/npc/003-8/jhedia.txt index ff17307b2..03864ea6c 100644 --- a/npc/003-8/jhedia.txt +++ b/npc/003-8/jhedia.txt @@ -41,22 +41,19 @@ L_Iron: speech S_FIRST_BLANK_LINE | S_LAST_NEXT, l("Hello! Do you want to craft @@? For that I will need 7 @@, 11 @@ and @@ gp.", getitemlink(.ItemCreate),getitemlink(.Item1),getitemlink(.Item2),.GP); - do - { - //.@karim = getq(Karim_Quest); - select - l("Yes"), - menuaction(l("Quit")); + //.@karim = getq(Karim_Quest); + select + l("Yes"), + menuaction(l("Quit")); - switch (@menu) - { - case 1: - iron_create; - break; - } - } while (@menu != 2); - - goto L_Close; + switch (@menu) { + case 1: + iron_create; + break; + default: + goto L_Close; + break; + } L_Close: closedialog; |