diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-22 20:54:11 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-22 20:54:11 -0300 |
commit | bb80326d58849bc55e4f6cf87631587bfc122f41 (patch) | |
tree | aa4edd5d6331bf50281223e82020413f10b56d1f /npc/functions | |
parent | 165e781e5e9dc30f2e699efa2ec1589d47834f79 (diff) | |
download | serverdata-bb80326d58849bc55e4f6cf87631587bfc122f41.tar.gz serverdata-bb80326d58849bc55e4f6cf87631587bfc122f41.tar.bz2 serverdata-bb80326d58849bc55e4f6cf87631587bfc122f41.tar.xz serverdata-bb80326d58849bc55e4f6cf87631587bfc122f41.zip |
Improving an already learned skill now always cost 1 AP.
Text will also change accordingly.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/util.txt | 7 |
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) |