list($online) = $gdb[$sid]->SuperFetchArray( $qList[$vgs]["getCountCharacters"], array("where" => "WHERE `online`>'0'") );
if ( $l2cfg["gs"][$sid]["fake"]["enable"] ) {
$online = intval( $online * (1 + $l2cfg["gs"][$sid]["fake"]["percent"] / 100) );
}
$login = $controller->GetStatus( $l2cfg["ls"][$lid]["host"], $l2cfg["ls"][$lid]["port"] );
$game = $controller->GetStatus( $l2cfg["gs"][$sid]["host"], $l2cfg["gs"][$sid]["port"] );
list($countAcc) = $ldb[$lid]->SuperFetchArray( $qList[$vls]["getCountAccounts"], array("where" => "") );
list($countChars) = $gdb[$sid]->SuperFetchArray( $qList[$vgs]["getCountCharacters"], array("where" => "") );
list($countClans) = $gdb[$sid]->SuperFetchArray( $qList[$vgs]["getCountClans"] );
list($countHuman) = $gdb[$sid]->SuperFetchArray($qList[$vgs]["getCountHuman"], array("where" => "") );
list($countElf) = $gdb[$sid]->SuperFetchArray($qList[$vgs]["getCountElf"], array("where" => "") );
list($countDElf) = $gdb[$sid]->SuperFetchArray($qList[$vgs]["getCountDElf"], array("where" => "") );
list($countOrc) = $gdb[$sid]->SuperFetchArray($qList[$vgs]["getCountOrc"], array("where" => "") );
list($countDwarf) = $gdb[$sid]->SuperFetchArray($qList[$vgs]["getCountDwarf"], array("where" => "") );
list($countKamael) = $gdb[$sid]->SuperFetchArray($qList[$vgs]["getCountKamael"], array("where" => "") );
$countHuman = ( $countChars > 0 ) ? round( $countHuman / ($countChars / 100) ):0;
$countElf = ( $countChars > 0 ) ? round( $countElf / ($countChars / 100) ):0;
$countDElf = ( $countChars > 0 ) ? round( $countDElf / ($countChars / 100) ):0;
$countOrc = ( $countChars > 0 ) ? round( $countOrc / ($countChars / 100) ):0;
$countDwarf = ( $countChars > 0 ) ? round( $countDwarf / ($countChars / 100) ):0;
$countKamael = ( $countChars > 0 ) ? round( $countKamael / ($countChars / 100) ):0;
list($countDawn) = $gdb[$sid]->SuperFetchArray( $qList[$vgs]["getCountDawn"] , array("where" => ""));
list($countDusk) = $gdb[$sid]->SuperFetchArray( $qList[$vgs]["getCountDusk"] , array("where" => ""));