From 236b667f2265c29251449db0a1aefc8c9ebb5765 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Dec 2021 10:19:13 -0300 Subject: Add a new filter --- npc/functions/filters.txt | 5 +++++ 1 file changed, 5 insertions(+) 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)); -- cgit v1.2.3-70-g09d2