|
||
|
|||||||
| Third Party Program Support Misc support forum and advertisment forum for all RunUO related third party Utilities. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Dec 2005
Posts: 29
|
How can i get runuo status sending UOG status request
I send 0xFF to the server, but it do not answer the packet Network.cs Code:
else if ( cmd == 0xFF )
{
string statStr = String.Format( ", Name={0}, Age={1}, Clients={2}, Items={3}, Chars={4}, Mem={5}K", Server.Misc.ServerList.ServerName, (int)(DateTime.Now-Server.Items.Clock.ServerStart).TotalHours, NetState.Instances.Count, World.Items.Count, World.Mobiles.Count, (int)(System.GC.GetTotalMemory(false)/1024) );
state.Send( new UOGInfo( statStr ) );
state.Dispose();
}
thanks |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
Code:
TcpClient client = new TcpClient();
client.Connect("login.uogamers.com", 2593);
client.Client.Send(new byte[] { 0x7f, 0x00, 0x00, 0x01, 0xf1, 0x00, 0x04, 0xff });
byte[] b = new byte[1024];
client.Client.Receive(b);
client.Close();
Console.WriteLine(Encoding.ASCII.GetString(b));
Console.ReadLine();
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|