Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Acturus] -Show Online Count

Status
Not open for further replies.
Joined
Dec 22, 2004
Messages
513
Reaction score
162
Online Count Players for Acturus as example for dev...
Ореn SHO_GS.DLL (HEX) , find and
Change path
For an example:


and


Create two scripts:
mon1.php and monitorn2.php

mon1(thia script log in text file for dev now):
Code:
<?php
//*****This monitoring level 1******

//Config----------------------------
$mysecretfile='secretfilename.txt';

//Data from Server------------------
$server_ip=$_GET['server_ip'];
$total_count=$_GET['total_count'];
$HG_count=$_GET['HG_count'];
$EX_count=$_GET['EX_count'];
$BB_count=$_GET['BB_count'];
$GL_count=$_GET['GL_count'];

//Log in text file-----------------
$f=fopen($mysecretfile,"a");
fputs($f, "server_ip-".$server_ip."total_count-".$total_count."HG_count-".$HG_count."EX_count-".$EX_count."BB_count-".$BB_count."GL_count-".$GL_count.' '.date("d.m.Y H:i",time())."\r\n");
fclose($f);
//In MSSQL-------------------------

?>
monitorn2:
Code:
<?php
//*****This monitoring level 2******

//Config----------------------------
$mysecretfile='secretfilename2.txt';
$myServer = "YOU IP DB";
$myUser = "USER";
$myPass = "PASSWD";
$myDB = "seven_ORA";
$Channelname="ChannelName";

//Data from Server------------------
$ip=$_GET['ip'];
$cnt=$_GET['cnt'];
//Log in text file-----------------
$f=fopen($mysecretfile,"a");
fputs($f, "ip-".$ip." count-".$cnt.' '.date("d.m.Y H:i",time())."\r\n");
fclose($f);
//MSSQL-------------------------
$conn=mssql_connect($myServer,$myUser,$myPass);
if (!$conn)
  {exit("Connection Failed: " . $conn);}
$selected = mssql_select_db($myDB, $conn) or die("Couldn't open database $myDB");
$sql="UPDATE Statistic SET txtChannel =\"$Channelname\", intCount =\"$cnt\"";
$rs=mssql_query($sql);
if (!$rs)
{exit("Error in SQL");}
mssql_close($conn);

?>
Note:
$Channelname="ChannelName" u need open DB seven_ORA->Statistic and add Channelname in txtChannel;

Next
For RoseCP:
Open: \libs->rosecp_ae.php and add

Code:
function onlieuser()
{
$myServer = "YOU IP DB";
$myUser = "USERDB";
$myPass = "PASSWD";
$myDB = "seven_ORA";
$conn=mssql_connect($myServer,$myUser,$myPass);
if (!$conn)
  {exit("Connection Failed: " . $conn);}
$selected = mssql_select_db($myDB, $conn) or die("Couldn't open database $myDB");
//echo "You are connected to the " . $myDB . " database on the " . $myServer . ".";

$sql="SELECT txtChannel, intCount FROM Statistic";
$rs=mssql_query($sql);
if (!$rs)
  {exit("Error in SQL");}
while (mssql_fetch_row($rs))
{
  $channel=mssql_result($rs,0,"txtChannel");
  $playercount=mssql_result($rs,0,"intCount");

}
mssql_close($conn);
return "<b>$channel</b> Players- <b>$playercount</b>";
}

	function stats() 
	{
	
	$s = '<h2>Server Info</h2>
		<ul>
		<li>Server : '.$this->check_port("127.0.0.1","29000").''.$this->check_port("127.0.0.1","29100").''.$this->check_port("127.0.0.1","29200").'</li>
  <li>Channel: - '.$this->onlieuser().'</li>
.....
......
.

I hope that it will be to whom that interestingly =)
 
Newbie Spellweaver
Joined
Oct 12, 2007
Messages
84
Reaction score
0
Twilight nice and thank you for this :)
 
Junior Spellweaver
Joined
Jun 8, 2008
Messages
123
Reaction score
3
hey i was wondering if someone could help me with hex editing the dll
i have tried several ways and i am obviously doing something wrong
 
Junior Spellweaver
Joined
Jun 8, 2008
Messages
123
Reaction score
3
just so some people dont do what i did
do not edit the address in the text string area,
edit in the hex area


thanks icon
 

R

Newbie Spellweaver
Joined
Dec 23, 2005
Messages
45
Reaction score
0
can someone upload the rosecp_ae.php with the this script added in it

Code:
function onlieuser()
{
$myServer = "YOU IP DB";
$myUser = "USERDB";
$myPass = "PASSWD";
$myDB = "seven_ORA";
$conn=mssql_connect($myServer,$myUser,$myPass);
if (!$conn)
  {exit("Connection Failed: " . $conn);}
$selected = mssql_select_db($myDB, $conn) or die("Couldn't open database $myDB");
//echo "You are connected to the " . $myDB . " database on the " . $myServer . ".";

$sql="SELECT txtChannel, intCount FROM Statistic";
$rs=mssql_query($sql);
if (!$rs)
  {exit("Error in SQL");}
while (mssql_fetch_row($rs))
{
  $channel=mssql_result($rs,0,"txtChannel");
  $playercount=mssql_result($rs,0,"intCount");

}
mssql_close($conn);
return "<b>$channel</b> Players- <b>$playercount</b>";
}

	function stats() 
	{
	
	$s = '<h2>Server Info</h2>
		<ul>
		<li>Server : '.$this->check_port("127.0.0.1","29000").''.$this->check_port("127.0.0.1","29100").''.$this->check_port("127.0.0.1","29200").'</li>
  <li>Channel: - '.$this->onlieuser().'</li>
.....
......
.

i can't add without getting error message, im noob..
 
Newbie Spellweaver
Joined
Jan 8, 2009
Messages
61
Reaction score
4
Thx mate, and this script shows what players are online on the server too? The correct name and lvl?
 
Newbie Spellweaver
Joined
Aug 4, 2006
Messages
81
Reaction score
0
hello i have this problen please help me
[Microsoft][ODBC SQL Server Driver]Error de sintaxis o infracción de acceso
[Microsoft][ODBC SQL Server Driver]Error de sintaxis o infracción de acceso
 
Status
Not open for further replies.
Back
Top