diff options
-rw-r--r-- | npc/functions/filters.txt | 5 |
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)); |