summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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