|
You last visited: Today at 17:22
Advertisement
OnlinePlayers indicator ! how?
Discussion on OnlinePlayers indicator ! how? within the CO2 Private Server forum part of the Conquer Online 2 category.
06/05/2009, 13:25
|
#1
|
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
|
|
|
06/05/2009, 15:44
|
#2
|
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
|
E*Pvpers only can help u
|
|
|
06/05/2009, 15:53
|
#3
|
elite*gold: 0
Join Date: Jan 2007
Posts: 106
Received Thanks: 12
|
Then someone help him >.>
|
|
|
06/05/2009, 17:11
|
#4
|
elite*gold: 0
Join Date: Apr 2009
Posts: 220
Received Thanks: 29
|
Quote:
Originally Posted by magnon
E*Pvpers only can help u
|
your post supose to help me ?
|
|
|
06/05/2009, 17:19
|
#5
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by Rulzan
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...?
|
|
|
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.
|
|
|
06/05/2009, 17:53
|
#7
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
|
Quote:
Originally Posted by yuko
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.
|
|
|
06/05/2009, 18:04
|
#8
|
elite*gold: 0
Join Date: Apr 2009
Posts: 220
Received Thanks: 29
|
**** im sad..i really wanna have that indicator
|
|
|
06/05/2009, 18:33
|
#9
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Quote:
Originally Posted by Rulzan
**** im sad..i really wanna have that indicator 
|
Then Dont use binarys lol
|
|
|
06/05/2009, 18:41
|
#10
|
elite*gold: 0
Join Date: Apr 2009
Posts: 220
Received Thanks: 29
|
Quote:
Originally Posted by hunterman01
Then Dont use binarys lol
|
lol,i hate those crappy-reply's
i thing you eat lotf every day..
|
|
|
06/05/2009, 18:44
|
#11
|
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
|
|
|
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
|
|
|
06/09/2009, 17:39
|
#13
|
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
|
|
|
06/09/2009, 17:58
|
#14
|
elite*gold: 0
Join Date: Sep 2006
Posts: 16
Received Thanks: 0
|
Quote:
Originally Posted by Zeroxelli
#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)
|
|
|
06/09/2009, 21:38
|
#15
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
Quote:
Originally Posted by coles
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.
|
|
|
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.
|
|