• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Remove GOD from Highscore list?

Ray Rewind

Doctor
Joined
Jun 6, 2009
Messages
1,348
Reaction score
75
Location
Germany
My GOD is level 2000 for testing purpose how can I fix that it is not listed in the highscore list?

Using Znote Acc

!

PHP:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
echo '<link href="high.css" rel="stylesheet" type="text/css" />';
if ($config['log_ip']) {
    znote_visitor_insert_detailed_data(3);
}
if (empty($_POST) === false) {
   
    #if ($_POST['token'] == $_SESSION['token']) {
   
    /* Token used for cross site scripting security */
    if (isset($_POST['token']) && Token::isValid($_POST['token'])) {
       
        $skillid = (int)$_POST['selected'];
        $cache = new Cache('engine/cache/highscores');

        if ($cache->hasExpired()) {
            $tmp = highscore_getAll();

            $cache->setContent($tmp);
            $cache->save();
           
            $array = isset($tmp[$skillid]) ? $tmp[$skillid] : $tmp[7];
        } else {
            $tmp = $cache->load();
            $array = $tmp[$skillid];
        }
       
        if ($skillid < 9) {
        // Design and present the list
        if ($array) {
            ?>
            <h2>
                <?php echo ucfirst(skillid_to_name($skillid)); ?> scoreboard. Next update:
                    <?php
                        if ($cache->remainingTime() > 0) {
                            $hours = seconds_to_hours($cache->remainingTime());
                            $minutes = ($hours - (int)$hours) * 60;
                            $seconds = ($minutes - (int)$minutes) * 60;
                            if ($hours >= 1) {
                                echo (int)$hours .'h';
                            }
                            if ($minutes >= 1) {
                                echo ' '. (int)$minutes .'m';
                            }
                            if ($seconds >= 1) {
                                echo ' '. (int)$seconds .'s';
                            }
                        } else {
                            echo '0s';
                        }
                    ?>. <?php echo remaining_seconds_to_clock($cache->remainingTime());?>
            </h2>
            <table>
                <tr class="yellow">
                    <td>Country:</td>
                    <td>Outfit:</td>
                    <td>Name:</td>
                    <?php
                    if ($skillid == 7) echo '<td>Level:</td><td>Experience:</td>';
                    else {
                    ?>
                    <td>Value:</td>
                    <?php
                    }
                    if ($skillid == 7 || $skillid == 6 || $skillid == 5) {
                        echo '<td>Vocation:</td>';
                    }
                    ?>
                </tr>
                    <?php
                    foreach ($array as $value) {
                        // start foreach
                        $chardata = user_character_data(user_character_id($value[0]), 'group_id');
                        if ($chardata['group_id'] < 2) {
                            echo '<tr>';
                            echo '<td width="20px" height="10px">';
                            $getaccid = mysql_query("SELECT account_id FROM players WHERE name = '$value[0]'") or die(mysql_error());
                            $parse1 = mysql_fetch_assoc($getaccid);
                            $name1 = $parse1['account_id'];
                            $flags = mysql_query("SELECT flag FROM znote_accounts WHERE account_id = '$name1'") or die(mysql_error());
                            $getflags = mysql_fetch_assoc($flags);
                            echo '<center><img src="\flags\\'.$getflags['flag'].'.png"></center>';
                            echo'</td>';
                            echo '<td class="pp">';
                            $outfit = mysql_query("SELECT * FROM players WHERE account_id = '$name1'") or die(mysql_error());
                            $getoutfit = mysql_fetch_assoc($outfit);
                            echo '<center><img src="outfitter.php?id='.$getoutfit['looktype'].'&addons='.$getoutfit['lookaddons'].'&head='.$getoutfit['lookhead'].'&body='.$getoutfit['lookbody'].'&legs='.$getoutfit['looklegs'].'&feet='.$getoutfit['lookfeet'].'"/></center>';
                            echo '</td>';
                            echo '<td><a href="characterprofile.php?name='. $value[0] .'">'. $value[0] .'</a></td>';
                            if ($skillid == 7) echo '<td>'. $value[3] .'</td>';
                            echo '<td>'. $value[1] .'</td>';
                            if ($skillid == 7 || $skillid == 6 || $skillid == 5) {
                                echo '<td>'. $value[2] .'</td>';
                            }
                            echo '</tr>';
                        }
                        // end foreach
                    }
                    ?>
            </table>
            <?php
        } else {
            echo 'Empty list, it appears all players have less than 500 experience points.';
        }
        //Done.
        }
    } else {
        echo 'Token appears to be incorrect.<br><br>';
        //Token::debug($_POST['token']);
        echo 'Please clear your web cache/cookies <b>OR</b> use another web browser<br>';
    }
}

/*
0 fist: SELECT (SELECT `name` from `players` WHERE `player_id`=`id`) AS `name`, `value` FROM `player_skills` WHERE `skillid`=0
1 club:
2 sword:
3 axe:
4 dist:
5 Shield:
6 Fish
7 Hardcoded experience
8 Hardcoded maglevel
*/
include 'layout/overall/footer.php'; ?>
 
Why don't you lower the GMs level to 2 and create a GM weapon which deals 99999999 damage. make it a wand, so that you can hit on range.

Could be a solution if you don't need the levels for anything else :p
 
You have it already in highscores:

Code:
if ($chardata['group_id'] < 2) {
Make sure that your GOD group_id is more than 2
 
if ($chardata['account_id'] = x) { <div id="x" style="display:none;"></div>
something like that. if script founds your account id or your group id (admin stage) it will display as none.
im sure its wrong script but something like that :}. others can help with this.
 
Back
Top