summaryrefslogtreecommitdiff
path: root/npc/functions/dungeon.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-28 22:49:17 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-28 22:49:17 -0300
commit7ec7411f6e631d69a3b2e1286d1e069138c3c860 (patch)
tree5c0a488ea51cf3540f9a18ab1cc75e7bfe4e4396 /npc/functions/dungeon.txt
parent219becb7ba390f23c301b8f813f4f025ff83c307 (diff)
downloadserverdata-7ec7411f6e631d69a3b2e1286d1e069138c3c860.tar.gz
serverdata-7ec7411f6e631d69a3b2e1286d1e069138c3c860.tar.bz2
serverdata-7ec7411f6e631d69a3b2e1286d1e069138c3c860.tar.xz
serverdata-7ec7411f6e631d69a3b2e1286d1e069138c3c860.zip
Heat waves and the Volcano B1F
Diffstat (limited to 'npc/functions/dungeon.txt')
-rw-r--r--npc/functions/dungeon.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/npc/functions/dungeon.txt b/npc/functions/dungeon.txt
new file mode 100644
index 000000000..0e83bed49
--- /dev/null
+++ b/npc/functions/dungeon.txt
@@ -0,0 +1,35 @@
+// TMW2 Script
+// Authors:
+// Jesusalva
+// Description:
+// Dungeon utilities
+
+- script #DungeonCore NPC_HIDDEN,{
+ end;
+
+// Main initialization
+OnInit:
+ setarray .heatmap$, "007-2";
+ end;
+
+// Heartbeat for Heat effects
+OnHeat:
+ // Did you left?
+ .@i=array_find(.heatmap$, getmap());
+ if (.@i < 0) {
+ @heat$="";
+ end;
+ }
+
+ // First time seeing this
+ if (@heat$ != getmap()) {
+ @heat$=getmap();
+ dispbottom l("This is a hot map, you're suffering damage over time.");
+ }
+
+ // You are in a HEATMAP$, so suffer damage from heat
+ percentheal -5, 0;
+ addtimer2 5000, .name$+"::OnHeat";
+ end;
+}
+