summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-28 10:19:13 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-28 10:19:13 -0300
commit236b667f2265c29251449db0a1aefc8c9ebb5765 (patch)
treec892c8c0d33f570b1bf412b236a2a0c06eeae8c4 /npc
parent61d895a1214e5e92cc506d88d2f37baeb0b30f11 (diff)
downloadserverdata-236b667f2265c29251449db0a1aefc8c9ebb5765.tar.gz
serverdata-236b667f2265c29251449db0a1aefc8c9ebb5765.tar.bz2
serverdata-236b667f2265c29251449db0a1aefc8c9ebb5765.tar.xz
serverdata-236b667f2265c29251449db0a1aefc8c9ebb5765.zip
Add a new filter
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/filters.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/filters.txt b/npc/functions/filters.txt
index 01e3a8569..bb4d8d6dd 100644
--- a/npc/functions/filters.txt
+++ b/npc/functions/filters.txt
@@ -119,6 +119,11 @@ function script filter_friendly {
return !(filter_hostile(getarg(0)));
}
+// filter_friendlynotme( id )
+function script filter_friendlynotme {
+ return (getarg(0) != getcharid(3) && filter_friendly(getarg(0)));
+}
+
// filter_notboss( id )
function script filter_notboss {
return (!(getunitdata(getarg(0), UDT_MODE) & MD_BOSS));