summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-21 07:56:51 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-21 07:56:51 -0300
commitc68c337756db2839802ad20d4bd6fd6fa5471db5 (patch)
treed789004170e80a8f3f0491747e7bb35ce8863689 /npc/functions/util.txt
parent64b9152d91c2f80a9c2396566d9bd6289c1e2a9c (diff)
downloadserverdata-c68c337756db2839802ad20d4bd6fd6fa5471db5.tar.gz
serverdata-c68c337756db2839802ad20d4bd6fd6fa5471db5.tar.bz2
serverdata-c68c337756db2839802ad20d4bd6fd6fa5471db5.tar.xz
serverdata-c68c337756db2839802ad20d4bd6fd6fa5471db5.zip
Phoenix Rebirth: Record first player to rebirth
Monster King: Do not give 641k EXP anymore when someone reborn or Top3 avg >= Lv 100
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 75f1faf64..45aa5fb7a 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -989,6 +989,12 @@ function script MapToLoc {
return .@locs$[.@lx];
}
+// Returns TOP 3 Average Level
+// TOP3AVERAGELVL( - )
+function script TOP3AVERAGELVL {
+ return ($@hoblvl_value[0]+$@hoblvl_value[1]+$@hoblvl_value[2])/3;
+}
+
// Grants newcomers exp boost. Returns bonus %
// NewcomerEXPDROPUP( - )
function script NewcomerEXPDROPUP {