summaryrefslogtreecommitdiff
path: root/npc/017-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-16 00:43:52 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-16 00:43:52 -0300
commitc80e4d95db756c941ccc8d0ea3813971cc0672ca (patch)
treecba40d333edf55efe2e266b4167f1cd921a02065 /npc/017-1
parent1459cd08f144984695e249a086d9d4f0803e3376 (diff)
downloadserverdata-c80e4d95db756c941ccc8d0ea3813971cc0672ca.tar.gz
serverdata-c80e4d95db756c941ccc8d0ea3813971cc0672ca.tar.bz2
serverdata-c80e4d95db756c941ccc8d0ea3813971cc0672ca.tar.xz
serverdata-c80e4d95db756c941ccc8d0ea3813971cc0672ca.zip
Add several stuff and several bugfixes (specially hidden errors).
Most importantly, apartment system, a branch from Real Estate System.
Diffstat (limited to 'npc/017-1')
-rw-r--r--npc/017-1/guild.txt8
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);