Hey guys, am trying to send movement packet (7021) , it's working good with (+) Cords but (-) Cords isn't.
That's the calculation iam using
- Also if someone can tell me parsing of B021 would be thankful
That's the calculation iam using
Code:
int xPosition = Convert.ToInt32((x % 192) * 10);
int yPosition = Convert.ToInt32((y % 192) * 10);
int xSector = Convert.ToInt32((x - xPosition / 10) / 192 + 135);
int ySector = Convert.ToInt32((y - yPosition / 10) / 192 + 92);