summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-04 13:34:30 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-04 13:34:30 -0300
commit7c057bc19b36c71171a2c4155df5422f93b2c455 (patch)
tree5440e514af6a0e907c4accca9a388232833bd39e
parent3ddda266d36140239ed2a02e9246f2b975973d73 (diff)
downloadserverdata-7c057bc19b36c71171a2c4155df5422f93b2c455.tar.gz
serverdata-7c057bc19b36c71171a2c4155df5422f93b2c455.tar.bz2
serverdata-7c057bc19b36c71171a2c4155df5422f93b2c455.tar.xz
serverdata-7c057bc19b36c71171a2c4155df5422f93b2c455.zip
Move location configuration to npc/config
-rw-r--r--npc/000-1/exit.txt13
-rw-r--r--npc/config/location.txt20
-rw-r--r--npc/scripts.conf1
3 files changed, 21 insertions, 13 deletions
diff --git a/npc/000-1/exit.txt b/npc/000-1/exit.txt
index 6eb6f0c1f..c35491fb9 100644
--- a/npc/000-1/exit.txt
+++ b/npc/000-1/exit.txt
@@ -40,18 +40,5 @@ OnVisitLX:
warp $@LOCMASTER_MAP$[@lx], $@LOCMASTER_X[@lx], $@LOCMASTER_Y[@lx];
end;
-OnInit:
- // TP_FORT TP_BOSSR
- setarray $@LOCMASTER_TP, TP_CANDOR,TP_TULIM,TP_HALIN,TP_HURNS, TP_LOF,TP_LILIT,TP_NIVAL, TP_FROST;
- setarray $@LOCMASTER_LOC$, "Candor", "Tulim", "Halin", "Hurns", "LoF", "Lilit", "Nival", "Frostia";
- setarray $@LOCMASTER_MAP$, "005-1", "003-1", "009-1", "012-1", "017-1", "018-5", "020-1", "024-1";
- setarray $@LOCMASTER_X, 43, 40, 26, 86, 119, 111, 56, 94;
- setarray $@LOCMASTER_Y, 99, 49, 30, 69, 87, 53, 62, 42;
-
- //debugmes "Locmaster: Index 0: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[0], $@LOCMASTER_MAP$[0], $@LOCMASTER_X[0], $@LOCMASTER_Y[0];
- //debugmes "Locmaster: Index 2: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[2], $@LOCMASTER_MAP$[2], $@LOCMASTER_X[2], $@LOCMASTER_Y[2];
- //debugmes "Locmaster: Index 5: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[5], $@LOCMASTER_MAP$[5], $@LOCMASTER_X[5], $@LOCMASTER_Y[5];
- end;
-
}
diff --git a/npc/config/location.txt b/npc/config/location.txt
new file mode 100644
index 000000000..5a069545b
--- /dev/null
+++ b/npc/config/location.txt
@@ -0,0 +1,20 @@
+// TMW2 Script
+// Author: Jesusalva
+// Location Config
+
+- script loc_config 32767,{
+ end;
+
+OnInit:
+ // TP_FORT TP_BOSSR
+ setarray $@LOCMASTER_TP, TP_CANDOR,TP_TULIM,TP_HALIN,TP_HURNS, TP_LOF,TP_LILIT,TP_NIVAL, TP_FROST;
+ setarray $@LOCMASTER_LOC$, "Candor", "Tulim", "Halin", "Hurns", "LoF", "Lilit", "Nival", "Frostia";
+ setarray $@LOCMASTER_MAP$, "005-1", "003-1", "009-1", "012-1", "017-1", "018-5", "020-1", "024-1";
+ setarray $@LOCMASTER_X, 43, 40, 26, 86, 119, 111, 56, 94;
+ setarray $@LOCMASTER_Y, 99, 49, 30, 69, 87, 53, 62, 42;
+
+ //debugmes "Locmaster: Index 0: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[0], $@LOCMASTER_MAP$[0], $@LOCMASTER_X[0], $@LOCMASTER_Y[0];
+ //debugmes "Locmaster: Index 2: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[2], $@LOCMASTER_MAP$[2], $@LOCMASTER_X[2], $@LOCMASTER_Y[2];
+ //debugmes "Locmaster: Index 5: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[5], $@LOCMASTER_MAP$[5], $@LOCMASTER_X[5], $@LOCMASTER_Y[5];
+ end;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 297ff8189..af6eefdbd 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -35,6 +35,7 @@
// config script
"npc/config/hairstyle_config.txt",
+"npc/config/location.txt",
"npc/config/traps.txt",
"npc/config/magic.txt",