diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-15 23:44:39 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-15 23:44:39 -0200 |
commit | 78cb399f0f60341882f28cb7c783c353e96231ef (patch) | |
tree | 67411cc9b093a5b1db7db37a42641f9a6bedbc29 /npc/functions/instances.txt | |
parent | 2a8037f06cfb534176b51df66db48ec04a899fc8 (diff) | |
download | serverdata-78cb399f0f60341882f28cb7c783c353e96231ef.tar.gz serverdata-78cb399f0f60341882f28cb7c783c353e96231ef.tar.bz2 serverdata-78cb399f0f60341882f28cb7c783c353e96231ef.tar.xz serverdata-78cb399f0f60341882f28cb7c783c353e96231ef.zip |
Automatically reboot instances if they die, fixing the need of server restart every 10 days
Diffstat (limited to 'npc/functions/instances.txt')
-rw-r--r-- | npc/functions/instances.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/instances.txt b/npc/functions/instances.txt index 6f125bbc6..23f63b130 100644 --- a/npc/functions/instances.txt +++ b/npc/functions/instances.txt @@ -59,4 +59,10 @@ OnRestart: end; +OnMinute18: +OnMinute47: + if (!isinstance(.HURNS_INSTID) && !isinstance(.NIVAL_INSTID)) + donpcevent("#GlobalInstanceCore::OnRestart"); + end; } + |