I have a small error, I think the datatypes for UPDATE_PLAYER are incorrect, since when I use this:
Code:
[Packet("UpdatePlayer", 5)]
public static void UpdatePlayer(Packet packet)
{
int playerClass = packet.Reader.ReadInt32();
Console.WriteLine(playerClass);
double x = packet.Reader.ReadDouble();
Console.WriteLine(x);
double y = packet.Reader.ReadDouble();
Console.WriteLine(y);
string name = packet.Reader.ReadString();
Console.WriteLine("{0} {1} {2} {3}", playerClass, x, y, name);
packet.Sender.CharacterInformation.Update(name, playerClass, x, y);
}
It throws an exception at .ReadString() as there are not enough bytes left to read. (Ignore the messy code, I'll probably re-do it some later time). It could always just be me reading the wrong data types though! :S ahaha
Edit:
From what I can tell, the UPDATE_PLAYER packet doesn't contain any info concerning username+login, it looks to be just integers.
Also:: I would be interested in also exchanging skype details etc, as I'm planning to ALSO make an emulator, for exactly the same reasons. I bought this game the other day and hated the fact people kept complaining about crashes etc, so I set out to create my own emulator.
Click to expand...