summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-30 04:50:29 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-30 04:50:29 -0300
commit5222cd33e5c0ef582659041f5c5eb1b4472f70c9 (patch)
tree80d7f2c65b9c08290e9561b44fb1fd377d51474e
parent4741ca3c1f82b7c589a304bcda798c0970a02f95 (diff)
downloadserverdata-5222cd33e5c0ef582659041f5c5eb1b4472f70c9.tar.gz
serverdata-5222cd33e5c0ef582659041f5c5eb1b4472f70c9.tar.bz2
serverdata-5222cd33e5c0ef582659041f5c5eb1b4472f70c9.tar.xz
serverdata-5222cd33e5c0ef582659041f5c5eb1b4472f70c9.zip
Rules for Research Points
-rw-r--r--npc/config/magic.txt2
-rw-r--r--npc/functions/util.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index ddcbd24e8..8d0999ef6 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -299,7 +299,7 @@ OnInit:
/* RegisterMagic(MSP, Skill, MaxLv, Item, Amount,
Class, Cost, {PreReq, PostReq}) */
-
+ // Research Points (RP) range: 0~72 [MAX: 72]
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 9c68d83af..10073c715 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -763,7 +763,7 @@ function script learn_magic {
.@it=$@MSK_ITEM[.@ski];
.@am=$@MSK_AMOUNT[.@ski];
.@msp=$@MSK_MSPCOST[.@ski];
- .@ap=getskilllv(.@ski)*$@MSK_COST[.@ski];
+ .@ap=$@MSK_COST[.@ski]**((getskilllv(.@ski)+1)/2)-1+getskilllv(.@ski);
// Pre-requisite check
if (.@pre) {