$RPGServer::SortByLvl = True;
$RPGServer::SortByZone = False;
function Game::refreshClientScore(%clientId)
{
dbecho($dbechoMode2, "Game::refreshClientScore(" @ %clientId @ ")");
// blah blah.. useless crap... then this stuff...
%z = Zone::getDesc(fetchData(%clientId, "zone"));
if(%z == -1)
%z = "unknown";
if($RPGServer::SortByLvl && !$RPGServer::SortByZone)
Client::setScore(%clientId, "%n\t" @ %z @ "\t" @ fetchData(%clientId, "LVL") @ "\t" @ getFinalCLASS(%clientId), fetchData(%clientId, "LVL"));
else if($RPGServer::SortByZone && !$RPGServer::SortByLvl)
{
%Num = "";
if(%z == "unknown")
%Num = $numZones+15;
else
{
for(%i=1; %i <= $numZones; %i++)
if($Zone::Desc[%i] == %z)
%Num = %i;
if(%Num == "")
%Num = $numZones+15;
}
Client::setScore(%clientId, "%n\t" @ %z @ "\t" @ fetchData(%clientId, "LVL") @ "\t" @ getFinalCLASS(%clientId), %Num);
}
}
yea, that code is untested, but thats what boredom leads to, eViL coding more useless code ....