summaryrefslogtreecommitdiff
path: root/npc/033-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 23:43:53 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 23:43:53 -0300
commitc72bff04727cc001b6162f2886ad1952097d5ac1 (patch)
tree20fdf05b22ab6b990757b13d374eaa9090b2b327 /npc/033-1
parenta7c45a192268da2601cef47a4cdba987ae2327ca (diff)
downloadserverdata-c72bff04727cc001b6162f2886ad1952097d5ac1.tar.gz
serverdata-c72bff04727cc001b6162f2886ad1952097d5ac1.tar.bz2
serverdata-c72bff04727cc001b6162f2886ad1952097d5ac1.tar.xz
serverdata-c72bff04727cc001b6162f2886ad1952097d5ac1.zip
Remove some spurious maps
Diffstat (limited to 'npc/033-1')
-rw-r--r--npc/033-1/_import.txt1
-rw-r--r--npc/033-1/_warps.txt11
-rw-r--r--npc/033-1/misc.txt38
3 files changed, 49 insertions, 1 deletions
diff --git a/npc/033-1/_import.txt b/npc/033-1/_import.txt
index 247d96f..90c62d6 100644
--- a/npc/033-1/_import.txt
+++ b/npc/033-1/_import.txt
@@ -1,3 +1,4 @@
// Map 033-1: Porthos - Town of Portals
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/033-1/_warps.txt",
+"npc/033-1/misc.txt",
diff --git a/npc/033-1/_warps.txt b/npc/033-1/_warps.txt
index cd8747f..83bb3bc 100644
--- a/npc/033-1/_warps.txt
+++ b/npc/033-1/_warps.txt
@@ -3,4 +3,13 @@
033-1,189,94,0 warp #033-1_189_94 0,0,033-5,29,48
033-1,167,89,0 warp #033-1_167_89 0,0,033-4,35,42
033-1,172,101,0 warp #033-1_172_101 0,0,033-2,40,48
-033-1,72,190,0 warp #033-1_72_190 0,0,020-1,69,41
+033-1,49,192,0 script #033-1_49_192 NPC_HIDDEN,0,0,{
+ end;
+OnTouch:
+ slide 153,87; end;
+}
+033-1,153,86,0 script #033-1_153_86 NPC_HIDDEN,0,0,{
+ end;
+OnTouch:
+ slide 49,193; end;
+}
diff --git a/npc/033-1/misc.txt b/npc/033-1/misc.txt
new file mode 100644
index 0000000..50fc9de
--- /dev/null
+++ b/npc/033-1/misc.txt
@@ -0,0 +1,38 @@
+// Moubootaur Legends Script
+// Author:
+// Jesusalva
+// Description:
+// Guild House
+
+033-1,134,79,0 script #GDoor NPC_NO_SPRITE,0,0,{
+ end;
+OnTouch:
+ if (getcharid(2) < 1) {
+ dispbottom l("You do not belong to a guild.");
+ end;
+ }
+ // Warp you to your guild house if exist.
+ // Build the instance otherwise.
+
+ // Well, "checking if instance exist by mapname" is an illusion.
+ // So we try to build and if we fail, we warp the player to the instance.
+ .@ID=getcharid(2);
+ @MAP_NAME$="guild@"+str(.@ID); // Max 4 chars for map name
+
+ .@INSTID = instance_create("guilds@a"+(.@ID), getcharid(2), IOT_GUILD);
+
+ // 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$);
+
+ instance_set_timeout(0, 0, .@INSTID);
+ instance_init(.@INSTID);
+ warp @MAP_NAME$, any(34,35), 48;
+ end;
+
+}
+