summaryrefslogtreecommitdiff
path: root/npc/soren-2/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-08 13:20:34 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-08 13:20:34 -0300
commite18fc4a53c15a80bb17b783db3ba7c21da25082f (patch)
tree509e9adc9eaae1f58a038792d11e069eca12f36f /npc/soren-2/main.txt
parent58ce45ccb6ba1be99f3a9d13b16f78c6aff11317 (diff)
downloadserverdata-e18fc4a53c15a80bb17b783db3ba7c21da25082f.tar.gz
serverdata-e18fc4a53c15a80bb17b783db3ba7c21da25082f.tar.bz2
serverdata-e18fc4a53c15a80bb17b783db3ba7c21da25082f.tar.xz
serverdata-e18fc4a53c15a80bb17b783db3ba7c21da25082f.zip
Last edit to soren-2 before I rewrite core loop
Diffstat (limited to 'npc/soren-2/main.txt')
-rw-r--r--npc/soren-2/main.txt11
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;