Actions

Old Engine/Game Protocol

From RuneWiki

Example of a logged in player

I recently rewrote the content here to adopt the official nomenclature as much as possible.

Check out the list for revision 225.

If you see any lowercase or hyphenated names in the un-versioned list, they're from my previous work in 317 and not used in 225.

If you see a packet with an asterisk (*) next to it, it's an unofficial name.

Resources

Data Types

Client to Server Communication

This table is structured from the packet opcode lookup in the client. Sort by ID to see how packets are grouped, they all have reserved areas typically e.g. anticheat packets (randomly added during obfuscation) will exist from 60-75, player options will exist from 100-109, and so on. The "ID" column here is fixed across revisions.

Client Packets for 317
Opcode ID Name Size Length Format
0 keepalive Fixed 0 N/A
3 client-focus Fixed 1 Byte
4 chat-public Variable Byte 3+ ByteSub, ByteSub, ReverseBytesAdd
14 item-on-player Fixed 8 WordAdd, Word, Word, WordLE
16 item-option-3 Fixed 6 WordAdd, WordAddLE, WordAddLE
17 npc-action-3 Fixed 2 WordAddLE
18 npc-action-5 Fixed 2 WordAddLE
21 npc-action-4 Fixed 2 Word
23 anti-cheat-18 Fixed 6 WordLE, WordLE, WordLE
25 item-on-ground-item Fixed 12 WordLE, WordAddLE, Word, WordAdd, WordAddLE, Word
35 magic-on-object Fixed 8 WordLE, WordAdd, WordAdd, WordLE
36 anti-cheat-movement Fixed 4 DWord
39 player-action-5 Fixed 2 WordLE
40 interface-continue Fixed 2 Word
41 item-option-2 Fixed 6 Word, WordAdd, WordAdd
43 item-action-3 Fixed 6 WordLE, WordAdd, WordAdd
45 player-flagged-data Variable Byte 1+ Bytes
53 item-on-item Fixed 12 Word, WordAdd, WordAddLE, Word, WordLE, Word
57 item-on-npc Fixed 8 WordAdd, WordAdd, WordLE, WordAdd
60 interface-enter-name Fixed 8 Base37
70 object-action-3 Fixed 6 WordLE, Word, WordAddLE
72 npc-action-2 Fixed 2 WordAdd
73 player-action-3 Fixed 2 WordLE
74 social-ignore-remove Fixed 8 Base37
75 item-option-4 Fixed 6 WordAddLE, WordLE, WordAdd
77 anti-cheat-15 Variable Byte 1+ Bytes
78 anti-cheat-13 Fixed 0 N/A
79 light-item Fixed 6 WordLE, Word, WordAdd
85 anti-cheat-7 Fixed 1 Byte
86 camera-movement Fixed 4 Word, WordAdd
87 item-option-5 Fixed 6 WordAdd, Word, WordAdd
95 privacy-options Fixed 3 Byte, Byte, Byte
98 world-action-movement Variable Byte 7+ ByteSigned, ByteSigned, BytesSigned, WordLE, ByteNeg
101 interface-design Fixed 13 Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte
103 chat-command Variable Byte 2+ String
117 item-action-2 Fixed 6 WordAddLE, WordAddLE, WordLE
120 interface-flashing-tab-clicked Fixed 1 Byte
121 region-loaded Fixed 0 N/A
122 item-option-1 Fixed 6 WordAddLE, WordAdd, WordLE
126 chat-private Variable Byte 9+ Base37, Bytes
128 player-action-1 Fixed 2 Word
129 item-action-4 Fixed 6 WordAdd, Word, WordAdd
130 interface-closed Fixed 0 N/A
131 magic-on-npc Fixed 4 WordAddLE, WordAdd
132 object-action-1 Fixed 6 WordAddLE, Word, WordAdd
133 social-ignore-add Fixed 8 Base37
135 item-action-5 Fixed 6 WordLE, WordAdd, WordLE
136 anti-cheat-6 Fixed 0 N/A
139 player-action-4 Fixed 2 WordLE
145 item-action-1 Fixed 6 WordAdd, WordAdd, WordAdd
148 anti-cheat-16 Fixed 0 N/A
150 anti-cheat-11 Fixed 0 N/A
152 anti-cheat-2 Fixed 1 Byte
153 player-action-2 Fixed 2 WordLE
155 npc-action-1 Fixed 2 WordLE
156 anti-cheat-17 Fixed 6 WordAdd, WordLE, WordAddLE
164 world-movement Variable Byte 7+ ByteSigned, ByteSigned, BytesSigned, WordLE, ByteNeg
165 anti-cheat-14 Variable Byte 1+ Bytes
181 magic-on-ground-item Fixed 8 WordLE, Word, WordLE, WordAdd
183 anti-cheat-5 Fixed 3 SWord
185 interface-button Fixed 2 Word
188 social-friend-add Fixed 8 Base37
189 anti-cheat-3 Fixed 1 Byte
192 item-on-object Fixed 12 Word, WordLE, WordAddLE, WordLE, WordAddLE, Word
200 anti-cheat-1 Fixed 2 Word
202 idle-timer Fixed 0 N/A
208 interface-amount Fixed 4 DWord
210 client-running-as-frame Fixed 4 DWord
214 item-move Fixed 7 WordAddLE, ByteNeg, WordAddLE, WordLE
215 social-friend-remove Fixed 8 Base37
218 report-abuse Fixed 10 QWord, Byte, Byte
226 anti-cheat-9 Variable Byte 1+ Bytes
228 object-action-5 Fixed 6 WordAdd, WordAdd, Word
230 anti-cheat-8 Fixed 1 Byte
234 object-action-4 Fixed 6 WordAddLE, Word, WordAddLE
236 pickup-ground-item Fixed 6 WordLE, Word, WordLE
237 magic-on-item Fixed 8 Word, WordAdd, Word, WordAdd
238 anti-cheat-10 Fixed 1 Byte
241 mouse-clicked Fixed 4 DWord
246 anti-cheat-12 Variable Byte 1+ Bytes
248 minimap-movement Variable Byte 21+ ByteSigned, ByteSigned, BytesSigned, WordLE, ByteNeg, Bytes (14)
249 magic-on-player Fixed 2 WordAdd, WordLE
252 object-action-2 Fixed 6 WordAddLE, WordLE, WordAdd
253 ground-item-action Fixed 6 WordLE, WordAddLE, WordAdd

Server to Client Communication

This table is manually described.

Server Packets for 317
Opcode Name Size Length Format
1 reset-animations Fixed 0 N/A
4 interface-graphic Fixed 6 Byte, WordLE, Byte, WordLE
8 interface-model Fixed 4 WordAddLE, Word
24 interface-sidebar-flash Fixed 1 ByteSub
27 interface-amount Fixed 0 N/A
34 interface-item-slot Variable Word 2+ Word, Bytes
35 camera-shake Fixed 4 Byte, Byte, Byte, Byte
36 interface-setting Fixed 3 WordLE, ByteSigned
44 ground-item-add Fixed 5 WordAdd, WordLE, Byte
50 social-add-friend Fixed 9 Base37, Byte
53 interface-item-array Variable Word 5+ Word, Word, Bytes
60 process-group-packets Variable Word 1+ Bytes
61 display-multi-icon Fixed 1 Byte
64 ground-item-remove-all Fixed 2 ByteNeg, ByteSub
65 update-npcs Variable Word 1+ Bytes
68 interface-settings-reset Fixed 0 N/A
70 interface-xy Fixed 6 Word, WordLE, Word
71 interface-sidebar Fixed 3 Word, ByteAdd
72 interface-items-clear Fixed 2 Word
73 player-region Fixed 4 WordAdd, Word
74 music Fixed 2 WordLE
75 interface-npchead Fixed 4 WordAddLE, WordAddLE
78 clear-walking-queue Fixed 0 N/A
79 interface-scrollbar-position Fixed 4 Word, WordAddLE
81 update-players Variable Word 1+ Bytes
84 ground-item-update Fixed 7 Byte, WordLE, WordLE, Word
85 player-position Fixed 2 ByteNeg, ByteNeg
97 interface Fixed 2 Word
99 player-minimap Fixed 1 Byte
101 object-remove Fixed 2 ByteNeg, Byte
104 player-set-action Variable Byte 3+ ByteNeg, ByteAdd, String
105 sound-location Fixed 4 Byte, WordLE, Byte
106 interface-sidebar-focus Fixed 1 ByteNeg
107 camera-reset Fixed 0 N/A
109 logout Fixed 0 N/A
110 player-energy Fixed 1 Byte
114 system-update Fixed 2 WordLE
117 projectile Fixed 13 Byte, Word, WordLE, Byte, Byte, WordLE, WordLE, Byte, Byte
121 music-queue Fixed 4 WordAdd, WordAddLE
122 interface-color Fixed 4 WordAddLE, WordAddLE
126 interface-text Variable Word 3+ String, WordAdd
134 player-skill Fixed 6 Byte, DWordMEBig, Byte
142 interface-inventory Fixed 2 Word
147 player-to-object Fixed 10 ByteSub, WordLE, ByteSub, Word, ByteNeg, WordLE, ByteSub, Byte, WordLE, ByteNeg
151 object-add Fixed 4 ByteAdd, Word, ByteSub
156 ground-item-remove Fixed 3 ByteAdd, WordLE
160 object-add-animated Fixed 4 ByteSub, ByteSub, WordAddLE
164 interface-chatbox Fixed 2 WordLE
166 camera-spin Fixed 6 Byte, Byte, Word, Byte, Byte
171 interface-hover Fixed 3 Byte, Word
174 sound Fixed 5 Word, Byte, Word
176 interface-welcome Fixed 10 ByteNeg, WordAdd, Byte, DWordMELittle, Word
177 camera-cutscene Fixed 6 Byte, Byte, WordLE, Byte, Byte
185 interface-playerhead Fixed 2 WordAddLE
187 interface-name Fixed 0 N/A
196 social-message Variable Byte 16+ Base37, DWord, Byte, Bytes
200 interface-animate Fixed 4 Word, Word
206 interface-privacy Fixed 3 Byte, Byte, Byte
208 interface-walkable Fixed 2 WordLE
214 social-add-ignore Variable Word 8+ Bytes
215 ground-item-add-other Fixed 7 WordAddLE, ByteSub, WordAddLE, WordLE
218 interface-dialogue Fixed 2 WordAddLE
219 interface-clear Fixed 0 N/A
221 social-status Fixed 1 Byte
230 interface-model-zoom Fixed 8 WordAdd, Word, Word, WordAddLE
240 player-weight Fixed 2 Word
241 player-construct-region Variable Word 1+ Bytes
246 interface-item-model Fixed 6 WordLE, Word, Word
248 interface-child Fixed 4 WordAddLE, WordLE
249 player-info Fixed 3 ByteAdd, WordAdd
253 server-message Variable Byte 1+ String
254 mob-hint Fixed 3 Byte, WordLE