From 78cb399f0f60341882f28cb7c783c353e96231ef Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 15 Dec 2018 23:44:39 -0200 Subject: Automatically reboot instances if they die, fixing the need of server restart every 10 days --- npc/functions/instances.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/functions') 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; } + -- cgit v1.2.3-60-g2f50