diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-19 21:09:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-19 21:09:38 +0300 |
commit | e1ca11a950b7553cbafff6902a26c6a4023f9df9 (patch) | |
tree | 1c78eeb01157f7df66b42130716b1a1928f93911 /npc/001-2-28/plush.txt | |
parent | 1c644eea65083558fc029345a8b4d2b81d0625e1 (diff) | |
download | serverdata-e1ca11a950b7553cbafff6902a26c6a4023f9df9.tar.gz serverdata-e1ca11a950b7553cbafff6902a26c6a4023f9df9.tar.bz2 serverdata-e1ca11a950b7553cbafff6902a26c6a4023f9df9.tar.xz serverdata-e1ca11a950b7553cbafff6902a26c6a4023f9df9.zip |
Replace select with yes/no to askyesno function.
Diffstat (limited to 'npc/001-2-28/plush.txt')
-rw-r--r-- | npc/001-2-28/plush.txt | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/npc/001-2-28/plush.txt b/npc/001-2-28/plush.txt index 8480fc1b..62199467 100644 --- a/npc/001-2-28/plush.txt +++ b/npc/001-2-28/plush.txt @@ -65,16 +65,14 @@ l("This will remain your respawn point until set elsewhere."), l("Is that okay?"); - switch (select (menuaction(l("Yes")), - menuaction(l("No")))) + if (askyesno() == ASK_YES) { - case 1: - accepted_room (.@price); - break; - case 2: - speech 5, - l("Come back later if you changed your mind!"); - break; + accepted_room (.@price); + } + else + { + speech 5, + l("Come back later if you changed your mind!"); } return; @@ -97,13 +95,9 @@ l("If you are registered somewhere else you will loose that reservation."), l("Do you still want to lodge here?"); - switch (select (menuaction(l("Yes")), menuaction(l("No")))) + if (askyesno() == ASK_YES) { - case 1: - register_room; - break; - case 2: - break; + register_room; } } return; |