Equipment Build

Anything to do with the server
Post Reply
Mr SQL
Posts: 5
Joined: Sun Nov 22, 2009 2:37 pm

Equipment Build

Post by Mr SQL »

Hi All

My application for helping with equipment build is now up and running !

I have got about 60 of the level 20 items in there now ... and counting. Please take a look and if you like it then by all means enter some more items (especially the high level items or stuff that cant be bought in town).

http://87.106.183.158/

Let me know if you have any feedback, or suggestions.

Cheers
Lee
Mr SQL
Posts: 5
Joined: Sun Nov 22, 2009 2:37 pm

Re: Equipment Build

Post by Mr SQL »

Ive added the server status and online player count to the application.

Its on a 30 second refresh so will track players that log on and off as long as the window is open :geek:
User avatar
kaltrip
Site Admin
Posts: 117
Joined: Wed Jun 10, 2009 3:37 pm

Re: Equipment Build

Post by kaltrip »

Impressive stuff!

What API are you using to grab the player count? I've been thinking about doing something like that myself and I found it hard enough even with complete access to the server itself. :oops:
Mr SQL
Posts: 5
Joined: Sun Nov 22, 2009 2:37 pm

Re: Equipment Build

Post by Mr SQL »

It uses the server query that you get when you hit server details in gamespy.

if you hit this URL, youll get the raw data that the server gives out for that query.
http://87.106.183.158/server.aspx

here is the code for reference if you have a .Net capable platform:

Code: Select all

using System;
using System.Net;
using System.Net.Sockets;
using System.Text;

IPEndPoint server = new IPEndPoint(IPAddress.Parse("195.97.194.69"), 5121);
byte[] query = new byte[] { 0xFE, 0xFD, 0x00, 0xE0, 0xEB, 0x2D, 0x0E, 0x14, 0x01, 0x0B, 0x01, 0x05, 0x08, 0x0A, 0x33, 0x34, 0x35, 0x13, 0x04, 0x36, 0x37, 0x38, 0x39, 0x14, 0x3A, 0x3B, 0x3C, 0x3D, 0x00, 0x00 };
UdpClient nwn = new UdpClient();
nwn.Connect(server);
nwn.Send(query, query.Length);
query = nwn.Receive(ref server);
Response.Write(Encoding.ASCII.GetString(query));
Cheers
Lee
Post Reply