summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-30 14:41:00 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-30 14:41:00 -0300
commit9be3066c544b8e4453d49de62e2c14f41a3fa3ff (patch)
treebc693a6f9a0f1b507c089cdb8f105dffc846b15b
parentea1851eeb7af99eaa244ef70004b4989819c3ad3 (diff)
downloadserverdata-9be3066c544b8e4453d49de62e2c14f41a3fa3ff.tar.gz
serverdata-9be3066c544b8e4453d49de62e2c14f41a3fa3ff.tar.bz2
serverdata-9be3066c544b8e4453d49de62e2c14f41a3fa3ff.tar.xz
serverdata-9be3066c544b8e4453d49de62e2c14f41a3fa3ff.zip
Inital rule for MSP
Seems like a hurdle, though.
-rw-r--r--npc/functions/util.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index facabc0a3..a7606ceed 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -783,7 +783,14 @@ function script learn_magic {
// Skill level check
if (getskilllv(.@ski)) {
- .@msp=50; // FIXME NYI
+ // 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");
} else if (.@msp <= 1) {
// 1 MSP skills take no Research Points