summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-15 22:55:00 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-15 22:55:00 -0300
commit13e4ba97fb388f594e3e2c186671a756be13edcc (patch)
treec4a3f27f4bb65385a12eab03d82b2bc4538c6b6e /npc/functions/util.txt
parent1c7d81931e2e7b160b1ff14129efd553d7d3c710 (diff)
downloadserverdata-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.txt8
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;
+}