rswiki-book/443-Protocol.mediawiki

178 lines
3.0 KiB
Plaintext
Raw Normal View History

2012-08-24 23:06:14 -04:00
[[Category RS2]]
2012-08-25 19:35:06 -04:00
==Client States==
2012-08-25 14:15:02 -04:00
2012-08-25 19:35:06 -04:00
{| border=3
|-
! Opcode
! Name
! Description
|-
! 30
! Ingame
! Default ingame client state.
|-
! 35
! Ingame (screen overlay)
2012-08-25 19:40:41 -04:00
! Ingame client state where the client screen is overlayed with a widget.
|-
! 40
! Login
! Out of game client state where the client engages to log in to the server.
2012-08-25 19:35:06 -04:00
|}
2012-08-25 14:15:02 -04:00
2012-08-25 19:35:06 -04:00
==Game Protocol==
2012-08-25 14:15:02 -04:00
2012-08-24 23:06:14 -04:00
===Server > Client Packets===
2012-08-24 23:18:12 -04:00
2012-08-25 14:35:39 -04:00
{| border=3
2012-08-24 23:06:14 -04:00
|-
! Opcode
! Type
! Length (bytes)
! Name
! Description
|-
! 29
! VARIABLE SHORT
! NA
2012-08-24 23:17:07 -04:00
! [[443 Player Update|Player Update]]
2012-08-24 23:06:14 -04:00
! Updates the players within the client's view.
|-
! 121
! VARIABLE SHORT
! NA
2012-08-25 14:33:18 -04:00
! [[443 Rebuild Scene Graph|Rebuild Scene Graph]]
2012-08-24 23:06:14 -04:00
! Rebuilds the players scene graph.
|-
2012-08-25 14:33:18 -04:00
! 193
! VARIABLE SHORT
! NA
! [[443 Rebuild Scene Graph|Rebuild Custom Scene Graph]]
2012-08-25 14:36:12 -04:00
! Builds a custom scene graph.
2012-08-25 14:33:18 -04:00
|-
2012-08-24 23:06:14 -04:00
! 157
! VARIABLE BYTE
! NA
2012-08-24 23:17:07 -04:00
! [[443 Send Message|Send Message]]
2012-08-24 23:06:14 -04:00
! Sends a message to the client's chatbox.
|-
! 58
! FIXED
! 6
2012-08-24 23:17:07 -04:00
! [[443 Update Skill|Update Skill]]
2012-08-24 23:06:14 -04:00
! Updates a skill by sending its experience and dynamic level.
|-
2012-08-25 15:09:36 -04:00
! 226
! FIXED
! 1
! [[443 Update Run Energy|Update Run Energy]]
! Updates the amount of run energy the player has.
|-
2012-08-25 14:11:52 -04:00
! 192
! VARIABLE SHORT
! NA
! [[443 Execute Client Script|Execute Client Script]]
! Executes a client script.
|-
2012-08-25 14:18:48 -04:00
! 204
! VARIABLE SHORT
! NA
! [[443 Class Check Request|Class Check Request]]
! Parses a request for a class check request.
|-
2012-08-25 19:31:33 -04:00
! 74
! FIXED
! 6
! [[443 Set State Value|Set State Value (large)]]
! Sets the value of a client state variable.
|-
2012-08-25 14:25:00 -04:00
! 163
! FIXED
! 0
! [[443 Reset States|Reset States]]
! Resets all the client state variables.
|-
2012-08-24 23:06:14 -04:00
! 160
! FIXED
! 4
2012-08-24 23:17:07 -04:00
! [[443 Display Window|Display Window]]
2012-08-24 23:06:14 -04:00
! Displays a widget as a window.
|-
2012-08-25 14:26:37 -04:00
! 6
! FIXED
! 2
! [[443 Display Chatbox Interface|Display Chatbox Interface]]
! Displays the chatbox as a widget.
|-
2012-08-25 14:17:27 -04:00
! 3
! FIXED
! 6
! [[443 Change Inactive Color|Change Inactive Color]]
! Changes the widget's inactive color.
|-
2012-08-25 19:21:55 -04:00
! 137
! FIXED
! 10
! [[443 Display Item On Widget|Display Item on Widget]]
! Displays the model of an item on a widget.
|-
2012-08-25 19:28:24 -04:00
! 147
! FIXED
! 10
! [[443 Set Model Rotation|Set Model Rotation]]
! Sets the x and y rotation of a model on a widget.
|-
2012-08-24 23:06:14 -04:00
! 228
! VARIABLE SHORT
! NA
2012-08-24 23:17:07 -04:00
! [[443 Send Items|Send Items]]
2012-08-24 23:06:14 -04:00
! Sends the items in an item container.
|-
! 213
! VARIABLE SHORT
! NA
2012-08-24 23:17:07 -04:00
! [[443 Update Items|Update Items]]
2012-08-24 23:06:14 -04:00
! Updates the items in an item container from their slot id.
|-
2012-08-25 14:28:03 -04:00
! 245
! FIXED
! 0
2012-08-25 14:28:16 -04:00
! [[443 Reset Items|Reset Items]]
2012-08-25 14:28:03 -04:00
! Resets all the items in an item container.
|-
2012-08-25 14:31:11 -04:00
! 82
! FIXED
! 2
! [[443 Set Spawn Sector|Set Spawn Sector]]
! Sets the sector on the map where entities will be spawned.
|-
2012-08-25 15:07:38 -04:00
! 133
! FIXED
! 2
! [[443 Reset Sector|Reset Sector]]
! Resets all the ground items and still objects in a sector.
|-
2012-08-24 23:06:14 -04:00
! 41
! FIXED
! 0
2012-08-24 23:17:07 -04:00
! [[443 Logout|Logout]]
2012-08-24 23:06:14 -04:00
! Logs the client out from the server.
2012-08-25 14:05:23 -04:00
|}
===Client > Server Protocol===
2012-08-25 14:35:04 -04:00
{| border = 3, padding = 2
2012-08-25 14:05:23 -04:00
|-
! Opcode
! Type
! Length (bytes)
! Name
! Description
|-
! 70
! FIXED
! 0
! [[443 Close Window|Close Window]]
! Called when the currently opened window is closed.
|}