summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-12-05 01:36:19 -0300
committerJesusaves <cpntb1@ymail.com>2023-12-05 01:36:19 -0300
commite51ff8eb6af4d3b00070fb1cfc5503715ef6c9f2 (patch)
tree2212cc0e64846ff6efa1bce75a493c47d9914359
parentd4cfd2b6e8b49c4c3af2626fa067c480ec7b2896 (diff)
downloadserverdata-e51ff8eb6af4d3b00070fb1cfc5503715ef6c9f2.tar.gz
serverdata-e51ff8eb6af4d3b00070fb1cfc5503715ef6c9f2.tar.bz2
serverdata-e51ff8eb6af4d3b00070fb1cfc5503715ef6c9f2.tar.xz
serverdata-e51ff8eb6af4d3b00070fb1cfc5503715ef6c9f2.zip
Make Global Instance Core slightly less vulnerable to char-server dc.
-rw-r--r--npc/functions/instances.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/instances.txt b/npc/functions/instances.txt
index ed11167d5..aa679cb57 100644
--- a/npc/functions/instances.txt
+++ b/npc/functions/instances.txt
@@ -10,6 +10,12 @@ OnInit:
end;
OnInterIfInit:
+ // It shouldn't be harmful if it runs a few times too many
+ if ($@HHMD_INSTID2 && .HURNS_INSTID && isinstance(.NIVAL_INSTID) && isinstance($@HHMD_INSTID2)) {
+ consolebug("Refusing to recreate instances on char server restart! Additionally: Refusing to restart Heroes Hold!");
+ end;
+ }
+ // Otherwise, really reload instances
OnInstRestart:
/* Nard's Ship */
// Candor Instance (we do all tests for debugmes here)