rswiki-book/src/317/317-Force-client-setting.md

23 lines
927 B
Markdown
Raw Normal View History

2018-10-13 09:48:41 -04:00
# Force Client Setting
The client stores various user settings in an array, the default values are also stored in another array. This packet changes the default value for a setting and its current value to the one given.
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
## Packet Details
| Key | Value |
|--|--|
| Name | Force client setting |
| Description | Forcefully alters a client setting value and default value to some supplied value. |
| Opcode | 36 |
| Type | Fixed |
| Length | 3 |
| Revision | 317 |
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
## Packet Structure
| Data Type | Description |
|--|--|
| [Short](/Data-Types.html#common-data-types) [Little Endian](/Data-Types.html#little-endian) | Setting ID number. |
| [Byte](/Data-Types.html#common-data-types) | New value (and default value) for the setting. |
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
## Other Information
Opcode 87 (length 6) is extremely similar in structure, but the new value is received as an Middle Endian Small Int.
2018-07-03 00:31:18 -04:00
This suggests its for use with bigger setting values.