From 9008ebd9468d00a4b180de77493b303a53a8e461 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 27 Jul 2019 18:52:37 -0300 Subject: Make a redundant redundancy a simple redudancy. --- npc/015-2/ben.txt | 61 ++++++++++++++++++++++++++----------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) (limited to 'npc/015-2/ben.txt') 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; -- cgit v1.2.3-70-g09d2