From c80e4d95db756c941ccc8d0ea3813971cc0672ca Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 Mar 2019 00:43:52 -0300 Subject: Add several stuff and several bugfixes (specially hidden errors). Most importantly, apartment system, a branch from Real Estate System. --- npc/017-1/guild.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/017-1') 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); -- cgit v1.2.3-60-g2f50