summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/util.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index d774cd9d2..0e50e2d30 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -632,11 +632,16 @@ function script mlearn {
.@ap=getarg(2);
.@it=getarg(3);
.@am=getarg(4);
+ .@learn$=l("learn");
if (getskilllv(.@sk) >= .@ff) {
mesc l("You've reached the maximum level for this skill."), 1;
return true;
}
- mesc l("To learn @@ you'll need @@/@@ point(s).", .@sk, .@ap, sk_points());
+ if (getskilllv(.@sk)) {
+ .@ap=1;
+ .@learn$=l("upgrade");
+ }
+ mesc l("To @@ @@ you'll need @@/@@ point(s).", .@learn$, .@sk, .@ap, sk_points());
mesc l("You'll also need to pay a fee of @@x @@", .@am, getitemlink(.@it));
next;
if (askyesno() == ASK_NO)