From c68c337756db2839802ad20d4bd6fd6fa5471db5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 21 Jun 2020 07:56:51 -0300 Subject: Phoenix Rebirth: Record first player to rebirth Monster King: Do not give 641k EXP anymore when someone reborn or Top3 avg >= Lv 100 --- 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 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 { -- cgit v1.2.3-70-g09d2