rswiki-book/464-Protocol.mediawiki

56 lines
1.2 KiB
Plaintext
Raw Normal View History

2011-11-16 13:03:15 -05:00
[[Category RS2]]
2011-11-16 13:04:11 -05:00
Currently under development.
2011-11-16 12:58:10 -05:00
== '''Packet structure''' ==
2011-11-16 13:02:21 -05:00
When the client sends a packet to the server, the first byte encapsulates its opcode. This specific opcode is encrypted with a value generated by the ISAAC PRNG seeded with a dynamically server generated key during the login block. The server decrypts it and associates the opcode to the packet's respective predefined size. If the packet does not contain a fixed size, the opcode will be followed by either a byte or a word - varying per packet - for its proper size. This is then followed by the payload.
== '''Login''' ==
Blank at the moment.
=='''Game Protocol'''==
===Server -> Client Packets===
{| border=2
|-
! Opcode
! Type
! Length (bytes)
! Name
! Description
|-
2011-11-16 14:48:15 -05:00
| 163
| Fixed
| 1
| [[317 Run Energy|Run Energy]]
| Sends the players run energy percentage.
|-
2011-11-16 13:02:21 -05:00
|}
===Client -> Server Packets===
{| border=2
|-
! Opcode
! Type
! Length (bytes)
! Name
! Description
|-
2011-11-16 14:36:21 -05:00
|-
2011-11-16 14:43:39 -05:00
| 49
| VARIABLE BYTE
| 13
| [[464 Character Design|Character Design]]
|
|-
2011-11-16 14:36:21 -05:00
| 115
| VARIABLE BYTE
| N/A
2011-11-16 14:43:39 -05:00
| [[464 Chat|Chat]]
2011-11-16 14:36:21 -05:00
| Sent when the player enters a chat message.
|-
2011-11-16 14:43:39 -05:00
Sent when the player enters a chat message.
|-
2011-11-16 13:02:21 -05:00
|}