From bb80326d58849bc55e4f6cf87631587bfc122f41 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Jul 2019 20:54:11 -0300 Subject: Improving an already learned skill now always cost 1 AP. Text will also change accordingly. --- npc/functions/util.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'npc/functions/util.txt') 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) -- cgit v1.2.3-60-g2f50