summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;