summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-03 11:35:49 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-03 11:35:49 -0300
commitfc95bd988cbb647e23706535b2cb93ee00f5ae44 (patch)
tree6dac9abb2c7396859f5e35b8cef3b0f132511f31 /npc/functions
parentb33c033cee0b5e74e36471c284cb2d580e679929 (diff)
downloadserverdata-fc95bd988cbb647e23706535b2cb93ee00f5ae44.tar.gz
serverdata-fc95bd988cbb647e23706535b2cb93ee00f5ae44.tar.bz2
serverdata-fc95bd988cbb647e23706535b2cb93ee00f5ae44.tar.xz
serverdata-fc95bd988cbb647e23706535b2cb93ee00f5ae44.zip
[skip ci] penalty for parties not sharing EXP: Their time is halved.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/util.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 48937d157..9e2ef7700 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -233,4 +233,10 @@ function script reachable {
return 0;
}
+// Determines if party exp sharing is enabled
+// ( Party ID )
+function script party_expon {
+ .@nb = query_sql("SELECT exp FROM `party` WHERE party_id="+escape_sql(getarg(0))+" LIMIT 2", .@value);
+ return .@value[0];
+}