diff options
Diffstat (limited to 'npc/017-1/guild.txt')
-rw-r--r-- | npc/017-1/guild.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/017-1/guild.txt b/npc/017-1/guild.txt index f674f3037..f187adaac 100644 --- a/npc/017-1/guild.txt +++ b/npc/017-1/guild.txt @@ -20,15 +20,15 @@ OnTouch: @MAP_NAME$="guild@"+str(.@ID); // Max 4 chars for map name .@INSTID = instance_create("guilds@a"+(.@ID), getcharid(2), IOT_GUILD); - .@instanceMapName$ = instance_attachmap("guilds", .@INSTID, 0, @MAP_NAME$); - // Instance already exists, or something went wrong - // Let's assume it exists - if (.@instanceMapName$ == "") { + // Instance already exists - .@INSTID returns "-4" + if (.@INSTID == -4) { warp @MAP_NAME$, any(34,35), 48; end; } + .@instanceMapName$ = instance_attachmap("guilds", .@INSTID, 0, @MAP_NAME$); + // It'll be self-destroyed eventually... instance_set_timeout(1000000, 1000000, .@INSTID); instance_init(.@INSTID); |