From fc95bd988cbb647e23706535b2cb93ee00f5ae44 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 3 Jul 2018 11:35:49 -0300 Subject: [skip ci] penalty for parties not sharing EXP: Their time is halved. --- npc/functions/util.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/functions/util.txt') 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]; +} -- cgit v1.2.3-70-g09d2