Quote:
Originally Posted by OELABOELA
Thank you for this method P4N! I got some base ready, but when i let it jump, and after att, It just doesnt update the positon (on my screen) but the server position does!
I use this as my update
Code:
if (C.LastUpdate.AddMilliseconds(C.UpdateSpeed) < DateTime.Now)
{
if (C.Xatting != 0)
{
C.X = (ushort)C.Xatting;
C.UpdatedX = C.X;
}
if (C.Yatting != 0)
{
C.Y = (ushort)C.Yatting;
C.UpdatedY = C.Y;
}
Calculations.UpdateLocal(C);
C.LastUpdate = DateTime.Now;
}
(the xatting and yatting are from when i jump to a monster. It will attack on that position to.)
What must i do to get it like, working to jump/walk to the monster?
PS:Im so fucking excited about making this proxy. I really thank you P4N
|
You need to send a client movement packet. Personally I use type 156 (flash step)
What mine was like was umm...
if(DateTime.Now > C.LastUpdated.AddMilliseconds(C.UpdateSpeed)
{
if(C.X != C.UpdatedX || C.Y != C.UpdatedY)
{
Packets.CliJump(W/e goes in the client jump packet using type 156);
C.UpdatedX = C.X;
C.UpdatedY = C.Y;
C.LastUpdate = DateTime.Now
}
}
Basic example written off the top of my head but hopefully helps you.