RS2:317:Player update

From RuneWiki

Bit Structure

Bits Value
1 Local player needs update
2 Update type
... ...
8 Amount of other players in area
11 Other player ID (2047 will end processing this block)

Update Types

Update type Description
0 Player only standing this tick, do nothing
1 Player walking this tick
2 Player running this tick
3 Player placement update (i.e. teleporting, logging in)

Update Type 0

Bits Value
Nothing

Update Type 1

Bits Value
1 Direction
1 Attribute update

Update Type 2

Bits Value
1 Direction
1 Direction
1 Attribute update

Update Type 3

Bits Value
2 Z plane
1 Keep movement queue
1 Attribute update
7 Local Y position
7 Local X position

Attribute Byte Structure

TODO, in the mean time update mask 0x10:

Type Value
u8 Update mask
u8 Length
u8 Gender
u8 Head icon
u8 Hat
u8 Cape
u8 Amulet
u8 Weapon
u16 Chest
u8 Shield
u16 Arms
u16 Legs
u16 Head
u16 Hands
u16 Feet
u16 Beard
u8 Color data
u8 Color data
u8 Color data
u8 Color data
u8 Color data
u16 Standing animation
u16 Stand-turn animation
u16 Walking animation
u16 Turning 180 deg. animation
u16 Turning 90 deg. clockwise animation
u16 Turning 90 deg. counter-clockwise animation
u16 Running animation
u64 Base37 username
u8 Combat level
u16 Total level