diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-08 13:20:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-08 13:20:34 -0300 |
commit | e18fc4a53c15a80bb17b783db3ba7c21da25082f (patch) | |
tree | 509e9adc9eaae1f58a038792d11e069eca12f36f | |
parent | 58ce45ccb6ba1be99f3a9d13b16f78c6aff11317 (diff) | |
download | serverdata-e18fc4a53c15a80bb17b783db3ba7c21da25082f.tar.gz serverdata-e18fc4a53c15a80bb17b783db3ba7c21da25082f.tar.bz2 serverdata-e18fc4a53c15a80bb17b783db3ba7c21da25082f.tar.xz serverdata-e18fc4a53c15a80bb17b783db3ba7c21da25082f.zip |
Last edit to soren-2 before I rewrite core loop
-rw-r--r-- | npc/soren-2/main.txt | 11 |
1 files changed, 8 insertions, 3 deletions
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; |