summaryrefslogtreecommitdiff
path: root/npc/005-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-10 01:48:46 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-10 01:48:46 -0200
commit317872bbb29326bc96ca4fb1db8cb91dd498c0e5 (patch)
tree09ac4f46fbe4d80a9016ade47d92a5c37bec4b3d /npc/005-5
parentb76aa9a8c409754b310a464a6314d7f15abf88df (diff)
downloadserverdata-317872bbb29326bc96ca4fb1db8cb91dd498c0e5.tar.gz
serverdata-317872bbb29326bc96ca4fb1db8cb91dd498c0e5.tar.bz2
serverdata-317872bbb29326bc96ca4fb1db8cb91dd498c0e5.tar.xz
serverdata-317872bbb29326bc96ca4fb1db8cb91dd498c0e5.zip
[skip ci] several bugfixes based on debug
Diffstat (limited to 'npc/005-5')
-rw-r--r--npc/005-5/nylo.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/npc/005-5/nylo.txt b/npc/005-5/nylo.txt
index 701501304..e6233a055 100644
--- a/npc/005-5/nylo.txt
+++ b/npc/005-5/nylo.txt
@@ -198,8 +198,9 @@ L_Main:
// Create the Marggo
.@INSTID = instance_create("MRGX@"+(.@ID), 0, IOT_NONE);
+ .@instanceMapName$ = instance_attachmap("005-1-1", .@INSTID, 0, .@MAP$);
// Instance already exists
- if (.@INSTID < 0) {
+ if (.@instanceMapName$ == "") {
mesn;
mesq l("Wait. I remember you. You ruined my crops a few seconds ago!!");
next;
@@ -208,10 +209,12 @@ L_Main:
close;
}
// It was just created, so begin Marggo Quest
- .@instanceMapName$ = instance_attachmap("005-1-1", .@INSTID, 0, .@MAP$);
instance_set_timeout(300, 300, .@INSTID);
instance_init(.@INSTID);
warp .@MAP$, 29, 20;
+
+ // We'll need instance ID later and @vars are unreliable
+ MARGGO_ID=.@INSTID;
doevent("Nylo#Marggo::OnStart");
closeclientdialog;
close;