Link Search Menu Expand Document

Variable byte

Randomized order

Byte transformations

Move Minimap Click

Move minimap click is the packet that the client sends upon clicking on the player’s minimap while the minimap isn’t blocked off, to walk to the destination clicked on.

Payload

Even though the packet itself is defined as a variable-byte size, the payload’s actual size is always a constant value of 18, with certain static values being written in all the revisions. Only the x and z coordinate fields may have a different order from revision to revision(swapped between one another), the rest of the fields written in this packet are all always written in the same exact order. Everything besides the x, y and ctrl-click variables also always use the same exact byte modifications(or the lack of).

Type Description
Byte Informs the client whether if the player held ctrl, or ctrl+shift when they clicked.
The former is used to toggle movement speed for that specific movement.
Unsigned Short X coordinate of the game square the player clicked on.
Unsigned Short Z coordinate of the game square the player clicked on.
Byte X pixel offset from the very center of the minimap.
Byte Y pixel offset from the very center of the minimap.
Short Camera angle, a value from 0 to 2047.
Byte Constant value of 57.
Byte Constant value of 0.
Byte Constant value of 0.
Byte Constant value of 89.
Short Local fine x coordinate in client, this is in relation to the south-western square
of the loaded map. One square equals a value of 128.
Short Local fine y coordinate in client, this is in relation to the south-western square
of the loaded map. One square equals a value of 128.
Byte Constant value of 63.