Jump to content

arcada

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by arcada

  1. On 9/22/2015 at 10:14 AM, llchrisll said:

    Hello guys,

     

    first off I'm not sure if I'm in the correct section, sorry in advance.

     

    To the problem or rather question about the EXP Display in the Chatbox:

     

    I have the feeling that it does show one number too less as from the actual EXP given by monsters.

     

    Here some screenshots from the Chatbox and from the debugmes taken from the map-server:

    post-402-0-93661000-1442912508_thumb.png

    post-402-0-41974600-1442912512_thumb.png

     

    Image #1:

    1st Line: Value displayed by client

    EXP gained Base: 3382, Job: 3804

    2nd Line: Ignore please

    3rd Line: Value provided by OnPCKillEvent with dispbottom and getexp

     

    Image #2:

    First two debug lines are from my custom script calculated with exp / 100.

    Last three lines are the important ones:

    There I calculated the EXP via /1000 instead and I get the same value as in the image above.

     

    My question is: what is correct? 

     

    Here is that code, if you want:

    OnNPCKillEvent:
    set .@expr,100;
    debugmes "EXP Rate: "+.@expr;
    set .@bexp,(getmonsterinfo(killedrid,3)*.@expr)/100;
    set .@jexp,(getmonsterinfo(killedrid,4)*.@expr)/100;
    debugmes "Base EXP: "+.@bexp+", Job EXP: "+.@jexp;
    set .@base_m,getmonsterinfo(killedrid,3);
    set .@job_m,getmonsterinfo(killedrid,4);
    debugmes "Monster Base EXP: "+.@base_m;
    debugmes "Monster Job EXP: "+.@job_m;
    debugmes "Monster Base EXP * "+.@expr+": "+set(.@base_rate,.@base_m*.@expr);
    debugmes "Monster Job EXP * "+.@expr+": "+set(.@job_rate,.@job_m*.@expr);
    debugmes "Monster Base EXP Bonus / 1000: "+set(.@btest,.@base_rate/1000);
    debugmes "Monster Job EXP Bonus / 1000: "+set(.@jtest,.@job_rate/1000);
    debugmes "Base EXP: "+.@btest+", Job EXP: "+.@jtest;
    end; 

    Regards,

    Chris

    this is the same situation we are experiencing today

  2. sudo apt-get install php-mysql

    dont forget to install it 

     

    This is for msqli php7 dudes like myself

    function PlayerCount() {
    		
    		Global $Srv_Host, $Srv_Username,$Srv_Password,$Srv_Database;           
    		$mysqli = new mysqli($Srv_Host, $Srv_Username, $Srv_Password, $Srv_Database);
    		if ($mysqli -> connect_errno) {
    			echo "Failed to connect to MySQL: " . $mysqli -> connect_error;
    			exit();
    		}
    		$count = 0;
    		if ($result = $mysqli -> query("SELECT COUNT(*) as total FROM `char` WHERE online = '1'")) {
    			$request_list_row = $result->fetch_row();
    			echo ' ',$request_list_row[0];
    		    // Free result set
    		    $result -> free_result();
    		} else {
    			echo 0;
    		}
    
    		$mysqli -> close();
        }

     

  3. i know this is a very very old stuff but I wanted to add that if you dont put the exposed IP in the configuration client wont connect.

    I had to do that here (instead of 127.0.01 put the IP your host can finally access to your guest)

    char_athena.conf

    // Character Server IP
    // The IP address which clients will use to connect.
    // Set this to what your server's public IP address is.
    char_ip: <Virtual machine IP>

×
×
  • Create New...