diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/event.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |