Difference between revisions of "317 Protocol"

From RuneWiki
Jump to navigationJump to search
Line 74: Line 74:
 
| None of the above
 
| None of the above
 
| "Unexpected server response. Please try using a different world."
 
| "Unexpected server response. Please try using a different world."
|-
 
|}
 
 
==Game Protocol==
 
(description)
 
<br/>
 
===Server -> Client Packets===
 
 
{| border=2
 
|-
 
! Opcode
 
! Type
 
! Length (bytes)
 
! Name
 
! Description
 
|-
 
| 1
 
| FIXED
 
| 0
 
| [[317:Animation reset|Animation reset]]
 
| Resets all animations in the immediate area.
 
|-
 
| 68
 
| FIXED
 
| 0
 
| [[317:Reset button state|Reset button state]]
 
| Resets the button state for all buttons.
 
|-
 
| 71
 
| FIXED
 
| 3
 
| [[317:Send sidebar interface|Send sidebar interface]]
 
| Assigns an interface to one of the tabs in the game sidebar.
 
|-
 
| 73
 
| FIXED
 
| 4
 
| [[317:Load map region|Load map region]]
 
| Loads a new map region.
 
|-
 
| 97
 
| FIXED
 
| 2
 
| [[317:Show interface|Show interface]]
 
| Displays a normal interface.
 
|-
 
| 107
 
| FIXED
 
| 0
 
| [[317:Reset camera|Reset camera]]
 
| Resets the camera position.
 
|-
 
| 109
 
| FIXED
 
| 0
 
| [[317:Logout|Logout]]
 
| Disconnects the client from the server.
 
|-
 
| 110
 
| FIXED
 
| 1
 
| [[317:Run energy|Run energy]]
 
| Sends the players run energy level.
 
|-
 
| 114
 
| FIXED
 
| 2
 
| [[317:System update|System update]]
 
| Sends how many seconds until a 'System Update.'
 
|-
 
| 122
 
| FIXED
 
| 4
 
| [[317:Interface color|Interface color]]
 
| Changes the color of an interface.
 
|-
 
| 126
 
| VARIABLE_SHORT
 
| N/A
 
| [[317:Send text|Send text]]
 
| Attaches text to an interface.
 
|-
 
| 164
 
| FIXED
 
| 2
 
| [[317:Chat interface|Chat interface]]
 
| Shows an interface in the chat box.
 
|-
 
| 176
 
| FIXED
 
| 10
 
| [[317:Open welcome screen|Open welcome screen]]
 
| Displays the welcome screen.
 
|-
 
| 206
 
| FIXED
 
| 3
 
| [[317:Chat settings|Chat settings]]
 
| Sends the chat privacy settings.
 
|-
 
| 208
 
| FIXED
 
| 2
 
| [[317:Walkable interface|Walkable interface]]
 
| Displays an interface in walkable mode.
 
|-
 
| 219
 
| FIXED
 
| 0
 
| [[317:Clear screen|Clear screen]]
 
| Clears the screen of all open interfaces.
 
|-
 
| 240
 
| FIXED
 
| 2
 
| [[317:Weight|Weight]]
 
| Sends the players weight amount.
 
|-
 
| 241
 
| VARIABLE_SHORT
 
| N/A
 
| [[317:Construct map region|Construct map region]]
 
| Constructs a dynamic map region using a palette of 8*8 tiles.
 
|-
 
| 246
 
| FIXED
 
| 2
 
| [[317:Interface item|Interface item]]
 
| Displays an item model inside an interface.
 
|-
 
| 249
 
| FIXED
 
| 3
 
| [[317:Initialize player|Initialize player]]
 
| Sends the player's membership status and their current index on the server's player list.
 
|-
 
| 253
 
| VARIABLE_BYTE
 
| N/A
 
| [[317:Send message|Send message]]
 
| Sends a server message (e.g. 'Welcome to RuneScape') or trade/duel request.
 
 
|-
 
|-
 
|}
 
|}

Revision as of 05:09, 20 August 2009

Login Protocol

Stub

This article is a stub. You can help RuneWiki by expanding it.


Response Codes

Towards the end of the login procedure, we send different values to the client to allow or deny a login. The various values show different messages on the login box on the client or do something internally.

Value Response
-1 Waits for 2000ms and tries again while counting failures.
0 Exchanges session keys, player name, password, etc.
1 Waits for 2000ms and tries again.
2 Client made a successful login.
3 "Invalid username or password."
4 "Your account has been disabled. Please check your message-center for details."
5 "Your account is already logged in. Try again in 60 secs..."
6 "RuneScape has been updated! Please reload this page."
7 "This world is full. Please use a different world."
8 "Unable to connect. Login server offline."
9 "Login limit exceeded. Too many connections from your address."
10 "Unable to connect. Bad session id."
11 "Login server rejected session. Please try again."
12 "You need a members account to login to this world. Please subscribe, or use a different world."
13 "Could not complete login. Please try using a different world."
14 "The server is being updated. Please wait 1 minute and try again."
15 N/A
16 "Login attempts exceeded. Please wait 1 minute and try again."
17 "You are standing in a members-only area. To play on this world move to a free area first."
20 "Invalid loginserver requested. Please try using a different world."
21 "You have only just left another world. Your profile will be transferred in: (number) seconds."
None of the above "Unexpected server response. Please try using a different world."


Links