summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-16 14:35:03 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-16 14:35:03 -0200
commite9bb7113696024202aa6c8ae8005aef6b3c27516 (patch)
tree5e7c3ade8a5e58b0190c1695d1790c758d9acf6a
parent43da5f6b065a4f5157b0f61c9ddef436f7264c22 (diff)
downloadserverdata-e9bb7113696024202aa6c8ae8005aef6b3c27516.tar.gz
serverdata-e9bb7113696024202aa6c8ae8005aef6b3c27516.tar.bz2
serverdata-e9bb7113696024202aa6c8ae8005aef6b3c27516.tar.xz
serverdata-e9bb7113696024202aa6c8ae8005aef6b3c27516.zip
I'm running out of options for global instance script file.
-rw-r--r--npc/functions/instances.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/functions/instances.txt b/npc/functions/instances.txt
index f42817588..40a48a0d1 100644
--- a/npc/functions/instances.txt
+++ b/npc/functions/instances.txt
@@ -5,6 +5,9 @@
// Controls global instances and reset them when they break
- script #GlobalInstanceCore NPC_HIDDEN,{
+OnInit:
+ .CANDOR_INSTID=-1;
+ end;
OnInterIfInit:
OnInstRestart:
@@ -14,7 +17,7 @@ OnInstRestart:
if (.CANDOR_INSTID < 0) {
debugmes "Error: No instance ID";
} else {
- debugmes("created new instance id: %s", str(.CANDOR_INSTID));
+ //debugmes("created new instance id: %s", str(.CANDOR_INSTID));
.CANDOR1$=instance_attachmap("002-1", .CANDOR_INSTID, 0, "002-1@Candor");
if (.CANDOR1$ == "") debugmes "Error: Map 002-1 CANDY failed";