error656
New Member
- Joined
- Aug 27, 2007
- Messages
- 60
- Reaction score
- 1
Hello
Im using Gesior ver 0.3.8, and have got a problem with highscore stats, namely i dont want to be show in higscore sample characters.
It is line code from config.php
i dont know is it have anything to do with that
also a code from signature.php
i quess that 'hidechars' should do the job but it doesnt work ;/
suspicious is that in highscore i dont have account manager, so i find in file highscore.php
and when i change line " AND name != "Account Manager" " and the other one for example to Sorcerer Sample then "account manager" back to highscore but Sorcerer is now hidden.
Anyone have got ide how to fix this to not showing anyone of sample character in highscore?
Error656
Im using Gesior ver 0.3.8, and have got a problem with highscore stats, namely i dont want to be show in higscore sample characters.
It is line code from config.php
Code:
$config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
also a code from signature.php
Code:
var $config = array
(
'database' => array ( "localhost" , "user" , "password" , "database" ),
'vocations' => array ( "No Vocation" , "Sorcerer" , "Druid" , "Paladin" , "Knight" , "Master Sorcerer" , "Elder Druid" , "Royal Paladin" , "Elite Knight" ),
'towns' => array ( 1 => 'Shaldoria', 2 => "Akrehmion", 3 => "Junglus City", 4 => 'Svargrond', 5 => 'Rising Isle', 6 => 'Yalahar', 7 => 'Kraza', 8 => 'Karama' ),
'groups' => array ( 2 => "Tutor" , 3 => "Senior Tutor" , 4 => "Gamemaster" , 5 => "Community Manager" , 6 => "God" ),
'hidechars' => array ( 'Account Manager' , 'Rook Sample' , 'Sorcerer Sample' , 'Druid Sample' , 'Paladin Sample' , 'Knight Sample' ),
'backgrounds' => array ( 'signatures/blue' , 'signatures/red' , 'signatures/green' ),
'color' => "#FFFFFF",
'statuscolor' => array ( "#358f0d" /* online */ , "#c40808" /* offline */ ),
'font' => "signatures/arial.ttf",
'size' => array ( 2 /* without font */ , 8 /* with font */ )
);
suspicious is that in highscore i dont have account manager, so i find in file highscore.php
Code:
if(isset($id))
$skills = $SQL->query('SELECT name,online,value,level,vocation,promotion FROM players,player_skills WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND players.id = player_skills.player_id AND player_skills.skillid = '.$id.' ORDER BY value DESC, count DESC LIMIT 101 OFFSET '.$offset);
elseif($list == "magic")
$skills = $SQL->query('SELECT name,online,maglevel,level,vocation,promotion FROM players WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY maglevel DESC, manaspent DESC LIMIT 101 OFFSET '.$offset);
elseif($list == "experience")
$skills = $SQL->query('SELECT name,online,level,experience,vocation,promotion FROM players WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY level DESC, experience DESC LIMIT 101 OFFSET '.$offset);
Anyone have got ide how to fix this to not showing anyone of sample character in highscore?
Error656