Jump to content

Chok Designer

Members
  • Posts

    108
  • Joined

  • Last visited

Posts posted by Chok Designer

  1. You really don't need to merge it to your data.grf. Just edit your data.ini and make sure your client reads GRF first.

    [Data]
    0=yourdata.grf
    1=data.grf
    

    
    [Data]
    0=clientinfo.xml
    1=SparklesRO.grf
    2=rdata.grf
    3=data.grf
    

    Still doesn't allow me to spawn the item I tried patching.

    Any ideas?

    that is wrong....

    try use edit this

    //grf_file - [Relative Address]

    grf_file=data.grf<<<<<------your server GRF

  2. <?php
    if (!defined('FLUX_ROOT')) exit;
    
    $title = Flux::message('ServerStatusTitle');
    $cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache';
    
    if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 60)) {
    $serverStatus = unserialize(file_get_contents($cache));
    }
    else {
    $serverStatus = array();
    foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) {
    if (!array_key_exists($groupName, $serverStatus)) {
    $serverStatus[$groupName] = array();
    }
    
    $loginServerUp = $loginAthenaGroup->loginServer->isUp();
    
    foreach ($loginAthenaGroup->athenaServers as $athenaServer) {
    $serverName = $athenaServer->serverName;
    
    $sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0";
    $sth = $loginAthenaGroup->connection->getStatement($sql);
    $sth->execute();
    $res = $sth->fetch();
    
    $serverStatus[$groupName][$serverName] = array(
    'loginServerUp' => $loginServerUp,
    'charServerUp' => $athenaServer->charServer->isUp(),
    'mapServerUp' => $athenaServer->mapServer->isUp(),
    'playersOnline' => intval($res ? $res->players_online : 0)
    );
    }
    }
    
    $fp = fopen($cache, 'w');
    if (is_resource($fp)) {
    fwrite($fp, serialize($serverStatus));
    fclose($fp);
    }
    }
    ?>
    

    Here!...

    SOLVED!

  3. im little confusing with this..

    my server is online but server status in offline in my fluxcp...

    plz help me......tnx....

    all applications is working my server status is the only error...

    here's my screenshots..

  4. this is my server.php

    'Hostname' => '180.191.****',<<<------i put my ip here

    'Username' => 'root',

    'Password' => '*******',<<<-----my pass

    'Database' => 'chokro',

    'Persistent' => true,

    'Timezone' => null, // Example: '+0:00' is UTC.

    'Hostname' => '180.191.****',<<<------i put my ip here

    'Username' => 'root',

    'Password' => '******',<<<-----my pass

    'Database' => 'chokro',

    'Persistent' => true,

    'Timezone' => null // Possible values is as described in the comment in DbConfig.

    // Login server configuration.

    'LoginServer' => array(

    'Address' => '180.191.****',<<<------i put my ip here

    'Port' => 6900,

    'UseMD5' => false,

    'NoCase' => true, // eA account case-sensitivity; Default: Case-INsensitive (true).

    'Level' => 0, // Default account level during registration.

    //'Database' => 'ragnarok'

    'CharServer' => array(

    'Address' => '180.191.****',<<<------i put my ip here

    'Port' => 6121

    ),

    'MapServer' => array(

    'Address' => '180.191.****',<-------i put my ip here

    'Port' => 5121

    this is my inter_athena

    // Global SQL settings

    // overriden by local settings when the hostname is defined there

    // (currently only the login-server reads/obeys these settings)

    sql.db_hostname: 127.0.0.1

    sql.db_port: 3306

    sql.db_username: root

    sql.db_password: *****<<<<<------my pass

    sql.db_database: chokro

    sql.codepage:

    // MySQL Character SQL server

    char_server_ip: 127.0.0.1

    char_server_port: 3306

    char_server_id: root

    char_server_pw: *****<<<<<------my pass

    char_server_db: chokro

    // MySQL Map SQL Server

    map_server_ip: 127.0.0.1

    map_server_port: 3306

    map_server_id: root

    map_server_pw: *****<<<<<------my pass

    map_server_db: chokro

    // MySQL Log SQL Database

    log_db_ip: 127.0.0.1

    log_db_port: 3306

    log_db_id: root

    log_db_pw: *****<<<<<------my pass

    log_db_db: log

    log_codepage:

    log_login_db: loginlog

    is this right?

  5. how to fix this?

    Critical Error

    An error was encountered during the lifetime of the application.

    This could be due to a variety of problems, such as a bug in the application.

    However, normally it is caused by misconfiguration.

    Exception Details

    Error: PDOException

    Message: SQLSTATE[28000] [1045] Access denied for user 'root'@'srv20.000webhost.com' (using password: YES)

    File: /home/a7626653/public_html/cp/lib/Flux/Connection.php:81 File Line Function/Method /home/a7626653/public_html/cp/lib/Flux/Connection.php 81 PDO::__construct() /home/a7626653/public_html/cp/lib/Flux/Connection.php 94 Flux_Connection::connect() /home/a7626653/public_html/cp/lib/Flux/Connection.php 159 Flux_Connection::getConnection() /home/a7626653/public_html/cp/modules/server/status.php 23 Flux_Connection::getStatement() /home/a7626653/public_html/cp/lib/Flux/Template.php 337 include() /home/a7626653/public_html/cp/lib/Flux/Dispatcher.php 168 Flux_Template::render() /home/a7626653/public_html/cp/index.php 177 Flux_Dispatcher::dispatch()

    Exception Trace As String

    #0 /home/a7626653/public_html/cp/lib/Flux/Connection.php(81): PDO->__construct(*hidden*)

    #1 /home/a7626653/public_html/cp/lib/Flux/Connection.php(94): Flux_Connection->connect(Object(Flux_Config))

    #2 /home/a7626653/public_html/cp/lib/Flux/Connection.php(159): Flux_Connection->getConnection()

    #3 /home/a7626653/public_html/cp/modules/server/status.php(23): Flux_Connection->getStatement('SELECT COUNT(ch...')

    #4 /home/a7626653/public_html/cp/lib/Flux/Template.php(337): include('/home/a7626653/...')

    #5 /home/a7626653/public_html/cp/lib/Flux/Dispatcher.php(168): Flux_Template->render()

    #6 /home/a7626653/public_html/cp/index.php(177): Flux_Dispatcher->dispatch(Array)

    #7 {main}

  6. pleas help me how to open port 6900, 5121, 6121 in my PRO link h5001N

    it is possible?..

    i'll try it many times but when i check port 6900 5121 and 6121 it say always close

    but my port 80 is open..

    how to open this 3 ports...help me guys

    SOLVED!!!! now i know how...tnx!!! Winz

×
×
  • Create New...