summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/util.txt1
-rw-r--r--npc/items/books.txt2
2 files changed, 2 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index f73d447de..a924286ed 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -289,6 +289,7 @@ function script sk_canlvup {
// sk_lvup( sk )
function script sk_lvup {
.@lvl=getskilllv(getarg(0));
+ getexp 0, 50*(.@lvl+1);
addtoskill(getarg(0),.@lvl+1,0);
return;
}
diff --git a/npc/items/books.txt b/npc/items/books.txt
index f1ff08dc3..5be057999 100644
--- a/npc/items/books.txt
+++ b/npc/items/books.txt
@@ -191,7 +191,7 @@ OnInit:
if (getskilllv(TMW2_PARUM))
mesc l("Parum - @sk-parum");
next;
- mesn l("Current Magic Control");
+ mesn l("Current Magic Control (@@)", "abizit");
.@val=MAGIC_EXP+rand(-MAGIC_LVL*5, MAGIC_LVL*5);
.@base=(MAGIC_LVL**3);
if (.@val > .@base*5)