• 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!

Windows Znote ACC Help with Server Info

Klotharek

New Member
Joined
Jul 23, 2013
Messages
11
Reaction score
0
Hello everyone.
Here is my 'Server Info' on webpage
http://pics.tinypic.pl/i/00619/ffalkkme3138.png

Here serverinfo.php
Code:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>

<h1>Server Information</h1>
Here you will find all basic information about <?php echo '<b>'.$config['site_title'].'</b>'; ?>
<?php
// Check if PATH is correct
if (file_exists($config['server_path'].'/data/xml/stages.xml') && file_exists($config['server_path'].'/config.lua'))
{
    // Check if server stages are enabled
    $stages_path = simplexml_load_file($config['server_path'].'/data/xml/stages.xml');
    $lua_path = parse_ini_file($config['server_path'].'/config.lua');
    if ($stages_path->config['enabled'] != 0) {
        // Stages are beeing used
        echo "<h2>Server stages</h2>
        <table class='table table-striped table-hover'>
        <tbody><tr class='yellow'><td>Minium level</td><td>Maximun level</td><td>Multiplier</td></tr>";
        foreach ($stages_path->children()->stage as $stages) {
            if($stages['maxlevel'] === NULL) {
                echo '<tr><td><center>'.$stages['minlevel'].'</center></td><td><center>Infinite</center></td><td><center>x'.$stages['multiplier'].'</center></td></tr>';
            } else {
                echo '<tr><td><center>'.$stages['minlevel'].'</center></td><td><center>'.$stages['maxlevel'].'</center></td><td><center>x'.$stages['multiplier'].'</center></td></tr>';
            }
        }
        echo '</tbody></table>';
    } else {
        // Not using stages
        echo "<h2>Server rates</h2>
        <table class='table table-striped table-hover'>
        <tbody><tr class='yellow'><td>Experience rate</td><td>Skills rate</td><td>Magic rate</td><td>Loot rate</td></tr>
        <tr><td><center>x".$lua_path['rateExp']."</center></td><td><center>x".$lua_path['rateSkill']."</center></td><td><center>x".$lua_path['rateMagic']."</center></td><td><center>x".$lua_path['rateLoot']."</center></td></tr>
        </tbody></table>";
    }
    // General info
    $information = array(
        'World type'             => $lua_path['worldType'],
        'Protection level'       => $lua_path['protectionLevel'],
        'Kills to red skull'     => $lua_path['killsToRedSkull'],
        'Kills to black skull'   => $lua_path['killsToBlackSkull'],
        'Remove ammo'            => $lua_path['removeAmmoWhenUsingDistanceWeapon'],
        'Remove runes'               => $lua_path['removeChargesFromRunes'],
        'Time to decrease frags' => $lua_path['timeToDecreaseFrags'],
        'House rent period'      => $lua_path['houseRentPeriod'],
        'AFK Kickout minutes'    => $lua_path['kickIdlePlayerAfterMinutes'],
        'Location'               => $lua_path['location'],
        'Owner name'             => $lua_path['ownerName']
    );
    echo "<h2>Server general information</h2><ul>";
    foreach ($information as $key => $value) {
        echo "<li>".$key." - <b>".$value."</b></li>";
    }
    echo '</ul>';
} else {
    echo '<h1>Invliad PATH, please check your config file</h1>';
}
?>
<?php include 'layout/overall/footer.php'; ?>

TFS 1.0 (10.41) + Znote ACC 1.5v

Help anyone?
 
try:
PHP:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>

<h1>Server Information</h1>
Here you will find all basic information about <?php echo '<b>'.$config['site_title'].'</b>'; ?>


<?php

$path = $config['server_path'];
echo '<table cellpadding="0"><tr class="yellow"><td><center>From level</center></td><td><center>To level</center></td><td><center>Rate</center></td></tr>';
if (is_dir($path)) {

    
    $xml1 = simplexml_load_file($path."\data\xml\stages.xml");
    foreach ($xml1->world->children() as $stage1) {
        if ($stage1['maxlevel'] == '') {
        $stage1['maxlevel'] = 'Infinite';    
        }
        echo '<tr><td><center>'.$stage1['minlevel'].'</center></td><td><center>'.$stage1['maxlevel'].'</center></td><td><center>'.$stage1['multiplier'].'</center></td></tr>';    
        }
    $word = 'a'; 
    $loadconfig = file($path.'\config.lua');
    $key = 'rateMagic';
    $key2 = 'rateLoot';
    $key3 = 'rateSkill';
    $found = false;
    foreach ($loadconfig as $lineNumber => $e) {
    if (strpos($e,$key) !== false) {
       $found = true;
       break;
    }
}

    foreach ($loadconfig as $lineNumberr => $ee) {
    if (strpos($ee,$key2) !== false) {
       $found = true;
       break;
    }
}

    foreach ($loadconfig as $lineNumberrr => $eee) {
    if (strpos($eee,$key3) !== false) {
       $found = true;
       break;
    }
}

if ($found) {
   echo '<table cellpadding="0"><tr class="yellow"><td><center>Magic rate</center></td><td><center>Skills rate</center></td><td><center>Loot rate</center></td></tr>';
   echo '<tr><td><center>'.$loadconfig[$lineNumber].'</center></td><td><center>'.$loadconfig[$lineNumberrr].'</center></td><td><center>'.$loadconfig[$lineNumberr].'</center></td></tr>';
}
    $link = mysqli_connect($config['sqlHost'], $config['sqlUser'], $config['sqlPassword'], $config['sqlDatabase']);

    $getallplayers = mysqli_query($link, "SELECT COUNT(*) as MAX FROM players");
    $parseallplayers = mysqli_fetch_assoc($getallplayers);
    $getallaccounts = mysqli_query($link, "SELECT COUNT(*) as MEX FROM accounts");
    $parseallaccounts = mysqli_fetch_assoc($getallaccounts);
    $getallguilds = mysqli_query($link, "SELECT COUNT(*) as MOX FROM guilds");
    $parseallguilds = mysqli_fetch_assoc($getallguilds);
    echo '</table></tr>';
    echo '<table cellpadding="0"><tr class="yellow"><td><center>Total accounts</center></td><td><center>Total players</center></td><td><center>Total guilds</center></td></tr>';
    echo '<tr><td><center>'.$parseallplayers['MAX'].'</center></td><td><center>'.$parseallaccounts['MEX'].'</center></td><td><center>'.$parseallguilds['MOX'].'</center></td></tr>';
    echo '</table></tr>';
    
    $talkactions = simplexml_load_file($path.'/data/talkactions/talkactions.xml');
    echo '<table cellpadding="0"><tr class="yellow"><td><center>Player commands</center></td></center></tr>';
    foreach ($talkactions as $commands) {
        if (empty($commands['access'])) {
    echo '<center><tr><td><center>'.$commands['words'].'</center></td></tr></center>';
        }
    }
    echo '</table></tr>';
    
} else {
    
echo '<br><b>Invalid path!</b>';
    
}
?>
<?php include 'layout/overall/footer.php'; ?>
 
post your config.lua :)
Code:
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = "yes"
protectionLevel = 20
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 6 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = "no"
expFromPlayersLevelRange = 75
noDamageToSameLookfeet = "no"

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "xxx"
bindOnlyGlobalAddress = "no"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to the Forgotten Server!"
onePlayerOnlinePerAccount = "yes"
allowClones = "no"
serverName = "Forgotten"
statusTimeout = 5000
replaceKickOnLogin = "yes"
maxPacketsPerSecond = 25

-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1

-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 3000
houseRentPeriod = "weekly"

-- Item Usage
timeBetweenActions = 100
timeBetweenExActions = 500

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "SadTeamMapper"
mapAuthor = "RM II"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = "yes"
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "xxx"
mysqlPass = "xxx"
mysqlDatabase = "xxx"
mysqlPort = 3306
mysqlSock = ""

-- Misc.
allowChangeOutfit = "yes"
freePremium = "yes"
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = "no"
classicEquipmentSlots = "no"

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 17
rateLoot = 3
rateMagic = 5
rateSpawn = 1

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = "yes"

-- Scripts
warnUnsafeScripts = "no"
convertUnsafeScripts = "no"

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process priority.
defaultPriority = "high"
startupDatabaseOptimization = "no"

-- Status server information
ownerName = "RM II"
ownerEmail = ""
url = ""
location = "Europe"
 
Same Problem It Doesn't Works

Here are Stages

Code:
<?xml version="1.0" encoding="UTF-8"?>
<stages>
    <config enabled="1" />
    <stage minlevel="1" maxlevel="8" multiplier="50" />
    <stage minlevel="9" maxlevel="20" multiplier="40" />
    <stage minlevel="21" maxlevel="50" multiplier="30" />
    <stage minlevel="51" maxlevel="100" multiplier="20" />
    <stage minlevel="101" maxlevel="130" multiplier="15" />
    <stage minlevel="131" maxlevel="180" multiplier="10" />
    <stage minlevel="181" maxlevel="230" multiplier="5" />
    <stage minlevel="131" maxlevel="180" multiplier="3" />
    <stage minlevel="181" multiplier="2" />
</stages>
 
Code:
-- Combat settings
worldType = "pvp"
hotkeyAimbotEnabled = "yes"
protectionLevel = 20
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 6 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = "no"
expFromPlayersLevelRange = 75
noDamageToSameLookfeet = "no"

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "xxx"
bindOnlyGlobalAddress = "no"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to the Forgotten Server!"
onePlayerOnlinePerAccount = "yes"
allowClones = "no"
serverName = "Forgotten"
statusTimeout = 5000
replaceKickOnLogin = "yes"
maxPacketsPerSecond = 25

-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1

-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 3000
houseRentPeriod = "weekly"

-- Item Usage
timeBetweenActions = 100
timeBetweenExActions = 500

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "SadTeamMapper"
mapAuthor = "RM II"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = "yes"
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "xxx"
mysqlPass = "xxx"
mysqlDatabase = "xxx"
mysqlPort = 3306
mysqlSock = ""

-- Misc.
allowChangeOutfit = "yes"
freePremium = "yes"
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = "no"
classicEquipmentSlots = "no"

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 17
rateLoot = 3
rateMagic = 5
rateSpawn = 1

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = "yes"

-- Scripts
warnUnsafeScripts = "no"
convertUnsafeScripts = "no"

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process priority.
defaultPriority = "high"
startupDatabaseOptimization = "no"

-- Status server information
ownerName = "RM II"
ownerEmail = ""
url = ""
location = "Europe"

Try now
 
Back
Top