diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-28 22:49:17 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-28 22:49:17 -0300 |
commit | 7ec7411f6e631d69a3b2e1286d1e069138c3c860 (patch) | |
tree | 5c0a488ea51cf3540f9a18ab1cc75e7bfe4e4396 /npc | |
parent | 219becb7ba390f23c301b8f813f4f025ff83c307 (diff) | |
download | serverdata-7ec7411f6e631d69a3b2e1286d1e069138c3c860.tar.gz serverdata-7ec7411f6e631d69a3b2e1286d1e069138c3c860.tar.bz2 serverdata-7ec7411f6e631d69a3b2e1286d1e069138c3c860.tar.xz serverdata-7ec7411f6e631d69a3b2e1286d1e069138c3c860.zip |
Heat waves and the Volcano B1F
Diffstat (limited to 'npc')
-rw-r--r-- | npc/007-1/_warps.txt | 1 | ||||
-rw-r--r-- | npc/007-2/_config.txt | 18 | ||||
-rw-r--r-- | npc/007-2/_import.txt | 5 | ||||
-rw-r--r-- | npc/007-2/_mobs.txt | 10 | ||||
-rw-r--r-- | npc/007-2/_warps.txt | 3 | ||||
-rw-r--r-- | npc/_import.txt | 1 | ||||
-rw-r--r-- | npc/functions/dungeon.txt | 35 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
8 files changed, 74 insertions, 0 deletions
diff --git a/npc/007-1/_warps.txt b/npc/007-1/_warps.txt index ff417a276..fd3d5007f 100644 --- a/npc/007-1/_warps.txt +++ b/npc/007-1/_warps.txt @@ -2,3 +2,4 @@ // Map 007-1: Tulimshar Mining Camp warps 007-1,56,37,0 warp #007-1_56_37 0,0,004-1,33,110 007-1,90,52,0 warp #007-1_90_52 0,0,004-1,92,115 +007-1,99,190,0 warp #007-1_99_190 1,0,007-2,64,66 diff --git a/npc/007-2/_config.txt b/npc/007-2/_config.txt new file mode 100644 index 000000000..66bb09a31 --- /dev/null +++ b/npc/007-2/_config.txt @@ -0,0 +1,18 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 007-2: Tulimshar Volcano Underground conf + +007-2,48,32,0 script #007-2_48_32 NPC_CHEST,{ + TreasureBox(); + specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing + close; +OnInit: + .distance=2; + end; +} + +007-2,65,66,0 script #007-2_65_66 NPC_HIDDEN,3,0,{ + end; +OnTouch: + doevent "#DungeonCore::OnHeat"; + end; +} diff --git a/npc/007-2/_import.txt b/npc/007-2/_import.txt new file mode 100644 index 000000000..33fc5a24b --- /dev/null +++ b/npc/007-2/_import.txt @@ -0,0 +1,5 @@ +// Map 007-2: Tulimshar Volcano Underground +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/007-2/_config.txt", +"npc/007-2/_mobs.txt", +"npc/007-2/_warps.txt", diff --git a/npc/007-2/_mobs.txt b/npc/007-2/_mobs.txt new file mode 100644 index 000000000..ef8ee3370 --- /dev/null +++ b/npc/007-2/_mobs.txt @@ -0,0 +1,10 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 007-2: Tulimshar Volcano Underground mobs +007-2,49,78,48,19 monster Red Scorpion 1072,12,25000,25000,Tycoon::OnKillRedScorpion +007-2,47,76,48,19 monster Fire Goblin 1067,12,25000,25000 +007-2,51,75,48,19 monster Red Slime 1092,20,25000,25000 +007-2,45,73,48,19 monster Angry Red Scorpion 1130,12,25000,25000 +007-2,45,37,48,19 monster Lava Slime 1097,16,25000,25000 +007-2,40,33,46,19 monster Red Mushroom 1042,6,25000,25000 +007-2,36,31,44,15 monster Fire Fairy 1183,12,25000,25000 +007-2,49,23,31,10 monster Red Slime Mother 1240,3,35000,25000 diff --git a/npc/007-2/_warps.txt b/npc/007-2/_warps.txt new file mode 100644 index 000000000..3817f2709 --- /dev/null +++ b/npc/007-2/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 007-2: Tulimshar Volcano Underground warps +007-2,65,65,0 warp #007-2_65_65 1,0,007-1,98,189 diff --git a/npc/_import.txt b/npc/_import.txt index 247b906e5..07df2a223 100644 --- a/npc/_import.txt +++ b/npc/_import.txt @@ -65,6 +65,7 @@ @include "npc/006-4/_import.txt" @include "npc/006-5/_import.txt" @include "npc/007-1/_import.txt" +@include "npc/007-2/_import.txt" @include "npc/008-0/_import.txt" @include "npc/008-1/_import.txt" @include "npc/008-2/_import.txt" 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; +} + diff --git a/npc/scripts.conf b/npc/scripts.conf index da22cb3a1..732a3626a 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -138,6 +138,7 @@ "npc/functions/gmbot.txt", "npc/functions/instances.txt", "npc/functions/captcha.txt", +"npc/functions/dungeon.txt", // Maps specific scripts @include "npc/_import.txt" |