Quote:
Originally Posted by kevin_owner
i'm still uploading but my upload speed is suddenly soo slow it's at 15% now :S
btw adomaitis i posted a thing a few pages before to activate your C# 2008 but you can also use visual studio 2010 RC it's working perfect here:P
|
hmm thanks :handsdown: i dont saw that ;D
Edit:i think we need make one big and good team... alll invite me zazutis(skype) who have skills in C# and Mysql and sro files (PK2editing) dont write those who need help to create char xD because that is very easy... i have writed leson somewhere in 15xpage
edit2:Found in silkroad.cs... i think need just to finish... (i have mysql and npc data. Need C# programmer...)
public struct NpcData_
{
public uint Id;
public byte XSector;
public byte YSector;
public float X;
public float Z;
public float Y;
}
public static List<NpcData_> NpcDatas = new List<NpcData_>();
private static void DumpFilesToNpcData(string path)
{
string[] lines = File.ReadAllLines(path);
for (int i = 0; i < lines.Length; i++)
{
string[] tmpString = lines[i].Split('\t');
NpcData_ tmp = new NpcData_();
tmp.Id = Convert.ToUInt32(tmpString[0]);
tmp.XSector = byte.Parse(Convert.ToInt16(tmpString[1]).ToString("X").Substring(2, 2), System.Globalization.NumberStyles.HexNumber);
tmp.YSector = byte.Parse(Convert.ToInt16(tmpString[1]).ToString("X").Substring(0, 2), System.Globalization.NumberStyles.HexNumber);
tmp.X = Convert.ToSingle(tmpString[2]);
tmp.Z = Convert.ToSingle(tmpString[3]);
tmp.Y = Convert.ToSingle(tmpString[4]);
NpcDatas.Add(tmp);
}
}