diff options
Diffstat (limited to 'npc/003-0/tanker.txt')
-rw-r--r-- | npc/003-0/tanker.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/npc/003-0/tanker.txt b/npc/003-0/tanker.txt index a7776fb1f..b1d79bb53 100644 --- a/npc/003-0/tanker.txt +++ b/npc/003-0/tanker.txt @@ -59,6 +59,7 @@ L_Member: //rif(sk_intcost(CR_AUTOGUARD) && sk_canlvup(CR_AUTOGUARD), l("Improve Guard")), rif(sk_intcost(CR_DEFENDER) && sk_canlvup(CR_DEFENDER), l("Improve Arrow Shield")), rif(sk_intcost(SM_RECOVERY) && sk_canlvup(SM_RECOVERY), l("Improve Standing HP Regen")), + l("Leave Subclass"), l("Nothing at the moment."); mes ""; switch (@menu) { @@ -160,6 +161,31 @@ L_Member: next; } break; + case 5: + // 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 CR_AUTOGUARD, 0, 0; + skill CR_DEFENDER, 0, 0; + skill SM_RECOVERY, 0, 0; + MAGIC_SUBCLASS=MAGIC_SUBCLASS^CL_TANKER; + mesc l("You abandoned the TANKER 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; } |