diff options
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r-- | npc/functions/util.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 37764ed1b..f73d447de 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -293,4 +293,12 @@ function script sk_lvup { return; } +// Returns the intelligence cost based on skill level +// sk_intcost( sk ) +function script sk_intcost { + .@cost=(getskilllv(getarg(0))+1)*17; + if (readparam(bInt) >= .@cost) + return 1; + return 0; +} |