diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-15 22:55:00 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-15 22:55:00 -0300 |
commit | 13e4ba97fb388f594e3e2c186671a756be13edcc (patch) | |
tree | c4a3f27f4bb65385a12eab03d82b2bc4538c6b6e /npc/functions/util.txt | |
parent | 1c7d81931e2e7b160b1ff14129efd553d7d3c710 (diff) | |
download | serverdata-13e4ba97fb388f594e3e2c186671a756be13edcc.tar.gz serverdata-13e4ba97fb388f594e3e2c186671a756be13edcc.tar.bz2 serverdata-13e4ba97fb388f594e3e2c186671a756be13edcc.tar.xz serverdata-13e4ba97fb388f594e3e2c186671a756be13edcc.zip |
Sketch for testing: Paladin Class Master
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; +} |