Hey Guys,
about a month ago i started to create a global database with nodes XYZ in it.
ive decided im going to release to community and to try build up this database?
your prob thinking, So what a database with node locations?
there is alot you can do with this information.
the website for the database is this
http://botdata.wowgather.com/getlist.php
i really dont care if there is other ones out there,
and YES i do know there is wowhead and all them others....
Code:
internal static void InitRetreive()
{
try
{
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(sWebsite + "getlist.php");
myRequest.Method = "GET";
WebResponse myResponse = myRequest.GetResponse();
StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8);
string Type;
string Name;
float X;
float Y;
float Z;
int ZoneID;
int BlackList;
while (true)
{
string Line = sr.ReadLine();
string[] SplitLine = Line.Split(';');
Type = SplitLine[0];
if (Type == "END") break;
Name = SplitLine[1];
X = float.Parse(SplitLine[2]);
Y = float.Parse(SplitLine[3]);
Z = float.Parse(SplitLine[4]);
ZoneID = int.Parse(SplitLine[5]);
BlackList = int.Parse(SplitLine[6]);
if (NodeManager.DBExists(Type, Name, X, Y, Z, ZoneID) == false)
{
Utils.WriteDebug("WebManager Node Added - [{0}] {1}, {2}, {3}", Name, X, Y, Z);
NodeManager.DBInsert(Type, Name, X, Y, Z, ZoneID, BlackList);
}
}
myResponse.Close();
}
catch (Exception e)
{
Utils.WriteDebug("WebManager - Init Error - Could not retrieve Global node list [Check Debug Log]");
Utils.WriteDebug("WebManager - Init Error - " + e.Message);
}
}
i will be making this DB bigger over time as i need to,
if you would like the logging program to do a zone let me know