this should get you started
it just replaces the clan prefix tag with the brick rank (or brickcount if you want)
you can use the color tag (<color:######>) and color codes (\c#) in the tags
if you want to put it before the message instead of in the clan prefix tag, then you'd need to package the message sending stuff similar to the admin shields addon (pretty sure it does that)
if you want to preserve the clan tag you need to either make it do ^ or monkey with saving the tag and replacing bits and it's a bit of a mess
function brickRanksLoop()
{
cancel($brickRankLoop);
for(%i = 0; %i < ClientGroup.getCount(); %i++)
{
%client = ClientGroup.getObject(%i);
//can set the rank to just be the brick count if you want
//%client.clanPrefix = %client.brickGroup.getCount();
//or set the rank based on divisions
%brickCount = %client.brickGroup.getCount();
%tag = "lots"; //the top rank
if(%brickCount < 1000)
%tag = "few";
else
if(%brickCount < 5000)
%tag = "some";
else
if(%brickCount < 25000)
%tag = "many";
%client.clanPrefix = %tag;
}
$brickRankLoop = schedule(60000, 0, brickRanksLoop);
}
$brickRankLoop = schedule(60000, 0, brickRanksLoop);