Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Third Party Program Support

Third Party Program Support Misc support forum and advertisment forum for all RunUO related third party Utilities.

Reply
 
Thread Tools Display Modes
Old 02-03-2008, 04:47 PM   #1 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 29
Default UOG Status packet

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();
			}
Using simple TCP Connection


thanks
_Epila_ is offline   Reply With Quote
Old 03-23-2008, 12:22 AM   #2 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
Default

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();
That should work for you. Im pretty sure you need to send all 8 bytes in order to get back the status packet.
mordero is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5