Jump to content

kangfredy

Members
  • Posts

    388
  • Joined

  • Last visited

Posts posted by kangfredy

  1. this is my server.php... o_Oa..any error??

     

     

    <?php

    return array(
        // Example server configuration. You may have more arrays like this one to
        // specify multiple server groups (however they should share the same login
        // server whilst they are allowed to have multiple char/map pairs).
        array(
            'ServerName'     => 'LibraRO',
            // Global database configuration (excludes logs database configuration).
            'DbConfig'       => array(
                //'Socket'     => '/tmp/mysql.sock',
                //'Port'       => 3306,
                //'Encoding'   => 'utf8', // Connection encoding -- use whatever here your MySQL tables collation is.
                'Convert'    => 'utf8',
                    // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
                    // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
                'Hostname'   => 'localhost',
                'Username'   => 'myusername',
                'Password'   => 'mypassword',
                'Database'   => 'mydatabase',
                'Persistent' => true,
                'Timezone'   => null // Example: '+0:00' is UTC.
                // The possible values of 'Timezone' is as documented from the MySQL website:
                // "The value can be given as a string indicating an offset from UTC, such as '+10:00' or '-6:00'."
                // "The value can be given as a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'." (see below continuation!)
                // **"Named time zones can be used only if the time zone information tables in the mysql database have been created and populated."
            ),
            // This is kept separate because many people choose to have their logs
            // database accessible under different credentials, and often on a
            // different server entirely to ensure the reliability of the log data.
            'LogsDbConfig'   => array(
                //'Socket'     => '/tmp/mysql.sock',
                //'Port'       => 3306,
                //'Encoding'   => null, // Connection encoding -- use whatever here your MySQL tables collation is.
                'Convert'    => 'utf8',
                    // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
                    // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
                'Hostname'   => 'localhost',
                'Username'   => 'myusername',
                'Password'   => 'mypassword',
                'Database'   => 'mydatabase',
                'Persistent' => true,
                'Timezone'   => null // Possible values is as described in the comment in DbConfig.
            ),
            // Login server configuration.
            'LoginServer'    => array(
                'Address'  => 'ro.revogamers.us',
                'Port'     => 6900,
                'UseMD5'   => true,
                'NoCase'   => true, // rA account case-sensitivity; Default: Case-INsensitive (true).
                'GroupID'  => 0,    // Default account group ID during registration.
                //'Database' => 'ragnarok'
            ),
            'CharMapServers' => array(
                array(
                    'ServerName'      => 'LibraRO',
                    'Renewal'         => true,
                    'MaxCharSlots'    => 9,
                    'DateTimezone'    => null, // Specifies game server's timezone for this char/map pair. (See: http://php.net/timezones)
                    //'ResetDenyMaps'   => 'sec_pri', // Defaults to 'sec_pri'. This value can be an array of map names.
                    //'Database'        => 'ragnarok', // Defaults to DbConfig.Database
                    'ExpRates' => array(
                        'Base'        => 100, // Rate at which (base) exp is given
                        'Job'         => 100, // Rate at which job exp is given
                        'Mvp'         => 100  // MVP bonus exp rate
                    ),
                    'DropRates' => array(
                        // The rate the common items (in the ETC tab, besides card) are dropped
                        'Common'      => 100,
                        'CommonBoss'  => 100,
                        // The rate healing items (that restore HP or SP) are dropped
                        'Heal'        => 100,
                        'HealBoss'    => 100,
                        // The rate usable items (in the item tab other then healing items) are dropped
                        'Useable'     => 100,
                        'UseableBoss' => 100,
                        // The rate at which equipment is dropped
                        'Equip'       => 100,
                        'EquipBoss'   => 100,
                        // The rate at which cards are dropped
                        'Card'        => 100,
                        'CardBoss'    => 100,
                        // The rate adjustment for the MVP items that the MVP gets directly in their inventory
                        'MvpItem'     => 100
                    ),
                    'CharServer'      => array(
                        'Address'     => 'ro.revogamers.us',
                        'Port'        => 6121
                    ),
                    'MapServer'       => array(
                        'Address'     => 'ro.revogamers.us',
                        'Port'        => 5121
                    ),
                    // -- WoE days and times --
                    // First parameter: Starding day 0=Sunday / 1=Monday / 2=Tuesday / 3=Wednesday / 4=Thursday / 5=Friday / 6=Saturday
                    // Second parameter: Starting hour in 24-hr format.
                    // Third paramter: Ending day (possible value is same as starting day).
                    // Fourth (final) parameter: Ending hour in 24-hr format.
                    // ** (Note, invalid times are ignored silently.)
                    'WoeDayTimes'   => array(
                        //array(0, '12:00', 0, '14:00'), // Example: Starts Sunday 12:00 PM and ends Sunday 2:00 PM
                        //array(3, '14:00', 3, '15:00')  // Example: Starts Wednesday 2:00 PM and ends Wednesday 3:00 PM
                    ),
                    // Modules and/or actions to disallow access to during WoE.
                    'WoeDisallow'   => array(
                        array('module' => 'character', 'action' => 'online'),  // Disallow access to "Who's Online" page during WoE.
                        array('module' => 'character', 'action' => 'mapstats') // Disallow access to "Map Statistics" page during WoE.
                    )
                )
            )
        )
    );

    ?>

  2. no error in status guys..



    FluxRO?check your server.php

     

    no error in server.php??(config file?)

     

    For the server status: 

    Could it be that your VPS and domain are hosted into seperated hosts?

    If yes, contact your webhosting provider and ask them to open port 6900, 6121 and 5121 for you. That should solve the problem.

     

    Voting problem:

    V4P is not an default Flux addon, it requires you to install it before you can access the page.

    If you haven't installed it, do so by downloading Jaypee's release and extract it in your cp/addons.

     

    no.it's same..from domain and vps..

  3. guys can i request this is npc can check IP address if same IP in login database..player cannot take this item.

     

    attachicon.gifnewbiereward.txt

    or that

     

    new_1-1,60,113,6	script	Newbiereward	823,{
    
    	if( #redemgive1 ) {
    L_dont:
    		mes "I already give your items.";
    		close;
    	}
    
    // Check if already give in other account
    	query_sql "SELECT `last_ip` FROM `login` WHERE `account_id` = "+ getcharid(3), .@last_ip$;
    	query_sql "SELECT CAST(`value` AS UNSIGNED) " + 
    			  "FROM global_reg_value " + 
    			  "LEFT JOIN `login` ON global_reg_value.account_id=`login`.account_id " + 
    			  "WHERE global_reg_value.`str`='#redemgive1' " +
    			  "AND `login`.`last_ip` LIKE '"+ escape_sql( .@last_ip$ ) +"' " +
    			  "ORDER BY CAST(`value` AS UNSIGNED) DESC LIMIT 10", 
    			  .@reward;
    	
    	for( .@i = 0; .@i < getarraysize( .@reward ); .@i++ )
    		if( .@reward[ .@i ] ) goto L_dont;
    
    	mes "this is your rewards";
    	getitem 7179, 20;
    	getitem 616, 3;
    	getitem 12623, 1;
    	set zeny,zeny + 1000000;
    	set #redemgive1, 1;
    	close;
    }
    

    This one avoid $variables

     

    but capuche..can you explain me your script work?it's different from my script? in post nummber 3 http://rathena.org/board/topic/79683-request-modify-my-reward-newbie/?p=184595 ???

  4. sory i have been change.........tq for inspiring me.

     

    im using from your script just this.


     

    query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", .@lip$);

    if ( getd("$" + .@lip$ + "_NG") > 0 || #NewbieGift > 0)
    {
        mes "[Newbie Gift]";
        mes "Sorry, You've get one.^^";
        close;
    }

     mes"this is it";

    getitem blablabla;

    getitem blablabla:

    set zeny...:

    next;

     

    mes"tq for playing";

    close;

     

    set #NewbieGift, 1;
    setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1;

     


×
×
  • Create New...