diff options
Diffstat (limited to 'npc/003-0/trickmaster.txt')
-rw-r--r-- | npc/003-0/trickmaster.txt | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/npc/003-0/trickmaster.txt b/npc/003-0/trickmaster.txt index 538fbce0e..b9f61ae60 100644 --- a/npc/003-0/trickmaster.txt +++ b/npc/003-0/trickmaster.txt @@ -21,23 +21,13 @@ setskin ""; switch (@menuret) { + case SA_FREECAST: + if (!mlearn(SA_FREECAST, 1, 1, Lockpicks, 1)) + mesc l("You do not meet all requisites for this skill."), 1; + break; case TF_BACKSLIDING: - if (getskilllv(TF_BACKSLIDING) >= 1) { - mesc l("You've reached the maximum level for this skill."), 1; - break; - } - mesc l("To learn backsliding you'll need @@/@@ point(s).", 1, sk_points()); - mesc l("You'll also need the Trickmaster fee, 1x @@", getitemlink(Lockpicks)); - next; - if (askyesno() == ASK_YES) { - if (!sk_canlvup(Lockpicks, 1)) { - mesc l("Requisites not met"); - break; - } - delitem Lockpicks, 1; - sk_lvup(TF_BACKSLIDING, 1); - mesc l("Success!"); - } + if (!mlearn(TF_BACKSLIDING, 1, 1, Lockpicks, 1)) + mesc l("You do not meet all requisites for this skill."), 1; break; default: if (@menuret) |