summaryrefslogtreecommitdiff
path: root/npc/027-1/saves.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/027-1/saves.txt')
-rw-r--r--npc/027-1/saves.txt46
1 files changed, 7 insertions, 39 deletions
diff --git a/npc/027-1/saves.txt b/npc/027-1/saves.txt
index 4cb146f4f..2a9eaa52f 100644
--- a/npc/027-1/saves.txt
+++ b/npc/027-1/saves.txt
@@ -35,46 +35,14 @@
l("Cancel"), 0;
mes "";
- switch (@menuret) {
- case TMW2_FIRSTAID:
- if (!mlearn(TMW2_FIRSTAID, 4, 1, SpellBookPage, 1))
- mesc l("You do not meet all requisites for this skill."), 1;
- break;
- case TMW2_SAGE:
- if (!mlearn(TMW2_SAGE, 5, 1, SpellBookPage, 1))
- mesc l("You do not meet all requisites for this skill."), 1;
- break;
- case HW_MAGICPOWER:
- if (!mlearn(HW_MAGICPOWER, 5, 1, SpellBookPage, 1))
- mesc l("You do not meet all requisites for this skill."), 1;
- break;
- case SM_PROVOKE:
- if (!mlearn(SM_PROVOKE, 1, 1, SpellBookPage, 1))
- mesc l("You do not meet all requisites for this skill."), 1;
- break;
- case EVOL_AREA_PROVOKE:
- if (!mlearn(EVOL_AREA_PROVOKE, 10, 2, SpellBookPage, 1))
- mesc l("You do not meet all requisites for this skill."), 1;
- break;
- case TMW2_HEALING:
- if (!mlearn(TMW2_HEALING, 1, 2, SpellBookPage, 1))
- mesc l("You do not meet all requisites for this skill."), 1;
- break;
- case SN_WINDWALK:
- if (!mlearn(SN_WINDWALK, 3, 3, SpellBookPage, 1))
- mesc l("You do not meet all requisites for this skill."), 1;
- break;
- case CR_TRUST:
- if (!mlearn(CR_TRUST, 2, 3, SpellBookPage, 1))
- mesc l("You do not meet all requisites for this skill."), 1;
- break;
- default:
- if (@menuret)
- Exception("ERROR skill not implemented", RB_DEFAULT|RB_SPEECH);
- else
- closeclientdialog;
- break;
+ // Handle result
+ if (@menuret) {
+ if (!learn_magic(@menuret))
+ mesc l("You do not meet all requisites for this skill."), 1;
+ } else {
+ closeclientdialog;
}
+
} while (@menuret);
close;