diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-10-17 19:11:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-10-17 19:11:49 -0300 |
commit | fee8af4cd68dee370ac3151725d61693ce06ca17 (patch) | |
tree | e953a742c9fa08322c0599f6fe9ba6fad70f5ac3 /npc/023-4 | |
parent | 2afe85725c8b0fc62ac89cba1ca3540156c6a2af (diff) | |
download | serverdata-fee8af4cd68dee370ac3151725d61693ce06ca17.tar.gz serverdata-fee8af4cd68dee370ac3151725d61693ce06ca17.tar.bz2 serverdata-fee8af4cd68dee370ac3151725d61693ce06ca17.tar.xz serverdata-fee8af4cd68dee370ac3151725d61693ce06ca17.zip |
Aethyr Initial Version
Diffstat (limited to 'npc/023-4')
-rw-r--r-- | npc/023-4/_import.txt | 5 | ||||
-rw-r--r-- | npc/023-4/_warps.txt | 4 | ||||
-rw-r--r-- | npc/023-4/traps.txt | 58 |
3 files changed, 67 insertions, 0 deletions
diff --git a/npc/023-4/_import.txt b/npc/023-4/_import.txt new file mode 100644 index 000000000..5b4de2d7b --- /dev/null +++ b/npc/023-4/_import.txt @@ -0,0 +1,5 @@ +// Map 023-4: Ice Caves +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/023-4/023-4_blackbox.txt", +"npc/023-4/_warps.txt", +"npc/023-4/traps.txt", diff --git a/npc/023-4/_warps.txt b/npc/023-4/_warps.txt new file mode 100644 index 000000000..b678b06be --- /dev/null +++ b/npc/023-4/_warps.txt @@ -0,0 +1,4 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 023-4: Ice Caves warps +023-4,42,70,0 warp #023-4_42_70 0,0,023-3,93,220 +023-4,24,20,0 warp #023-4_24_20 0,0,031-1,58,103 diff --git a/npc/023-4/traps.txt b/npc/023-4/traps.txt new file mode 100644 index 000000000..9de778cc8 --- /dev/null +++ b/npc/023-4/traps.txt @@ -0,0 +1,58 @@ +// TMW2 Scripts +// Author: +// Jesusalva +// Description: +// Advanced Spike Traps + +///////////////////////////// +023-4,60,51,0 script #SpikeTrap NPC_TRAP_B,1,1,{ + end; + +OnInit: + .damage=0; + .time=0; + .goal=rand2(5,10); + initnpctimer; + end; + +OnTouch: +OnTouchNPC: + if (.damage) { + if (playerattached()) { + percentheal -80, 0; + } else { + sc_start SC_WALKSPEED, 15000, 60; + sc_start SC_STUN, rand2(3000), 1; + } + } + specialeffect(11, AREA, strnpcinfo(0)); + end; + +OnTimer1000: + .time+=1; + if (.time > .goal) { + .damage = !(.damage); + .time = 0; + if (.damage) + setnpcdisplay strnpcinfo(0), NPC_TRAP_ONLINE_B; + else + setnpcdisplay strnpcinfo(0), NPC_TRAP_B; + } + initnpctimer; + end; +} + +023-4,50,60,0 duplicate(#SpikeTrap) #SpikeTrap001 NPC_TRAP,1,1 +023-4,31,59,0 duplicate(#SpikeTrap) #SpikeTrap002 NPC_TRAP,1,1 +023-4,31,48,0 duplicate(#SpikeTrap) #SpikeTrap003 NPC_TRAP,1,1 +023-4,22,50,0 duplicate(#SpikeTrap) #SpikeTrap004 NPC_TRAP,1,1 +023-4,39,39,0 duplicate(#SpikeTrap) #SpikeTrap005 NPC_TRAP,1,1 +023-4,42,42,0 duplicate(#SpikeTrap) #SpikeTrap006 NPC_TRAP,1,1 +023-4,52,44,0 duplicate(#SpikeTrap) #SpikeTrap007 NPC_TRAP,1,1 +023-4,50,46,0 duplicate(#SpikeTrap) #SpikeTrap008 NPC_TRAP,1,1 +023-4,47,28,0 duplicate(#SpikeTrap) #SpikeTrap009 NPC_TRAP,1,1 +023-4,44,28,0 duplicate(#SpikeTrap) #SpikeTrap010 NPC_TRAP,1,1 +023-4,42,25,0 duplicate(#SpikeTrap) #SpikeTrap011 NPC_TRAP,1,1 +023-4,39,24,0 duplicate(#SpikeTrap) #SpikeTrap012 NPC_TRAP,1,1 + + |