Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



OnlinePlayers indicator ! how?

Discussion on OnlinePlayers indicator ! how? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Rulzan's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 220
Received Thanks: 29
OnlinePlayers indicator ! how?

i need something for my web that will show the online players,i saw on a lot of webs.. i use 5065 tq binarys
something like
Code:
Login Server: Online
Game Server: Online
Registration Server: Online
Players Online: 35
Only the Players online stuff i need
Rulzan is offline  
Old 06/05/2009, 15:44   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
E*Pvpers only can help u
magnon is offline  
Old 06/05/2009, 15:53   #3
 
3mrz's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 106
Received Thanks: 12
Then someone help him >.>
3mrz is offline  
Old 06/05/2009, 17:11   #4
 
Rulzan's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 220
Received Thanks: 29
Quote:
Originally Posted by magnon View Post
E*Pvpers only can help u

your post supose to help me ?
Rulzan is offline  
Old 06/05/2009, 17:19   #5
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by Rulzan View Post
your post supose to help me ?
Hmm I think that source suppose to be saving the character count to an ini file , and everytime someone logs/logs out it updates the ini file with the count of the characters online , and your website reads the ini file with the charr count.I think thats the way , maybe not...?
damianpesta is offline  
Old 06/05/2009, 17:30   #6
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
DATABASE.CS
Code:
public static void ChangeOnlineStatus(string AccID, int online)
        {
            MySqlCommand Cmd = new MySqlCommand("UPDATE `accounts` SET `online` = \"" + online + "\" WHERE `AccountID` = \"" + AccID + "\"", DatabaseConnection.NewConnection());
            Cmd.ExecuteNonQuery();
            Cmd.Connection.Close();
            Cmd.Connection.Dispose();
            Cmd.Dispose();
        }
PACKETPROCESSOR.CS
Code:
Database.Database.ChangeOnlineStatus(CSocket.AccountName, 1);//online
CLIENTSOCKET.CS
Code:
Database.Database.ChangeOnlineStatus(AccountName, 0);//offline
database(mysql)
Code:
ALTER TABLE `accounts` ADD `online` BOOL NOT NULL ;

edit it the way you want.
yuko is offline  
Old 06/05/2009, 17:53   #7

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Quote:
Originally Posted by yuko View Post
DATABASE.CS
Code:
public static void ChangeOnlineStatus(string AccID, int online)
        {
            MySqlCommand Cmd = new MySqlCommand("UPDATE `accounts` SET `online` = \"" + online + "\" WHERE `AccountID` = \"" + AccID + "\"", DatabaseConnection.NewConnection());
            Cmd.ExecuteNonQuery();
            Cmd.Connection.Close();
            Cmd.Connection.Dispose();
            Cmd.Dispose();
        }
PACKETPROCESSOR.CS
Code:
Database.Database.ChangeOnlineStatus(CSocket.AccountName, 1);//online
CLIENTSOCKET.CS
Code:
Database.Database.ChangeOnlineStatus(AccountName, 0);//offline
database(mysql)
Code:
ALTER TABLE `accounts` ADD `online` BOOL NOT NULL ;

edit it the way you want.
He uses the TQ Binaries.
Kiyono is offline  
Old 06/05/2009, 18:04   #8
 
Rulzan's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 220
Received Thanks: 29
**** im sad..i really wanna have that indicator
Rulzan is offline  
Old 06/05/2009, 18:33   #9
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Quote:
Originally Posted by Rulzan View Post
**** im sad..i really wanna have that indicator
Then Dont use binarys lol
hunterman01 is offline  
Old 06/05/2009, 18:41   #10
 
Rulzan's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 220
Received Thanks: 29
Quote:
Originally Posted by hunterman01 View Post
Then Dont use binarys lol
lol,i hate those crappy-reply's
i thing you eat lotf every day..
Rulzan is offline  
Old 06/05/2009, 18:44   #11
 
L1nk1n*P4rK's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
Man what you need i a php indicator???
to show you how much ppls are online???

BTW Rulzan I just release Table Editor V2 go and test it :P
L1nk1n*P4rK is offline  
Old 06/09/2009, 10:44   #12
 
elite*gold: 0
Join Date: Jul 2007
Posts: 30
Received Thanks: 2
well...you can do /player all and it shows all players online in top left and /player map shows how many players is on that map hope it helped
blakesmi13 is offline  
Old 06/09/2009, 17:39   #13
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
PHP Code:
$sql mysql_query("SELECT COUNT(*) AS PlayersOnline FROM characters WHERE Online='true'");
if(
$row mysql_fetch_array($sql))
    echo 
"{$row['PlayersOnline']} Players online." 
Or something ;O
Zeroxelli is offline  
Old 06/09/2009, 17:58   #14
 
elite*gold: 0
Join Date: Sep 2006
Posts: 16
Received Thanks: 0
Quote:
Originally Posted by Zeroxelli View Post
#Request Delete Post

Wtf, if I lag it sends twice? ;'<
Meh, quickest way to get an online count for server is run a shell netstat command.
Ofcourse using this method would require you to have the correct OS permissions.

same goes for status, query an ip and port (can increase page load times if not written properly)
coles is offline  
Old 06/09/2009, 21:38   #15
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Quote:
Originally Posted by coles View Post
Meh, quickest way to get an online count for server is run a shell netstat command.
Ofcourse using this method would require you to have the correct OS permissions.

same goes for status, query an ip and port (can increase page load times if not written properly)
He's talking about getting the players online, on the game server. The only two ways of doing that are MySQL and Flatfiles. MySQL is obviously easier and in some cases faster. Plus, you don't need extra r+ perms for the folder of your host. Netstat isn't smart unless you're hosting on your own machine, or a nix shell.
Zeroxelli is offline  
Reply


Similar Threads Similar Threads
[Help] PHP Players indicator.
07/11/2009 - CO2 Private Server - 1 Replies
Well i've been trying to get player's indicator done but I failed.So I am asking for help if anyone can help me in making one for my website?I am using LOTF.
Prize indicator ( lucky lottery)
10/20/2007 - Conquer Online 2 - 11 Replies
Wont it be kool if we could see which box has what before you guys start flaming me i searched on this topic and no result well i was wondering if there is a program that can see the packet that CO is sending to the game. im not no programmer and iam sure you guys have thought about writing a program that will allow us to see the prize in the lucky lottery we getting. im sorry if this is a server sided hack i will take all of the flame u guys hit me with ^^ thx for ur reply yes...
Tactics Map Indicator 1.1
10/18/2006 - CO2 Exploits, Hacks & Tools - 39 Replies
I made this because I was tired of searching for people to ask what tactic I was in, or waiting for a token.



All times are GMT +1. The time now is 17:26.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.