diff options
-rw-r--r-- | npc/config/magic.txt | 2 | ||||
-rw-r--r-- | npc/functions/util.txt | 2 |
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) { |