summaryrefslogtreecommitdiff
path: root/npc/008-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-24 00:21:17 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-24 00:21:17 -0300
commit932b551de8edaed5edc0c6e416588c04c72b5643 (patch)
tree25216278db05d76ec98cfeef66d098b7608d35e5 /npc/008-2
parenta9a69727c65f311f8255536389549e0ab32a3f87 (diff)
downloadserverdata-932b551de8edaed5edc0c6e416588c04c72b5643.tar.gz
serverdata-932b551de8edaed5edc0c6e416588c04c72b5643.tar.bz2
serverdata-932b551de8edaed5edc0c6e416588c04c72b5643.tar.xz
serverdata-932b551de8edaed5edc0c6e416588c04c72b5643.zip
Switches: Prevent running functions when already switched
Diffstat (limited to 'npc/008-2')
-rw-r--r--npc/008-2/_config.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/008-2/_config.txt b/npc/008-2/_config.txt
index ce9c7ad2b..1da640c7d 100644
--- a/npc/008-2/_config.txt
+++ b/npc/008-2/_config.txt
@@ -10,9 +10,9 @@ OnInit:
setcells "008-2", 80, 208, 88, 208, 3, "008-2_80_208";
}
-// FIXME: Either let flip/unflip, or only run once.
-// This could be done with a new attribute and checking NPC display when only run once.
008-2,106,237,0 script #008-2_106_237 NPC_SWITCH_ONLINE,{
+ if (getnpcclass() == NPC_SWITCH_OFFLINE)
+ end;
callfunc "massprovoke", 12;
setnpcdisplay "#008-2_106_237", NPC_SWITCH_OFFLINE;
end;
@@ -20,9 +20,9 @@ OnInit:
.distance=2;
}
-// FIXME: Either let flip/unflip, or only run once.
-// This could be done with a new attribute and checking NPC display when only run once.
008-2,66,143,0 script #008-2_66_143 NPC_SWITCH_OFFLINE,{
+ if (getnpcclass() == NPC_SWITCH_ONLINE)
+ end;
callfunc "grenade", 12, 10000;
setnpcdisplay "#008-2_66_143", NPC_SWITCH_ONLINE;
end;
@@ -30,9 +30,9 @@ OnInit:
.distance=2;
}
-// FIXME: Either let flip/unflip, or only run once.
-// This could be done with a new attribute and checking NPC display when only run once.
008-2,111,166,0 script #008-2_111_166 NPC_SWITCH_ONLINE,{
+ if (getnpcclass() == NPC_SWITCH_OFFLINE)
+ end;
callfunc "ALCReset";
setnpcdisplay "#008-2_111_166", NPC_SWITCH_OFFLINE;
end;