//group_chk("variable",valuetocompare{,mode}) function script group_chk { .@mode = getarg(2,0); .@count = 0; .@num = 0; if(!.@mode){ getpartymember getcharid(1),1; .@num = $@partymembercount; for(.@x=0;.@x<.@num;.@x++){ if(getvar(getd(getarg(0)),$@partymembercid[.@x]) >= getarg(1)) .@count++; } }else{ getguildmember getcharid(2),1; .@num = $@guildmembercount; for(.@x=0;.@x<.@num;.@x++){ if(getvar(getd(getarg(0)),$@guildmembercid[.@x]) >= getarg(1)) .@count++; } } if(.@count >= .@num) return 1; return 0; }