summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-27 18:52:37 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-27 18:52:37 -0300
commit9008ebd9468d00a4b180de77493b303a53a8e461 (patch)
tree1881e0de30c235e3e6b090e8debd0d52a5cbae12
parent4a552b833e47ce0b7a5115f653c931815aa15381 (diff)
downloadserverdata-9008ebd9468d00a4b180de77493b303a53a8e461.tar.gz
serverdata-9008ebd9468d00a4b180de77493b303a53a8e461.tar.bz2
serverdata-9008ebd9468d00a4b180de77493b303a53a8e461.tar.xz
serverdata-9008ebd9468d00a4b180de77493b303a53a8e461.zip
Make a redundant redundancy a simple redudancy.
-rw-r--r--npc/015-2/ben.txt61
1 files changed, 29 insertions, 32 deletions
diff --git a/npc/015-2/ben.txt b/npc/015-2/ben.txt
index bc383eebd..99d2776ff 100644
--- a/npc/015-2/ben.txt
+++ b/npc/015-2/ben.txt
@@ -84,39 +84,36 @@ L_Rank3:
// Allow to level up thief skills
L_Menu:
- do
- {
- next;
- mesn;
- mesq l("Do you want me to teach you how to improve an existing skill with MAGIC? There are no better mages than Mouboos!");
- mesc l("You also need @@/@@ Mob Points to improve thief skills.", format_number(Mobpt), 1000);
- if (Mobpt < 1000)
+ next;
+ mesn;
+ mesq l("Do you want me to teach you how to improve an existing skill with MAGIC? There are no better mages than Mouboos!");
+ mesc l("You also need @@/@@ Mob Points to improve thief skills.", format_number(Mobpt), 1000);
+ if (Mobpt < 1000)
+ close;
+ next;
+ select
+ rif(getskilllv(TF_STEAL), l("Improve Stealing to level ")+getskilllv(TF_STEAL)+1),
+ rif(getskilllv(ALL_INCCARRY), l("Improve Max Weight to level ")+getskilllv(ALL_INCCARRY)+1),
+ l("None at the moment.");
+ mes "";
+ // BlueCoral, {CrocClaw, OceanCrocClaw: Empty Box}, PlushroomBox
+ switch (@menu) {
+ case 1:
+ if (!mlearn(TF_STEAL, 10, 1, BlueCoral, 6*getskilllv(TF_STEAL)))
+ mesc l("You do not meet all requisites for this skill."), 1;
+ else
+ Mobpt-=1000;
+ break;
+ case 2:
+ if (!mlearn(ALL_INCCARRY, 10, 1, BlueCoral, 9*getskilllv(ALL_INCCARRY)))
+ mesc l("You do not meet all requisites for this skill."), 1;
+ else
+ Mobpt-=1000;
+ break;
+ case 3:
close;
- next;
- select
- rif(getskilllv(TF_STEAL), l("Improve Stealing to level ")+getskilllv(TF_STEAL)+1),
- rif(getskilllv(ALL_INCCARRY), l("Improve Max Weight to level ")+getskilllv(ALL_INCCARRY)+1),
- l("None at the moment.");
- mes "";
- // BlueCoral, {CrocClaw, OceanCrocClaw: Empty Box}, PlushroomBox
- switch (@menu) {
- case 1:
- if (!mlearn(TF_STEAL, 10, 1, BlueCoral, 6*getskilllv(TF_STEAL)))
- mesc l("You do not meet all requisites for this skill."), 1;
- else
- Mobpt-=1000;
- break;
- case 2:
- if (!mlearn(ALL_INCCARRY, 10, 1, BlueCoral, 9*getskilllv(ALL_INCCARRY)))
- mesc l("You do not meet all requisites for this skill."), 1;
- else
- Mobpt-=1000;
- break;
- case 3:
- close;
- }
- } while (true);
- close;
+ }
+ goto L_Menu;
OnInit:
.sex = G_MALE;