I have a question regarding the B021 movement packet.
If sending the source flag on a B021 with no destination (sky click), what should it exactly contain?
Code:
[DWORD] Object ID
[BYTE] 0x00 // No destination - Sky click
[BYTE] 0x01
[WORD] Angle
[BYTE] 0x01 // Sending source
[BYTE] X Sector
[BYTE] Y Sector
[WORD] ? X Coord
[DWORD] ? Z Pos (float)
[WORD] ? Y Coord
(Any vsro client/server is using this structure)
This is done from a server point of view. Sending the packet as above results in the player getting moved really fast until it collides, and then it starts moving to that angle.
I've parsed the packet many times from some psro and those last 6 bytes don't seem to be coordinates, as they don't match the ones where I was before clicking.
I've tried looking at online documentations (including yours lesderid) and some state that those bytes are 3 words, x, z and y coordinates, but still it is moving the player somewhere else. What is more, like this there are 2 bytes which are unknown.
I'd appreciate any clue/help! Thank you!