I'm trying to use CClient_C__SendPacket with movement packets, expecting to perfrom a very simple movement.
What I dit
1. set movement flags to MoveForward, and send a CMSG_MOVEMENT_MOVE_FORWARD_START
2. for every frame, do:
a. update player cordinates, facing
b. update player movement flags (Movement + 0x58 & Movement +0x5C)
c. once the elapsed time accumulates to 500ms, send a CMSG_MOVEMENT_HEARTBEAT
3. when the player reached the destination, set movement flags to 0, and send CMSG_MOVEMENT_STOP_MOVE
What happened
I randomly got disconnected. Sometimes it works for about 10 seconds, sometimes it is just discconected after first HEATBEAT .
I notice that there is always a packet with opcode 0x3A3D then will be the disconnection.
What I'm expecting
Is there someone who has successfully implemented this kind of stuff? Any suggestion is appreciated.
Have nice day guys!