From 2515af4bad801f6db1b44309c3a558607fe92b2d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Jun 2018 20:11:01 -0300 Subject: Modify soren-2 spawn/item cycles to consider nÂș of players around. Each player gives you 10 extra seconds to deal with mobs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/soren-2/main.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/npc/soren-2/main.txt b/npc/soren-2/main.txt index 404cb66b5..adb3fd4e9 100644 --- a/npc/soren-2/main.txt +++ b/npc/soren-2/main.txt @@ -169,10 +169,11 @@ OnSanctum: // Random 20~40 seconds before next cycle. (Minimum 100~200 seconds, or 1m40s~3m20s) // If you're past minimum, it'll be a little slower to don't affect other players too much. + // These values are for single player. If there are more users, the timer will tick for longer. if (@sorensanctum < 5) - addtimer(rand(20000, 40000), "#SorenSanctum::OnSanctum"); + addtimer(rand(10000, 30000)+getusers(1)*10000, "#SorenSanctum::OnSanctum"); else - addtimer(rand(30000, 40000), "#SorenSanctum::OnSanctum"); + addtimer(rand(20000, 30000)+getusers(1)*10000, "#SorenSanctum::OnSanctum"); end; -- cgit v1.2.3-60-g2f50