From 64ff7d857bbcff84a6d755478b4c8b6d63790541 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 4 Nov 2021 20:54:02 -0300 Subject: This draft formula shall improve Thanksgiving Aeros Events pacing --- npc/functions/event.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'npc/functions') diff --git a/npc/functions/event.txt b/npc/functions/event.txt index ea3af169e..6d73389d4 100644 --- a/npc/functions/event.txt +++ b/npc/functions/event.txt @@ -368,6 +368,7 @@ OnInit: .users=getusers(1); .score=0; .event=0; + .quota=300; OnTimer90000: // Abort event and reset score if (.event && .event < gettimetick(2)) { @@ -391,9 +392,10 @@ OnTimer90000: end; .users=getusers(1); .score+=.users; + .quota = limit(300, 400 - (.users * 20), 400); // Do event (lasts 45 minutes) - if (!.event && !$@MK_SCENE && !$@GM_EVENT && .score > 300 && (.users >= 3 || $@GM_OVERRIDE)) { + if (!.event && !$@MK_SCENE && !$@GM_EVENT && .score > .quota && (.users >= 3 || $@GM_OVERRIDE)) { /* Reserve Aeros */ $@MK_SCENE=MK_LOCKED; /* Setup the event */ -- cgit v1.2.3-70-g09d2