summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/util.txt')
-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];
+}