summaryrefslogtreecommitdiff
path: root/npc/001-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-22 21:32:25 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-22 21:32:25 -0300
commitf0c58069dbd7721b140ba3f585a4c6e6ad315352 (patch)
tree25ca5868ef5fe382f423cb0ce93998e43be4561f /npc/001-4
parent35690c372b854014c2fad5f7b80502df962c6087 (diff)
downloadserverdata-f0c58069dbd7721b140ba3f585a4c6e6ad315352.tar.gz
serverdata-f0c58069dbd7721b140ba3f585a4c6e6ad315352.tar.bz2
serverdata-f0c58069dbd7721b140ba3f585a4c6e6ad315352.tar.xz
serverdata-f0c58069dbd7721b140ba3f585a4c6e6ad315352.zip
Move traps definition to npc/config
Make maps
Diffstat (limited to 'npc/001-4')
-rw-r--r--npc/001-4/traps.txt38
1 files changed, 0 insertions, 38 deletions
diff --git a/npc/001-4/traps.txt b/npc/001-4/traps.txt
index 3d50f34fe..bfee1265e 100644
--- a/npc/001-4/traps.txt
+++ b/npc/001-4/traps.txt
@@ -4,44 +4,6 @@
// Description:
// Traps.
-// SteelTrap( {damage=80%}, {delay=15s}, {stun=3s}, {npcname=auto} )
-function script SteelTrap {
- .@dmg=getarg(0, 80);
- .@delay=getarg(1, 15);
- .@stun=getarg(2, 3);
- .@n$=getarg(3, strnpcinfo(0));
-
- // It was disarmed
- if (getnpctimer(0) == 0)
- {
- initnpctimer;
- setnpcdisplay .@n$, NPC_TRAP_ONLINE;
- return;
- }
-
- // Fire!!
- setnpctimer 9000;
- setnpcdisplay .@n$, NPC_TRAP_TRIGGERED;
-
- // Boom - Hurt players and/or stun monsters
- // This means you can - and SHOULD - lead Forains into these traps
- if (playerattached())
- {
- percentheal -(.@dmg), 0;
- }
- else
- {
- .@stun*=1000;
- sc_start SC_WALKSPEED,(.@delay*1000),60;
- sc_start SC_STUN,rand(.@stun,.@stun*3),0;
- }
-
- // A minor special effect and we're done.
- specialeffect 11;
- return;
-}
-
-
001-4,275,204,0 script #001-4_275x204 NPC_TRAP,0,0,{
mesn strcharinfo(0);
mesq l("Something seems off with that!");