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!

[Release] Mu Core Basic Online Counter

Experienced Elementalist
Joined
May 1, 2012
Messages
269
Reaction score
72
Hello there!

Maybe a lot of people is looking for this..
Simple Online Player Counter


<center><font color="red" size="6">SERVER NAME </font><font color="lime" size="6">
<?

$online = $core_db2->Execute( "Select memb___id from MEMB_STAT where ConnectStat='1'" );
echo "

ONLINE PLAYERS:
".number_format( $online->RecordCount( ) )."";

?></font></center>

Step By Step:

1) Open notepad, copy this code, save as "online.php"
2) Go Mu core, Add module, "online.php", name "Online Counter"
3) Go Mu core, Add page, select "Online Counter", Give SQL access.
4) Go Mu core, check if it s working.
5) Enjoy

Demo? Its on my website fully working.​
 
Joined
Oct 2, 2006
Messages
1,562
Reaction score
372
a little fix on your SQL Script my dear friend. If the server is using 2 DB like MuOnline and Me_MuOnline they need this
CHECK THE RED BOLD TEXT
<center><font color="red" size="6">
SERVER NAME
</font><font color="lime" size="6">
<?

$online = $core_db2->Execute( "Select memb___id from
Me_MuOnline.dbo.
MEMB_STAT where ConnectStat='1'" );
echo "

ONLINE PLAYERS:
".number_format( $online->RecordCount( ) )."";

?></font></center>

and that should work :D
 
Experienced Elementalist
Joined
May 1, 2012
Messages
269
Reaction score
72
Unless they are using another db name ;)

But all work anyway :eek:tt1:
 
Newbie Spellweaver
Joined
May 25, 2012
Messages
11
Reaction score
0
hmmm if i would multiply the effort you have putted to make this by x100 than i could give this release a

1/10 rating
 
Legendary Battlemage
Joined
Mar 28, 2012
Messages
683
Reaction score
39
thansk for this share it help... this is basic means you need to update if you want more feature hehe i can get into Advance ^^

can you add this.

Total Guild
Total Character
Total Account
Total Online on Web


thanks :)
 
Last edited:
Experienced Elementalist
Joined
May 1, 2012
Messages
269
Reaction score
72
thansk for this share it help... this is basic means you need to update if you want more feature hehe i can get into Advance ^^

can you add this.

Total Guild
Total Character
Total Account
Total Online on Web


thanks :)

yes i have a better update, with a huge difference with this crap coming.
 
-( . ) ( . )-
Loyal Member
Joined
Mar 28, 2012
Messages
1,356
Reaction score
68
Sir do you have a change name module in mu core 1.8?
 
-( . ) ( . )-
Loyal Member
Joined
Mar 28, 2012
Messages
1,356
Reaction score
68
hello sir how to put this online count with this template? sa21.PNG - [Release] Mu Core Basic Online Counter - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Initiate Mage
Joined
Jun 7, 2013
Messages
2
Reaction score
3
THANKSSSSSSSSSSSSSSSSS!!!!!!!!! VERY MUCH Sorry my bad english :DDDD Testing in sql 2005 :D Mu-Core Type conexion odbc :D Work 100%%%%
 
-( . ) ( . )-
Loyal Member
Joined
Mar 28, 2012
Messages
1,356
Reaction score
68
what i mean sir how to put the online count under the server time
sa21.PNG - [Release] Mu Core Basic Online Counter - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Oct 23, 2005
Messages
36
Reaction score
0
Fatal error: Call to a member function Execute() on a non-object in C:\xampp\htdocs\statistics.php on line 4
 
Junior Spellweaver
Joined
Dec 20, 2015
Messages
175
Reaction score
10
Some one can tell, how to fix this error? I'm using mvcore :)
Fatal error: Call to a member function Execute() on a non-object in C:\xampp\htdocs\online.php on line 6
 
Newbie Spellweaver
Joined
Sep 11, 2018
Messages
29
Reaction score
1
thanks , works perfect, i just took the code and add it on my index.php from template

just one small question,

when server its off, it always show me its 1 player online...
 
Back
Top