Update MediaWiki page '194 Protocol'

This commit is contained in:
t4 2011-06-26 18:08:54 +00:00 committed by moparisthebest
parent d9f5fe60e3
commit 821f60a8d0

View File

@ -10,40 +10,74 @@ Just for fun if anyone gives two shits.
== '''Login''' == == '''Login''' ==
? ?
== '''Incoming Data''' == ===Server -> Client Packets===
'''TODO:''' Document packet structures
<table border="1" cellpadding="3" cellspacing="3"> {| border=2
<tr> |-
<td><b>opcode</b></td> ! Opcode
<td><b>usage</b></td> ! Type
<td><b>size</b></td> ! Length (bytes)
<td><b>payload</b></td> ! Name
</tr> ! Description
|-
| 137
| FIXED
| 2
| [[194 Show interface|Show interface]]
| Displays a normal interface.
|-
| 164
| VARIABLE_BYTE
| N/A
| [[194 Send message|Send message]]
| Sends a server message (e.g. 'Welcome to RuneScape') or trade/duel request.
|-
| 192
| FIXED
| 0
| [[194 Logout|Logout]]
| Disconnects the client from the server.
|-
| 206
| VARIABLE_BYTE
| N/A
| [[194 Set MIDI|Set MIDI]]
| Sets the current song playing on the client.
|-
| 210
| FIXED
| 3
| [[194 Send sidebar interface|Send sidebar interface]]
| Assigns an interface to one of the tabs in the game sidebar.
|-
| 240
| FIXED
| 0
| [[194 Clear screen|Clear screen]]
| Clears the screen of all open interfaces.
|-
|}
<tr> ===Client -> Server Packets===
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
== '''Outgoing Data''' == {| border=2
'''TODO:''' Document packet structures |-
! Opcode
<table border="1" cellpadding="3" cellspacing="3"> ! Type
<tr> ! Length (bytes)
<td><b>opcode</b></td> ! Name
<td><b>usage</b></td> ! Description
<td><b>size</b></td> |-
<td><b>payload</b></td> | 54
</tr> | VARIABLE_BYTE
| N/A
<tr> | Send Chat Message
<td></td> | Sends a chat message to the server.
<td></td> |-
<td></td> | 237
<td></td> | VARIABLE_BYTE
</tr> | N/A
</table> | Send Command
| Sends a command (any message prefixed with ::) to the server.
|-
|}