summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-30 14:44:04 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-30 14:44:04 -0300
commit34e468b8eb24f2be7ee281747eec5ead818747b3 (patch)
tree701b430d2ae9e405ba46f2b36f03a654c2cb69ca /npc
parent9be3066c544b8e4453d49de62e2c14f41a3fa3ff (diff)
downloadserverdata-34e468b8eb24f2be7ee281747eec5ead818747b3.tar.gz
serverdata-34e468b8eb24f2be7ee281747eec5ead818747b3.tar.bz2
serverdata-34e468b8eb24f2be7ee281747eec5ead818747b3.tar.xz
serverdata-34e468b8eb24f2be7ee281747eec5ead818747b3.zip
New Magic Skill Points System
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/util.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index a7606ceed..e18a56ac5 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -783,15 +783,12 @@ function script learn_magic {
// Skill level check
if (getskilllv(.@ski)) {
- // MSP is free for: 1, 3, 5, 7, 9
- // MSP discount if: 2, 4
- // MSP incides upon: 6, 8, 10
- if (getskilllv(.@ski) % 2 != 0)
- .@msp=0;
- else if (getskilllv(.@ski) > 5)
- .@msp=1;
- // else: 100% MSP
.@learn$=l("Upgrading");
+ // New MSP ruleset
+ if (getskilllv(.@ski) > 5)
+ .@msp = 1;
+ else
+ .@msp = 0;
} else if (.@msp <= 1) {
// 1 MSP skills take no Research Points
.@ap=0;