summaryrefslogtreecommitdiff
path: root/npc/functions/instances.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-02 10:55:27 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-02 10:55:27 -0300
commit46bbdfe15230da4d8abe41faf04c32fb42c3ad84 (patch)
tree55f277983d2f547fce985956daab75b5533c382f /npc/functions/instances.txt
parent9a348a1fadefb5481f08b4891091fdabd6abc4ec (diff)
downloadserverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.gz
serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.bz2
serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.tar.xz
serverdata-46bbdfe15230da4d8abe41faf04c32fb42c3ad84.zip
Use Exception() in some places
Diffstat (limited to 'npc/functions/instances.txt')
-rw-r--r--npc/functions/instances.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/instances.txt b/npc/functions/instances.txt
index ee9c3081e..86d08d0a5 100644
--- a/npc/functions/instances.txt
+++ b/npc/functions/instances.txt
@@ -15,14 +15,14 @@ OnInstRestart:
// Candor Instance (we do all tests for debugmes here)
.CANDOR_INSTID = instance_create("002-1@CandorInst", 0, IOT_NONE);
if (.CANDOR_INSTID < 0) {
- debugmes "Error: No instance ID";
+ Exception("CANDY Instance ID failed", RB_DEBUGMES|RB_IRCBROADCAST);
} else {
//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";
+ if (.CANDOR1$ == "") Exception("Map 002-1 CANDY failed", RB_DEBUGMES|RB_IRCBROADCAST);
.CANDOR3$=instance_attachmap("002-3", .CANDOR_INSTID, 0, "002-3@Candor");
- if (.CANDOR3$ == "") debugmes "Error: Map 002-3 CANDY failed";
+ if (.CANDOR3$ == "") Exception("Map 002-3 CANDY failed", RB_DEBUGMES|RB_IRCBROADCAST);
debugmes "Nard's Ship in Candor instance is set.";
instance_set_timeout(1000000, 1000000, .CANDOR_INSTID);