rswiki-book/src/317/317-Load-map-region.md

28 lines
920 B
Markdown
Raw Normal View History

2018-10-13 09:48:41 -04:00
# Load Map Region
2018-07-03 00:31:18 -04:00
Makes the client load the specified map region.
2018-10-13 09:48:41 -04:00
## Packet Details
| Key | Value |
|--|--|
| Name | Load map region |
| Description | Makes the client load the specified map region. |
| Opcode | 73 |
| Type | Fixed |
| Length | 4 |
| Revision | 317 |
## Packet Structure
| Data Type | Description |
|--|--|
| [Short](/Data-Types.html#common-data-types) [Special A](/Data-Types.html#bespoke-data-types) | Region X coordinate (absolute X / 8) plus 6. |
| [Short](/Data-Types.html#common-data-types) | Region Y coordinate (absolute Y / 8) plus 6. |
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
## Other Information
There are various loops/arrays within the map region loading functionality of the client which have been misunderstood by many.
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
| Loop type | Description |
|--|--|
| 104 x 104 | Maximum size of the client's load area |
| 8 x 8 | Load blocks to speed up loading NPCs, Items and Objects |
| 13 x 13 | Number of load blocks to load |