blob: 77833d5fb044edd9d99254e7608fb2e1720d1fe7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// TMW2 scripts.
// Authors:
// Jesusalva
// Description:
// Several filters
// filter_always( id )
function script filter_always {
return true;
}
// filter_onlyme( id )
function script filter_onlyme {
return (getarg(0) == getcharid(3));
}
// filter_notme( id )
function script filter_notme {
return (getarg(0) != getcharid(3));
}
// filter_sameguild( id )
function script filter_sameguild {
if (getcharid(2) < 1)
return false;
return (strcharinfo(2, "~!<mk>@tmw2.org", getarg(0)) == strcharinfo(2));
}
// filter_sameparty( id )
function script filter_sameparty {
if (getcharid(1) < 1 && getarg(0) != getcharid(3))
return false;
return (strcharinfo(1, "~!<mk>@tmw2.org", getarg(0)) == strcharinfo(1));
}
// filter_notboss( id )
function script filter_notboss {
// 32 = MD_BOSS
return (!(getunitdata(getarg(0), UDT_MODE) & 32));
}
|