From a35275be3aefb4d2f4c1b78cfd238b704f867168 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 9 Mar 2019 23:24:59 -0300 Subject: Add a fail-safe to Peter (not related to Delta) --- npc/002-1/peter.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'npc/002-1') 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; -- cgit v1.2.3-60-g2f50