summaryrefslogtreecommitdiff
path: root/npc/003-0/paladin.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-0/paladin.txt')
-rw-r--r--npc/003-0/paladin.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/npc/003-0/paladin.txt b/npc/003-0/paladin.txt
index 2a46f6c00..f69f05f63 100644
--- a/npc/003-0/paladin.txt
+++ b/npc/003-0/paladin.txt
@@ -61,6 +61,7 @@ L_Member:
//rif(sk_intcost(MER_INCAGI) && sk_canlvup(MER_INCAGI), l("Improve Increase Agility")),
//rif(sk_intcost(PR_REDEMPTIO) && !getskilllv(PR_REDEMPTIO), l("Learn Redemption")),
rif(sk_intcost(CR_TRUST) && !getskilllv(CR_TRUST), l("Learn Last Standing Man")),
+ l("Leave Subclass"),
l("Nothing at the moment.");
mes "";
switch (@menu) {
@@ -159,6 +160,32 @@ L_Member:
next;
}
break;
+ case 6:
+ // All skills related may include the basic class skills if they're related.
+ mesc l("WARNING: If you leave the subclass, you'll lose all skills related to it!"), 1;
+ mesc l("This cannot be undone. Are you sure?"), 1;
+ mes "";
+ if (askyesno() == ASK_YES) {
+ mes "";
+ if (validatepin()) {
+ skill CR_TRUST, 0, 0;
+ skill AL_ANGELUS, 0, 0;
+ skill PR_REDEMPTIO, 0, 0;
+ skill MER_INCAGI, 0, 0;
+ skill SM_BASH, 0, 0;
+ MAGIC_SUBCLASS=MAGIC_SUBCLASS^CL_PALADIN;
+ mesc l("You abandoned the PALADIN class!"), 1;
+ close;
+ } else {
+ mesc l("Failed to validate pin. Aborting.");
+ next;
+ }
+ } else {
+ mes "";
+ mesc l("Operation aborted. Phew!");
+ next;
+ }
+ break;
default:
goto L_Close;
}