Jump to content

[PHP] Simple rAthena Status Script


Lawliet

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   2
  • Joined:  01/04/12
  • Last Seen:  

File Name:

 Simple rAthena Status Script

[b]File Submitter[/b]: Lawliet

[b]File Submitted[/b]: 22 Jan 2012

[b]File Category[/b]: Web Resources

Show your eAthena / rAthena server status and count player online

requires: PHP5.2+ , MySql

Sorry for my bad english

Click here to download this file

  • Upvote 1
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

Thank you very much dude, very usefull!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

Tried adding this ; kept showing up --

Login:

Char:

Map:

Online: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2)

Edited by Ron
Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

player online isnt working

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  03/25/12
  • Last Seen:  

Nc work bro :)

Link to comment
Share on other sites

  • 5 years later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  09/19/14
  • Last Seen:  

Discord: https://discord.gg/uh3GJ9XxqQ

Edited by Dev-Merot
Link to comment
Share on other sites

  • 11 months later...

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

user online is not work how to fix it

thank you.

Link to comment
Share on other sites

  • 11 months later...

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  12/10/14
  • Last Seen:  

On 6/23/2019 at 9:34 AM, ittiphol said:

user online is not work how to fix it

thank you.

x2. Player Online no work.

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   7
  • Joined:  07/30/16
  • Last Seen:  

 

On 6/5/2020 at 8:11 PM, Xiao said:

x2. Player Online no work.

 

Try my status server ?

 

 

status_thor_patcher.zip

Edited by vasikokk
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   18
  • Joined:  01/09/12
  • Last Seen:  

?

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  01/09/22
  • Last Seen:  

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();
    }

 

Edited by arcada
Link to comment
Share on other sites

×
×
  • Create New...