summaryrefslogtreecommitdiff
path: root/npc/001-4/traps.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-17 22:22:15 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-17 22:22:15 -0300
commitd4ea6be2f953aa2d1ea5bea865a074ee8482a979 (patch)
tree4cf947e7e19ed47d06e004d6261f802b6b0e04d8 /npc/001-4/traps.txt
parent267e973b9e0c98880953012d39fd8e9e88d1d0cb (diff)
downloadserverdata-d4ea6be2f953aa2d1ea5bea865a074ee8482a979.tar.gz
serverdata-d4ea6be2f953aa2d1ea5bea865a074ee8482a979.tar.bz2
serverdata-d4ea6be2f953aa2d1ea5bea865a074ee8482a979.tar.xz
serverdata-d4ea6be2f953aa2d1ea5bea865a074ee8482a979.zip
Comments about the Easter traps @Saulc: Boom - Hurt players and/or stun monsters.
This means you can - and SHOULD - lead Forains into these traps.
Diffstat (limited to 'npc/001-4/traps.txt')
-rw-r--r--npc/001-4/traps.txt27
1 files changed, 13 insertions, 14 deletions
diff --git a/npc/001-4/traps.txt b/npc/001-4/traps.txt
index e51bc5e30..2b71d5184 100644
--- a/npc/001-4/traps.txt
+++ b/npc/001-4/traps.txt
@@ -5,23 +5,20 @@
// Traps.
function script SteelTrap {
- //if (!(isin(@map$, @x, @y, @x, @y))) goto L_Away;
- if (getnpctimer(0) == 0) goto L_armar;
- goto L_disparar;
-
-L_Away:
- mesn strcharinfo(0);
- mesq l("Something seems off with that!");
- return;
-
-L_armar:
- initnpctimer;
- setnpcdisplay @object_name$, NPC_TRAP_ONLINE;
- return;
+ // It was disarmed
+ if (getnpctimer(0) == 0)
+ {
+ initnpctimer;
+ setnpcdisplay @object_name$, NPC_TRAP_ONLINE;
+ return;
+ }
-L_disparar:
+ // Fire!!
setnpctimer 9000;
setnpcdisplay @object_name$, NPC_TRAP_TRIGGERED;
+
+ // Boom - Hurt players and/or stun monsters
+ // This means you can - and SHOULD - lead Forains into these traps
if (playerattached())
{
percentheal -80, 0;
@@ -31,6 +28,8 @@ L_disparar:
sc_start SC_WALKSPEED,15000,70;
sc_start SC_SLEEP,3000,0;
}
+
+ // A minor special effect and we're done.
specialeffect 11;
return;
}