if you want to do in specific map, maybe getunits can help.
something like...
.@count = getunits((BL_PC), .@units, false, "pay_fild01");
for(.@i = 0; .@i < .@count; .@i++) {
attachrid(.@units[.@i]);
sc_end(SC_END);
}
But this piece of code need to be trigger by some way, like, Ontimer events, npc talk event, on touch event or whatever things that trigger this.
Like..
OnTimer5000:
.@count = getunits((BL_PC), .@units, false, "pay_fild01");
for(.@i = 0; .@i < .@count; .@i++) {
attachrid(.@units[.@i]);
sc_end(SC_END);
}
stopnpctimer();
initnpctimer();
end;
OnInit:
initnpctimer();
end;
This will remove all the buffs that all players have in pay_fild01 each 5seconds.