From e18fc4a53c15a80bb17b783db3ba7c21da25082f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Jun 2018 13:20:34 -0300 Subject: Last edit to soren-2 before I rewrite core loop --- npc/soren-2/main.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'npc/soren-2') diff --git a/npc/soren-2/main.txt b/npc/soren-2/main.txt index 23a0d5ed1..cbae53d7a 100644 --- a/npc/soren-2/main.txt +++ b/npc/soren-2/main.txt @@ -43,8 +43,9 @@ OnTouch: end; OnCheck: - if (!mobcount(.map$, "#SorenSanctum::OnCheck")) - setnpcdisplay .name$, NPC_SUMMONING_CIRC; + // This doesn't works (or didn't used to), maybe because the way it's called + if (!mobcount("soren-2", "#SorenSanctum::OnCheck")) + setnpcdisplay "#SorenSanctum", NPC_SUMMONING_CIRC; end; OnSanctum: @@ -153,7 +154,11 @@ OnSanctum: } // Random 20~40 seconds before next cycle. (Minimum 100~200 seconds, or 1m40s~3m20s) - addtimer(rand(20000, 40000), "#SorenSanctum::OnSanctum"); + // If you're past minimum, it'll be a little slower to don't affect other players too much. + if (@sorensanctum < 5) + addtimer(rand(20000, 40000), "#SorenSanctum::OnSanctum"); + else + addtimer(rand(30000, 40000), "#SorenSanctum::OnSanctum"); end; -- cgit v1.2.3-70-g09d2