summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-02-17 22:20:26 -0300
committerJesusaves <cpntb1@ymail.com>2024-02-17 22:20:26 -0300
commit0a6cba4c68521edc6e33cacd6999ab461f8ad6aa (patch)
treed6ba4e6a0c1a48afe52c3c54c8cf8f34dbbcd792 /npc/functions/util.txt
parent93c68457281c56aa719f6f55885040f75d1f03f3 (diff)
downloadserverdata-0a6cba4c68521edc6e33cacd6999ab461f8ad6aa.tar.gz
serverdata-0a6cba4c68521edc6e33cacd6999ab461f8ad6aa.tar.bz2
serverdata-0a6cba4c68521edc6e33cacd6999ab461f8ad6aa.tar.xz
serverdata-0a6cba4c68521edc6e33cacd6999ab461f8ad6aa.zip
I wasn't lying, ThinkSome - add the necessary functions so I can keep my word.
[01:05] ThinkStorage: Jesusalva when will we be able to take Frostia office...? [01:07] Jesusalva: When we consistently have 20+ players online, I believe Start tracking the average player activity within the weather system.
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 9f1ba71d3..84782e448 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -1222,6 +1222,12 @@ function script TOP3AVERAGELVL {
return ($@hoblvl_value[0]+$@hoblvl_value[1]+$@hoblvl_value[2])/3;
}
+// Returns the average online activity
+// GETUSERSAVG( - )
+function script GETUSERSAVG {
+ return array_avg($@PLAYER_ACTIVITY);
+}
+
// Grants newcomers exp boost. Returns bonus %
// NewcomerEXPDROPUP( - )
function script NewcomerEXPDROPUP {