summaryrefslogtreecommitdiff
path: root/npc/002-1/peter.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-09 23:24:59 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-09 23:24:59 -0300
commita35275be3aefb4d2f4c1b78cfd238b704f867168 (patch)
tree3e8e1ec9d7c2e4e9d244c39427f804a7680ce43f /npc/002-1/peter.txt
parent4c3f30718ef7f9aa5b994931263746c6ea54a0eb (diff)
downloadserverdata-a35275be3aefb4d2f4c1b78cfd238b704f867168.tar.gz
serverdata-a35275be3aefb4d2f4c1b78cfd238b704f867168.tar.bz2
serverdata-a35275be3aefb4d2f4c1b78cfd238b704f867168.tar.xz
serverdata-a35275be3aefb4d2f4c1b78cfd238b704f867168.zip
Add a fail-safe to Peter (not related to Delta)
Diffstat (limited to 'npc/002-1/peter.txt')
-rw-r--r--npc/002-1/peter.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/npc/002-1/peter.txt b/npc/002-1/peter.txt
index 41f27e260..ac41b68bb 100644
--- a/npc/002-1/peter.txt
+++ b/npc/002-1/peter.txt
@@ -175,6 +175,17 @@ OnStartOutside:
@MAP_NAME$="nard@"+str(.@ID); // Max 4 chars for map name
.@INSTID = instance_create("002-2@a"+(.@ID), getcharid(3), IOT_CHAR);
.@instanceMapName$ = instance_attachmap("002-2", .@INSTID, 0, @MAP_NAME$);
+
+ // Instance already exists, or something went wrong
+ if (.@instanceMapName$ == "") {
+ mesn;
+ mesq l("Actually, you just took a bounty, right?");
+ next;
+ mesn;
+ mesq l("Why don't you take a break? Breath in some fresh air. The basement is pretty damp.");
+ close;
+ }
+
setq2 ShipQuests_Peter, 0;
setq3 ShipQuests_Peter, .@INSTID;