Jump to content
  • 0
Sign in to follow this  
TR1D3NT

Server Status and online players

Question

Hello, all right? so I'm creating a skin for my Thor Patcher and would like this skin appeared the staus of my server "ON or OFF" would also appear that the amount of players logged into the server, how can I do this?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You can add a PHP script to be parsed server-side upon opening the patcher. That option is from the Tools/config.ini file, for noticeboxes. Your PHP script could load a webpage for that purpose.

 

There's no other way I know than this one, but maybe you can place a small noticebox that gets the info and another noticebox for the regular announcements you want to put there.

 

I'll move this topic to client-side support since it fits more there than on RO (ingame) scripts section.

Share this post


Link to post
Share on other sites
  • 0

you could use this code:

 

 

<?php	$resLogin = exec('tasklist /fi "ImageName eq login-server.exe"');	if($resLogin != 'INFO: No tasks are running which match the specified criteria.') {		echo $resLogin;	}?>

 

I'm working on it, so if you want, I can send the rest of my code when I'll finish it! :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.