summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
authorJesusaves <jesusalva@themanaworld.org>2020-06-11 20:18:48 -0300
committerGitHub <noreply@github.com>2020-06-11 23:18:48 +0000
commit5dd25e8dae4deafcb62574a4d2ea70b4b72d5f66 (patch)
tree49b779b9741ef45450f27c35513d80ddd38d2fcb /world/map
parent64530680fbf1fb93279db182a36ae602b60f168a (diff)
downloadserverdata-5dd25e8dae4deafcb62574a4d2ea70b4b72d5f66.tar.gz
serverdata-5dd25e8dae4deafcb62574a4d2ea70b4b72d5f66.tar.bz2
serverdata-5dd25e8dae4deafcb62574a4d2ea70b4b72d5f66.tar.xz
serverdata-5dd25e8dae4deafcb62574a4d2ea70b4b72d5f66.zip
Extra patch (#558)
* Welcom to Keshlam, YOUR WORST NIGHTMARE Act 5, Part 1: Interlude (Keshlam Maze)
Diffstat (limited to 'world/map')
-rw-r--r--world/map/data/099-7.wlkbin19604 -> 19604 bytes
-rw-r--r--world/map/data/099-8.wlk1
-rw-r--r--world/map/data/resnametable.txt1
-rw-r--r--world/map/npc/099-7/boss.txt10
-rw-r--r--world/map/npc/099-8/_import.txt8
-rw-r--r--world/map/npc/099-8/_mobs.txt3
-rw-r--r--world/map/npc/099-8/_nodes.txt4
-rw-r--r--world/map/npc/099-8/_warps.txt3
-rw-r--r--world/map/npc/099-8/expchest.txt2201
-rw-r--r--world/map/npc/099-8/mobs.txt233
-rw-r--r--world/map/npc/_import.txt1
-rw-r--r--world/map/npc/functions/doomsday.txt96
12 files changed, 2556 insertions, 5 deletions
diff --git a/world/map/data/099-7.wlk b/world/map/data/099-7.wlk
index 87dfdc16..168f0874 100644
--- a/world/map/data/099-7.wlk
+++ b/world/map/data/099-7.wlk
Binary files differ
diff --git a/world/map/data/099-8.wlk b/world/map/data/099-8.wlk
new file mode 100644
index 00000000..85d66b2d
--- /dev/null
+++ b/world/map/data/099-8.wlk
@@ -0,0 +1 @@
+““
diff --git a/world/map/data/resnametable.txt b/world/map/data/resnametable.txt
index c87094c9..80749643 100644
--- a/world/map/data/resnametable.txt
+++ b/world/map/data/resnametable.txt
@@ -125,4 +125,5 @@
099-5#099-5.wlk#
099-6#099-6.wlk#
099-7#099-7.wlk#
+099-8#099-8.wlk#
botcheck#botcheck.wlk#
diff --git a/world/map/npc/099-7/boss.txt b/world/map/npc/099-7/boss.txt
index 665dba71..e806b609 100644
--- a/world/map/npc/099-7/boss.txt
+++ b/world/map/npc/099-7/boss.txt
@@ -766,4 +766,14 @@ L_No:
mes "(The memorial is at left, behind the column.)";
close;
}
+099-7,73,20,0|script|#NoobKytty01|400,0,0
+{
+ warp "099-7", 72, 17;
+ end;
+}
+099-7,73,17,0|script|#NoobKytty02|400,0,0
+{
+ warp "099-7", 72, 20;
+ end;
+}
diff --git a/world/map/npc/099-8/_import.txt b/world/map/npc/099-8/_import.txt
new file mode 100644
index 00000000..931f223e
--- /dev/null
+++ b/world/map/npc/099-8/_import.txt
@@ -0,0 +1,8 @@
+// Map 099-8: Keshlam's Maze
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+map: 099-8
+npc: npc/099-8/_mobs.txt
+npc: npc/099-8/_nodes.txt
+npc: npc/099-8/_warps.txt
+npc: npc/099-8/expchest.txt
+npc: npc/099-8/mobs.txt
diff --git a/world/map/npc/099-8/_mobs.txt b/world/map/npc/099-8/_mobs.txt
new file mode 100644
index 00000000..572bf03c
--- /dev/null
+++ b/world/map/npc/099-8/_mobs.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Keshlam's Maze mobs
+
diff --git a/world/map/npc/099-8/_nodes.txt b/world/map/npc/099-8/_nodes.txt
new file mode 100644
index 00000000..c3253bb1
--- /dev/null
+++ b/world/map/npc/099-8/_nodes.txt
@@ -0,0 +1,4 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Keshlam's Maze nodes
+
+// (no nodes)
diff --git a/world/map/npc/099-8/_warps.txt b/world/map/npc/099-8/_warps.txt
new file mode 100644
index 00000000..e6916e13
--- /dev/null
+++ b/world/map/npc/099-8/_warps.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Keshlam's Maze warps
+
diff --git a/world/map/npc/099-8/expchest.txt b/world/map/npc/099-8/expchest.txt
new file mode 100644
index 00000000..2a2da1d9
--- /dev/null
+++ b/world/map/npc/099-8/expchest.txt
@@ -0,0 +1,2201 @@
+// This file is generated automatically.
+099-8,373,128,0|script|EXP Chest#00|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[0] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[0], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[0]+" got here first!";
+ close;
+}
+099-8,280,208,0|script|EXP Chest#01|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[1] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[1], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[1]+" got here first!";
+ close;
+}
+099-8,151,104,0|script|EXP Chest#02|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[2] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[2], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[2]+" got here first!";
+ close;
+}
+099-8,233,374,0|script|EXP Chest#03|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[3] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[3], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[3]+" got here first!";
+ close;
+}
+099-8,87,258,0|script|EXP Chest#04|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[4] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[4], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[4]+" got here first!";
+ close;
+}
+099-8,67,226,0|script|EXP Chest#05|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[5] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[5], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[5]+" got here first!";
+ close;
+}
+099-8,142,48,0|script|EXP Chest#06|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[6] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[6], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[6]+" got here first!";
+ close;
+}
+099-8,27,93,0|script|EXP Chest#07|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[7] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[7], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[7]+" got here first!";
+ close;
+}
+099-8,342,382,0|script|EXP Chest#08|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[8] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[8], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[8]+" got here first!";
+ close;
+}
+099-8,163,222,0|script|EXP Chest#09|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[9] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[9], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[9]+" got here first!";
+ close;
+}
+099-8,326,140,0|script|EXP Chest#10|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[10] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[10], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[10]+" got here first!";
+ close;
+}
+099-8,250,273,0|script|EXP Chest#11|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[11] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[11], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[11]+" got here first!";
+ close;
+}
+099-8,365,144,0|script|EXP Chest#12|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[12] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[12], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[12]+" got here first!";
+ close;
+}
+099-8,108,214,0|script|EXP Chest#13|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[13] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[13], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[13]+" got here first!";
+ close;
+}
+099-8,215,150,0|script|EXP Chest#14|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[14] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[14], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[14]+" got here first!";
+ close;
+}
+099-8,180,374,0|script|EXP Chest#15|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[15] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[15], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[15]+" got here first!";
+ close;
+}
+099-8,246,94,0|script|EXP Chest#16|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[16] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[16], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[16]+" got here first!";
+ close;
+}
+099-8,244,215,0|script|EXP Chest#17|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[17] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[17], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[17]+" got here first!";
+ close;
+}
+099-8,243,323,0|script|EXP Chest#18|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[18] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[18], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[18]+" got here first!";
+ close;
+}
+099-8,231,279,0|script|EXP Chest#19|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[19] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[19], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[19]+" got here first!";
+ close;
+}
+099-8,225,64,0|script|EXP Chest#20|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[20] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[20], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[20]+" got here first!";
+ close;
+}
+099-8,310,336,0|script|EXP Chest#21|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[21] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[21], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[21]+" got here first!";
+ close;
+}
+099-8,227,314,0|script|EXP Chest#22|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[22] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[22], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[22]+" got here first!";
+ close;
+}
+099-8,336,312,0|script|EXP Chest#23|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[23] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[23], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[23]+" got here first!";
+ close;
+}
+099-8,52,300,0|script|EXP Chest#24|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[24] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[24], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[24]+" got here first!";
+ close;
+}
+099-8,38,327,0|script|EXP Chest#25|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[25] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[25], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[25]+" got here first!";
+ close;
+}
+099-8,176,241,0|script|EXP Chest#26|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[26] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[26], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[26]+" got here first!";
+ close;
+}
+099-8,312,276,0|script|EXP Chest#27|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[27] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[27], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[27]+" got here first!";
+ close;
+}
+099-8,144,368,0|script|EXP Chest#28|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[28] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[28], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[28]+" got here first!";
+ close;
+}
+099-8,59,174,0|script|EXP Chest#29|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[29] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[29], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[29]+" got here first!";
+ close;
+}
+099-8,32,170,0|script|EXP Chest#30|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[30] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[30], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[30]+" got here first!";
+ close;
+}
+099-8,248,48,0|script|EXP Chest#31|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[31] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[31], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[31]+" got here first!";
+ close;
+}
+099-8,37,311,0|script|EXP Chest#32|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[32] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[32], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[32]+" got here first!";
+ close;
+}
+099-8,206,336,0|script|EXP Chest#33|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[33] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[33], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[33]+" got here first!";
+ close;
+}
+099-8,193,161,0|script|EXP Chest#34|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[34] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[34], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[34]+" got here first!";
+ close;
+}
+099-8,337,296,0|script|EXP Chest#35|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[35] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[35], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[35]+" got here first!";
+ close;
+}
+099-8,235,130,0|script|EXP Chest#36|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[36] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[36], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[36]+" got here first!";
+ close;
+}
+099-8,67,162,0|script|EXP Chest#37|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[37] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[37], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[37]+" got here first!";
+ close;
+}
+099-8,97,110,0|script|EXP Chest#38|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[38] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[38], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[38]+" got here first!";
+ close;
+}
+099-8,380,222,0|script|EXP Chest#39|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[39] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[39], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[39]+" got here first!";
+ close;
+}
+099-8,180,28,0|script|EXP Chest#40|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[40] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[40], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[40]+" got here first!";
+ close;
+}
+099-8,179,146,0|script|EXP Chest#41|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[41] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[41], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[41]+" got here first!";
+ close;
+}
+099-8,124,358,0|script|EXP Chest#42|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[42] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[42], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[42]+" got here first!";
+ close;
+}
+099-8,239,49,0|script|EXP Chest#43|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[43] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[43], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[43]+" got here first!";
+ close;
+}
+099-8,195,201,0|script|EXP Chest#44|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[44] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[44], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[44]+" got here first!";
+ close;
+}
+099-8,168,265,0|script|EXP Chest#45|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[45] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[45], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[45]+" got here first!";
+ close;
+}
+099-8,121,232,0|script|EXP Chest#46|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[46] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[46], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[46]+" got here first!";
+ close;
+}
+099-8,370,284,0|script|EXP Chest#47|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[47] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[47], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[47]+" got here first!";
+ close;
+}
+099-8,243,273,0|script|EXP Chest#48|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[48] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[48], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[48]+" got here first!";
+ close;
+}
+099-8,204,203,0|script|EXP Chest#49|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[49] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[49], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[49]+" got here first!";
+ close;
+}
+099-8,190,366,0|script|EXP Chest#50|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[50] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[50], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[50]+" got here first!";
+ close;
+}
+099-8,25,106,0|script|EXP Chest#51|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[51] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[51], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[51]+" got here first!";
+ close;
+}
+099-8,315,206,0|script|EXP Chest#52|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[52] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[52], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[52]+" got here first!";
+ close;
+}
+099-8,65,293,0|script|EXP Chest#53|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[53] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[53], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[53]+" got here first!";
+ close;
+}
+099-8,382,57,0|script|EXP Chest#54|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[54] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[54], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[54]+" got here first!";
+ close;
+}
+099-8,117,288,0|script|EXP Chest#55|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[55] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[55], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[55]+" got here first!";
+ close;
+}
+099-8,86,63,0|script|EXP Chest#56|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[56] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[56], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[56]+" got here first!";
+ close;
+}
+099-8,257,212,0|script|EXP Chest#57|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[57] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[57], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[57]+" got here first!";
+ close;
+}
+099-8,290,210,0|script|EXP Chest#58|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[58] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[58], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[58]+" got here first!";
+ close;
+}
+099-8,118,320,0|script|EXP Chest#59|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[59] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[59], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[59]+" got here first!";
+ close;
+}
+099-8,332,96,0|script|EXP Chest#60|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[60] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[60], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[60]+" got here first!";
+ close;
+}
+099-8,147,33,0|script|EXP Chest#61|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[61] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[61], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[61]+" got here first!";
+ close;
+}
+099-8,109,271,0|script|EXP Chest#62|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[62] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[62], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[62]+" got here first!";
+ close;
+}
+099-8,217,216,0|script|EXP Chest#63|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[63] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[63], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[63]+" got here first!";
+ close;
+}
+099-8,65,136,0|script|EXP Chest#64|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[64] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[64], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[64]+" got here first!";
+ close;
+}
+099-8,116,45,0|script|EXP Chest#65|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[65] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[65], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[65]+" got here first!";
+ close;
+}
+099-8,279,111,0|script|EXP Chest#66|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[66] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[66], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[66]+" got here first!";
+ close;
+}
+099-8,98,100,0|script|EXP Chest#67|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[67] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[67], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[67]+" got here first!";
+ close;
+}
+099-8,168,53,0|script|EXP Chest#68|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[68] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[68], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[68]+" got here first!";
+ close;
+}
+099-8,235,353,0|script|EXP Chest#69|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[69] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[69], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[69]+" got here first!";
+ close;
+}
+099-8,263,109,0|script|EXP Chest#70|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[70] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[70], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[70]+" got here first!";
+ close;
+}
+099-8,226,26,0|script|EXP Chest#71|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[71] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[71], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[71]+" got here first!";
+ close;
+}
+099-8,352,118,0|script|EXP Chest#72|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[72] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[72], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[72]+" got here first!";
+ close;
+}
+099-8,154,270,0|script|EXP Chest#73|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[73] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[73], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[73]+" got here first!";
+ close;
+}
+099-8,41,199,0|script|EXP Chest#74|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[74] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[74], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[74]+" got here first!";
+ close;
+}
+099-8,208,306,0|script|EXP Chest#75|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[75] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[75], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[75]+" got here first!";
+ close;
+}
+099-8,47,55,0|script|EXP Chest#76|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[76] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[76], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[76]+" got here first!";
+ close;
+}
+099-8,21,142,0|script|EXP Chest#77|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[77] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[77], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[77]+" got here first!";
+ close;
+}
+099-8,94,293,0|script|EXP Chest#78|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[78] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[78], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[78]+" got here first!";
+ close;
+}
+099-8,232,214,0|script|EXP Chest#79|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[79] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[79], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[79]+" got here first!";
+ close;
+}
+099-8,30,152,0|script|EXP Chest#80|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[80] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[80], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[80]+" got here first!";
+ close;
+}
+099-8,374,319,0|script|EXP Chest#81|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[81] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[81], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[81]+" got here first!";
+ close;
+}
+099-8,252,289,0|script|EXP Chest#82|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[82] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[82], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[82]+" got here first!";
+ close;
+}
+099-8,218,324,0|script|EXP Chest#83|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[83] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[83], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[83]+" got here first!";
+ close;
+}
+099-8,24,187,0|script|EXP Chest#84|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[84] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[84], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[84]+" got here first!";
+ close;
+}
+099-8,137,65,0|script|EXP Chest#85|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[85] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[85], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[85]+" got here first!";
+ close;
+}
+099-8,285,167,0|script|EXP Chest#86|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[86] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[86], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[86]+" got here first!";
+ close;
+}
+099-8,154,83,0|script|EXP Chest#87|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[87] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[87], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[87]+" got here first!";
+ close;
+}
+099-8,63,239,0|script|EXP Chest#88|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[88] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[88], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[88]+" got here first!";
+ close;
+}
+099-8,88,156,0|script|EXP Chest#89|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[89] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[89], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[89]+" got here first!";
+ close;
+}
+099-8,320,34,0|script|EXP Chest#90|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[90] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[90], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[90]+" got here first!";
+ close;
+}
+099-8,99,334,0|script|EXP Chest#91|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[91] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[91], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[91]+" got here first!";
+ close;
+}
+099-8,248,303,0|script|EXP Chest#92|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[92] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[92], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[92]+" got here first!";
+ close;
+}
+099-8,71,59,0|script|EXP Chest#93|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[93] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[93], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[93]+" got here first!";
+ close;
+}
+099-8,321,254,0|script|EXP Chest#94|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[94] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[94], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[94]+" got here first!";
+ close;
+}
+099-8,165,321,0|script|EXP Chest#95|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[95] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[95], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[95]+" got here first!";
+ close;
+}
+099-8,94,350,0|script|EXP Chest#96|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[96] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[96], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[96]+" got here first!";
+ close;
+}
+099-8,193,265,0|script|EXP Chest#97|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[97] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[97], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[97]+" got here first!";
+ close;
+}
+099-8,206,73,0|script|EXP Chest#98|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[98] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[98], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[98]+" got here first!";
+ close;
+}
+099-8,62,273,0|script|EXP Chest#99|111
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ if ($DD5A_EXPCHEST$[99] != "") goto L_Claimed;
+ if (#DD5A_EXPCHEST > 10) goto L_Greedy;
+ mes "(You are the first player to open this chest! THE POWER IS NOW YOURS.)";
+ set $DD5A_EXPCHEST$[99], strcharinfo(0);
+ set #DD5A_EXPCHEST, #DD5A_EXPCHEST+1;
+ getexp 200000, 10000;
+ close;
+
+L_Greedy:
+ mes "Don't be greedy, let someone else open them, too!";
+ close;
+
+L_Claimed:
+ mes "Sorry, but "+$DD5A_EXPCHEST$[99]+" got here first!";
+ close;
+}
diff --git a/world/map/npc/099-8/mobs.txt b/world/map/npc/099-8/mobs.txt
new file mode 100644
index 00000000..db971236
--- /dev/null
+++ b/world/map/npc/099-8/mobs.txt
@@ -0,0 +1,233 @@
+// This script controls the Keshlam Abandoned Maze
+// Part of Doomsday Event : Act 5
+
+// Monster Script Control
+-|script|Keshlam Maze|32767
+{
+ close;
+
+OnInit:
+ goto L_Main;
+
+// They'll respawn at midday.
+OnClock1200:
+ goto L_Main;
+
+L_Main:
+ // 1 MONSTER PER 30 TILES, TOTAL 4320 MONSTERS
+ // 1440 monsters of each kind
+ // 360 monsters per quadrand; Center is the pillar in (201, 201)
+
+ // TYPE 1141, SASQUATCH
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath1")+1;
+ if ($@KeshlamMc < 360)
+ areamonster "099-8", 20, 20, 201, 201, "", 1141, 360-$@KeshlamMc, "Keshlam Maze::OnDeath1";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath2")+1;
+ if ($@KeshlamMc < 360)
+ areamonster "099-8", 201, 20, 402, 201, "", 1141, 360-$@KeshlamMc, "Keshlam Maze::OnDeath2";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath3")+1;
+ if ($@KeshlamMc < 360)
+ areamonster "099-8", 20, 201, 201, 402, "", 1141, 360-$@KeshlamMc, "Keshlam Maze::OnDeath3";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath4")+1;
+ if ($@KeshlamMc < 360)
+ areamonster "099-8", 201, 201, 402, 402, "", 1141, 360-$@KeshlamMc, "Keshlam Maze::OnDeath4";
+
+
+ // TYPE 1140, TENGU
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath5")+1;
+ if ($@KeshlamMc < 360)
+ areamonster "099-8", 20, 20, 201, 201, "", 1140, 360-$@KeshlamMc, "Keshlam Maze::OnDeath5";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath6")+1;
+ if ($@KeshlamMc < 360)
+ areamonster "099-8", 201, 20, 402, 201, "", 1140, 360-$@KeshlamMc, "Keshlam Maze::OnDeath6";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath7")+1;
+ if ($@KeshlamMc < 360)
+ areamonster "099-8", 20, 201, 201, 402, "", 1140, 360-$@KeshlamMc, "Keshlam Maze::OnDeath7";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath8")+1;
+ if ($@KeshlamMc < 360)
+ areamonster "099-8", 201, 201, 402, 402, "", 1140, 360-$@KeshlamMc, "Keshlam Maze::OnDeath8";
+
+
+ /*
+ // TYPE 1141, more SASQUATCH
+ // Used to be 1143 Mana Slayer
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath9")+1;
+ if ($@KeshlamMc < 300)
+ areamonster "099-8", 20, 20, 201, 201, "", 1141, 300-$@KeshlamMc, "Keshlam Maze::OnDeath9";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath10")+1;
+ if ($@KeshlamMc < 300)
+ areamonster "099-8", 201, 20, 402, 201, "", 1141, 300-$@KeshlamMc, "Keshlam Maze::OnDeath10";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath11")+1;
+ if ($@KeshlamMc < 300)
+ areamonster "099-8", 20, 201, 201, 402, "", 1141, 300-$@KeshlamMc, "Keshlam Maze::OnDeath11";
+
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath12")+1;
+ if ($@KeshlamMc < 300)
+ areamonster "099-8", 201, 201, 402, 402, "", 1141, 300-$@KeshlamMc, "Keshlam Maze::OnDeath12";
+ */
+
+
+ // Maintain a minimal MANA SLAYER guarnition
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnDeath13")+1;
+ if ($@KeshlamMc < 200)
+ areamonster "099-8", 20, 20, 402, 402, "", 1143, 200-$@KeshlamMc, "Keshlam Maze::OnDeath13";
+
+
+ // Extra Layer: The bonus layer
+ // Density: 50 monsters or 0.04% of the maze
+ set $@KeshlamMc, mobcount("099-8", "Keshlam Maze::OnBoss")+1;
+ if ($@KeshlamMc < 40)
+ areamonster "099-8", 20, 20, 360, 360, "", 1147, 40-$@KeshlamMc, "Keshlam Maze::OnBoss"; // Koyntety
+
+ // Done
+ set $@KeshlamMc, 0;
+ stopnpctimer;
+ end;
+
+// Labels
+OnDeath1:
+ end;
+OnDeath2:
+ end;
+OnDeath3:
+ end;
+OnDeath4:
+ end;
+OnDeath5:
+ end;
+OnDeath6:
+ end;
+OnDeath7:
+ end;
+OnDeath8:
+ end;
+OnDeath9:
+ end;
+OnDeath10:
+ end;
+OnDeath11:
+ end;
+OnDeath12:
+ end;
+OnDeath13:
+ end;
+
+OnBoss:
+ // If a player is attached, give them a reward
+ getitem "TreasureKey", 1;
+ getexp 50000, 0;
+ end;
+}
+
+
+// Oddities
+099-8,201,201,0|script|Central Pillar#DD5|400
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ mes ".:: KESHLAM MAZE ::.";
+ mes "WE KEPT POWERFUL EARTH MONSTERS HERE.";
+ mes "IT WOULD BE TERRIBLE IF THE SASQUATCH ESCAPED.";
+ mes "";
+ mes "WHATEVER HAPPENS: DO NOT OPEN THE GATE!";
+ close;
+}
+
+099-8,375,27,0|script|Northeast Pillar#DD5|400
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ mes ".:: KESHLAM MAZE ::.";
+ mes ".:: :: CONTROL PANEL :: ::.";
+ mes "";
+ mes "Security Level: ##1CRITICAL - WORLD'S EXISTENCE THREATENED##0";
+ mes "Defensive Measures Level 1: ##1DEFEATED##0";
+ mes "Defensive Measures Level 2: ##1DEFEATED##0";
+ mes "Defensive Measures Level 3: ##2STAND BY##0";
+ next;
+ mes "##9The controls seems to have been destroyed!";
+ mes "##9The panel says the situtation is critical.";
+ mes "##9Why the final defensive measures didn't engage?";
+ next;
+ mes "What's happening?";
+ close;
+}
+
+099-8,87,261,0|script|Southwest Pillar#DD5|400
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ mes ".:: KESHLAM MAZE ::.";
+ mes ".:: :: CONTROL PANEL :: ::.";
+ mes "";
+ mes "West gate: ##1OPEN##0";
+ mes "East gate: ##1OPEN##0";
+ mes "North gate: ##1OPEN##0";
+ mes "South gate: ##1OPEN##0";
+ mes "";
+ mes "Security Level: ##1CRITICAL - WORLD'S EXISTENCE THREATENED##0";
+ next;
+ mes "##9The controls seems to have been destroyed!";
+ next;
+ mes "Where are these gates? I don't recall seeing anything like that.";
+ mes "What's happening, after all?";
+ close;
+}
+
+
+099-8,285,237,0|script|Southeast Pillar#DD5|400
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ mes ".:: KESHLAM MAZE ::.";
+ mes ".:: :: CONTROL PANEL :: ::.";
+ mes "";
+ mes "Laboratory: ##1CONTACT LOST##0";
+ mes "The Archives: ##1CONTACT LOST##0";
+ mes "Crystal Room: ##1CONTACT LOST##0";
+ mes "";
+ mes "Security Level: ##1CRITICAL - WORLD'S EXISTENCE THREATENED##0";
+ next;
+ mes "##9The controls seems to have been destroyed!";
+ mes "##9I wonder where these three rooms are.";
+ mes "##9What sort of research was being conducted?";
+ mes "##9What is a Crystal Room? I don't saw any passage.";
+ next;
+ mes "What's happening?";
+ close;
+}
+
+099-8,75,105,0|script|Northwest Pillar#DD5|400
+{
+ // Default distance is 4 tiles - all we need
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+
+ mes ".:: KESHLAM MAZE ::.";
+ mes ".:: :: STATUS REPORT PANEL :: ::.";
+ mes "";
+ mes "Earth Crystal: ##1NOT FOUND##0";
+ mes "Security Level: ##1CRITICAL - WORLD'S EXISTENCE THREATENED##0";
+ next;
+ mes "##9Earth Crystal? I never heard anything about it.";
+ next;
+ mes "What's happening?";
+ close;
+}
+
diff --git a/world/map/npc/_import.txt b/world/map/npc/_import.txt
index 5691767f..eaac6f29 100644
--- a/world/map/npc/_import.txt
+++ b/world/map/npc/_import.txt
@@ -127,4 +127,5 @@ import: npc/099-4/_import.txt
import: npc/099-5/_import.txt
import: npc/099-6/_import.txt
import: npc/099-7/_import.txt
+import: npc/099-8/_import.txt
import: npc/botcheck/_import.txt
diff --git a/world/map/npc/functions/doomsday.txt b/world/map/npc/functions/doomsday.txt
index 0bebe8cc..02d0957c 100644
--- a/world/map/npc/functions/doomsday.txt
+++ b/world/map/npc/functions/doomsday.txt
@@ -31,9 +31,13 @@ function|script|DoomsdayDebug
mes "$DOOMSDAY_SCORE: "+$DOOMSDAY_SCORE;
mes "$DOOMSDAY_CLUES: "+$DOOMSDAY_CLUES;
mes "";
+ mes "Act 4:";
mes "Can players summon Mana Guardians? "+if_then_else($DOOMSDAY_SUMMON, "Yes", "No");
mes "Is TMW under Jande's control? "+if_then_else($DOOMSDAY_TAKENOVER, "Yes", "No");
mes "Zealite Upgrade? "+if_then_else($DOOMSDAY_SUMMON > 1, "Yes", "No");
+ mes "";
+ mes "Act 5:";
+ mes "Warp to fake Keshlam? "+if_then_else($DOOMSDAY_TWARP > 1, "No", "Yes");
//($DOOMSDAY_SUMMON ? "Yes" : "No");
next;
// Only GM 80 and above can modify Doomsday
@@ -53,7 +57,8 @@ function|script|DoomsdayDebug
"[2][4][2] Council - Celestia's Residence",L_HurnsCouncil,
"[2][4][3] Council - Blue Sage's Residence",L_NivalCouncil,
"[2][4][4] Toggle Zealite Upgrade",L_Zealite,
- "[3][5][0] Kage's Final Battle",L_Kage,
+ "[3][5][0] Keshlam Warps",L_Keshlam,
+ "[3][5][1] Kage's Final Battle",L_Kage,
"[-] Close",L_Close;
L_Close:
@@ -156,7 +161,7 @@ L_Zealite:
return;
// Act 5: The Doomsday
-L_Kage:
+L_Keshlam:
mes "//-- TODO --//";
enablenpc "Wizard#1";
enablenpc "Wizard#2";
@@ -167,10 +172,19 @@ L_Kage:
enablenpc "Wizard#7";
enablenpc "Wizard#8";
enablenpc "Arch-Wizard#9";
+ enablenpc "Chest#DarkRose";
set $DOOMSDAY, 3;
donpcevent "Doomsday::OnJanitor"; // TODO
gmlog strcharinfo(0) + " changed doomsday to Act 5: The Doomsday.";
+ gmlog strcharinfo(0) + " changed doomsday warp to Keshlam Maze";
+ return;
+
+L_Kage:
+ set $DOOMSDAY_TWARP, 1;
+ donpcevent "Doomsday::OnJanitor"; // TODO
+ gmlog strcharinfo(0) + " changed doomsday warp to Abandoned Building";
return;
+
}
// Doomsday script controller
@@ -226,6 +240,8 @@ OnInit:
goto L_Doomsday1;
if ($DOOMSDAY == 2)
goto L_Doomsday2;
+ if ($DOOMSDAY == 3)
+ goto L_Doomsday5;
// goto L_Check2;
end;
@@ -859,6 +875,15 @@ OnDD4SurvivorReward:
getexp 10000, 0;
end;
+
+////////////////////////////////////////////////////////////////////////////////
+// Act 5 utils
+L_Doomsday5:
+ enablenpc "Chest#DarkRose";
+ if ($DOOMSDAY_SUMMON == 2)
+ goto L_MenhirUpdate;
+ end;
+
////////////////////////////////////////////////////////////////////////////////
// Respawn logic (5 minutes)
OnTimer100000:
@@ -1180,7 +1205,7 @@ OnInit:
009-1,53,40,0|script|Chest#Zealite|111
{
- if ($DOOMSDAY != 2) end;
+ if ($DOOMSDAY_SUMMON < 2) end;
if ((gettimetick(2)-TUT_var < 3*7*86400) || (BaseLevel < 25)) //player must be created at least 3 weeks ago
goto L_EndTooYoung;
if (#DOOMSDAY_ARMOR)
@@ -1242,6 +1267,8 @@ function|script|DoomsdayAct5
{
if ($DOOMSDAY != 3)
goto L_Return;
+ if (getmap() == "099-8")
+ goto L_Return;
if (countitem("BlackRose"))
goto L_WarpTo;
if (getmap() == "099-1" || getmap() == "099-2" || getmap() == "099-3" || getmap() == "099-6")
@@ -1249,8 +1276,12 @@ function|script|DoomsdayAct5
goto L_Return;
L_WarpTo:
- //warp "099-1", 34, 34;
- //delitem "BlackRose", 1;
+ delitem "BlackRose", 1;
+ heal 100000, 10000;
+ if ($DOOMSDAY_TWARP == 0)
+ goto L_KeshlamMaze;
+ else
+ goto L_KeshlamAbandoned;
return;
L_WarpOut:
@@ -1265,5 +1296,60 @@ L_Failure:
L_Return:
return;
+
+///////////////////////////////////
+L_KeshlamMaze:
+ if (rand(10) % 2 == 1)
+ warp "099-8", 23, 378;
+ else
+ warp "099-8", 379, 378;
+ return;
+
+L_KeshlamAbandoned:
+ warp "099-1", 34, 34;
+ return;
+}
+
+009-1,30,43,0|script|Chest#DarkRose|111
+{
+ if ($DOOMSDAY != 3) end;
+ if ((gettimetick(2)-TUT_var < 2*7*86400) || (BaseLevel < 35)) //player must be created at least 2 weeks ago
+ goto L_EndTooYoung;
+ if (#DOOMSDAY_FREEROSE > gettimetick(2))
+ goto L_Cooldown;
+ mes "[Old Woman]";
+ mes "Hello. I've been picking up some @@666|@@, they are growing in my garden.";
+ next;
+ mes "[Old Woman]";
+ mes "The last time this happened was 10 years ago. They give me an ominous feeling.";
+ next;
+ mes "[Old Woman]";
+ mes "Do you want one? I don't like them. (Max. 1 per account)";
+ next;
+ mes "Event Details: [@@https://forums.themanaworld.org/viewtopic.php?t=20921|@@]";
+ menu
+ "Yes, take it", L_Yes,
+ "No, it sounds dangerous", L_No;
+
+L_Yes:
+ message strcharinfo(0), "Chest : You can get another black rose for free in 23 hours.";
+ getitem "BlackRose", 1;
+ set #DOOMSDAY_FREEROSE, gettimetick(2)+82800;
+ close;
+
+L_No:
+ close;
+
+L_EndTooYoung:
+ message strcharinfo(0), "Chest : It is locked.";
+ end;
+
+L_Cooldown:
+ message strcharinfo(0), "Chest : You can only claim a free rose every 23 hours, please come back later.";
+ end;
+
+OnInit:
+ disablenpc "Chest#DarkRose";
+ end;
}