summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/filters.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/filters.txt b/npc/functions/filters.txt
index 01e3a856..91e536dc 100644
--- a/npc/functions/filters.txt
+++ b/npc/functions/filters.txt
@@ -21,6 +21,8 @@ function script filter_notme {
// filter_sameguild( id )
function script filter_sameguild {
+ if (getarg(0) == getcharid(3))
+ return true;
if (getcharid(2) < 1)
return false;
return (strcharinfo(2, "~!<mk>@tmw2.org", getarg(0)) == strcharinfo(2));
@@ -37,6 +39,8 @@ function script filter_sameguildnotyou {
// filter_sameparty( id )
function script filter_sameparty {
+ if (getarg(0) == getcharid(3))
+ return true;
if (getcharid(1) < 1 && getarg(0) != getcharid(3))
return false;
return (strcharinfo(1, "~!<mk>@tmw2.org", getarg(0)) == strcharinfo(1));
@@ -44,6 +48,8 @@ function script filter_sameparty {
// filter_sameguildorparty( id )
function script filter_sameguildorparty {
+ if (getarg(0) == getcharid(3))
+ return true;
if (getcharid(2) < 1 && getcharid(1) < 1)
return false;
.@party=(strcharinfo(1, "~!<mk>@tmw2.org", getarg(0)) == strcharinfo(1));