diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-15 10:40:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-15 10:40:58 -0300 |
commit | 277280062ed1f28fa2781c29c8a389e0f97d1760 (patch) | |
tree | eaca23e3f57624cb38dcd8ecedf119d7e1e9d3c9 /npc | |
parent | eb9b35cb6090c65ca8ee8c27c5f3888c06784f3a (diff) | |
download | serverdata-277280062ed1f28fa2781c29c8a389e0f97d1760.tar.gz serverdata-277280062ed1f28fa2781c29c8a389e0f97d1760.tar.bz2 serverdata-277280062ed1f28fa2781c29c8a389e0f97d1760.tar.xz serverdata-277280062ed1f28fa2781c29c8a389e0f97d1760.zip |
Should be obvious, but you are same guild/party as yourself -.-
EVEN if you're not in a guild/party, so update filters.
(Unlike Moubootaur Legends where these filters are only used if you are in either)
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/filters.txt | 6 |
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)); |