Hi,
I have some data from walk packet...
Walk Packet Parse Code
It Shows
I have some data from 0x3013 Packet From elite silkroad
But it gives
I can't find wrong section... help pls
I have some data from walk packet...
Walk Packet Parse Code
Code:
oku.ReadByte(); byte xSector = oku.ReadByte(); byte ySector = oku.ReadByte(); float x = oku.ReadInt16(); float z = oku.ReadInt16(); float y = oku.ReadInt16(); int gameX, gameY; gameX = (int)Formula.CalculateX(x, xSector); gameY = (int)Formula.CalculateY(y, ySector);
Code:
xSec: 168 ySec: 96 x: 731 z: -14 y: 1090 Coords: 6409:876
Code:
Character.Position.xSector = oku.ReadByte(); Character.Position.ySector = oku.ReadByte(); float x = oku.ReadInt16(); float z = oku.ReadInt16(); float y = oku.ReadInt16(); Character.Position.x = (int)Formula.CalculateX(x, Character.Position.xSector); Character.Position.y = (int)Formula.CalculateY(y, Character.Position.ySector);
Code:
xSec: 168 ySec: 96 x: -16384 z: 17462 y: 22168