From a8e0bcfb682fcdc1fdf1245f479760f510322066 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 16 Jul 2018 11:05:40 -0300 Subject: Raising a skill by sk_lvup will give you 50 Job Points per level --- npc/functions/util.txt | 1 + npc/items/books.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'npc') 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) -- cgit v1.2.3-60-g2f50