summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2014-06-30 18:59:35 -0500
committerWushin <pasekei@gmail.com>2014-06-30 18:59:35 -0500
commit364d1cc865521afadb066b29616d2c97b9b938ac (patch)
treebe945c58d807b99a2d1be6dfe2b31dc7340822e6 /world/map/npc/functions
parent0d8c9a3f43372de8302264207bf7fe4ee3a88579 (diff)
parentca04411fbf0f460b83fa6cd10f931d1b9602742b (diff)
downloadserverdata-364d1cc865521afadb066b29616d2c97b9b938ac.tar.gz
serverdata-364d1cc865521afadb066b29616d2c97b9b938ac.tar.bz2
serverdata-364d1cc865521afadb066b29616d2c97b9b938ac.tar.xz
serverdata-364d1cc865521afadb066b29616d2c97b9b938ac.zip
Merge pull request #124 from wushin/gm-island
Place to host GM Events
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/gm_island.txt64
1 files changed, 64 insertions, 0 deletions
diff --git a/world/map/npc/functions/gm_island.txt b/world/map/npc/functions/gm_island.txt
new file mode 100644
index 00000000..cae9bdb0
--- /dev/null
+++ b/world/map/npc/functions/gm_island.txt
@@ -0,0 +1,64 @@
+// Add Localized Warp in town centers and Message to GM Island
+-|script|#GmConfig|-1,
+{
+ end;
+
+OnInit:
+ disablenpc "Gm Event#1";
+ disablenpc "Gm Event#2";
+ disablenpc "Gm Event#3";
+ end;
+}
+function|script|GmWarp|,
+{
+ warp "028-1", 110, 30;
+ return;
+}
+function|script|GmDebug|,
+{
+ if (getgmlevel() < 60)
+ goto L_Return;
+ goto L_Main;
+
+L_Main:
+ mes "[Gm Debug]";
+ mes "What do you want to do?";
+ menu
+ "Start Event.", L_GmStart,
+ "Stop Event.", L_GmStop;
+
+L_GmStart:
+ enablenpc "Gm Event#1";
+ enablenpc "Gm Event#2";
+ enablenpc "Gm Event#3";
+ goto L_Return;
+
+L_GmStop:
+ disablenpc "Gm Event#1";
+ disablenpc "Gm Event#2";
+ disablenpc "Gm Event#3";
+ goto L_Return;
+
+L_Return:
+ return;
+}
+017-9.gat,32,21,0|script|Gm Event Debug|368,
+{
+ callfunc "GmDebug";
+ close;
+}
+001-1.gat,49,68,0|script|Gm Event#1|368,0,0,
+{
+ callfunc "GmWarp";
+ end;
+}
+009-1.gat,46,30,0|script|Gm Event#2|368,0,0,
+{
+ callfunc "GmWarp";
+ end;
+}
+020-1.gat,67,89,0|script|Gm Event#3|368,0,0,
+{
+ callfunc "GmWarp";
+ end;
+}