server
EO server pub file data structures.
See Also
TalkMessageRecord
Record of a message that an NPC can say
Source code in src/eolib/protocol/_generated/pub/server/talk_message_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
message: str
property
__init__(*, message)
Create a new instance of TalkMessageRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_message_record.py
18 19 20 21 22 23 24 25 26 | |
serialize(writer, data)
staticmethod
Serializes an instance of TalkMessageRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
TalkMessageRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_message_record.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
deserialize(reader)
staticmethod
Deserializes an instance of TalkMessageRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TalkMessageRecord |
TalkMessageRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/talk_message_record.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
SerializationError
Bases: Exception
Represents an error in serializing a protocol data structure.
Source code in src/eolib/protocol/serialization_error.py
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
__init__(message)
Constructs a SerializationError with the specified error message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
The error message. |
required |
Source code in src/eolib/protocol/serialization_error.py
6 7 8 9 10 11 12 13 | |
EoWriter
Source code in src/eolib/data/eo_writer.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | |
data = bytearray()
instance-attribute
string_sanitization_mode: bool
property
writable
Gets the string sanitization mode for the writer.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if string sanitization is enabled. |
__init__()
Source code in src/eolib/data/eo_writer.py
7 8 9 | |
add_byte(value)
Adds a raw byte to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value |
int
|
The byte to add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is above |
Source code in src/eolib/data/eo_writer.py
11 12 13 14 15 16 17 18 19 20 21 22 | |
add_bytes(bytes)
Adds raw bytes to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bytes |
bytes
|
The bytes to add. |
required |
Source code in src/eolib/data/eo_writer.py
24 25 26 27 28 29 30 31 | |
add_char(number)
Adds an encoded 1-byte integer to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number |
int
|
The number to encode and add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not below |
Source code in src/eolib/data/eo_writer.py
33 34 35 36 37 38 39 40 41 42 43 44 45 | |
add_short(number)
Adds an encoded 2-byte integer to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number |
int
|
The number to encode and add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not below |
Source code in src/eolib/data/eo_writer.py
47 48 49 50 51 52 53 54 55 56 57 58 59 | |
add_three(number)
Adds an encoded 3-byte integer to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number |
int
|
The number to encode and add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not below |
Source code in src/eolib/data/eo_writer.py
61 62 63 64 65 66 67 68 69 70 71 72 73 | |
add_int(number)
Adds an encoded 4-byte integer to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number |
int
|
The number to encode and add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not below |
Source code in src/eolib/data/eo_writer.py
75 76 77 78 79 80 81 82 83 84 85 86 87 | |
add_string(string)
Adds a string to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string |
str
|
The string to be added. |
required |
Source code in src/eolib/data/eo_writer.py
89 90 91 92 93 94 95 96 97 98 | |
add_fixed_string(string, length, padded=False)
Adds a fixed-length string to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string |
str
|
The string to be added. |
required |
length |
int
|
The expected length of the string. |
required |
padded |
bool
|
True if the string should be padded to the length with
trailing |
False
|
Source code in src/eolib/data/eo_writer.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
add_encoded_string(string)
Adds an encoded string to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string |
str
|
The string to be encoded and added. |
required |
Source code in src/eolib/data/eo_writer.py
117 118 119 120 121 122 123 124 125 126 127 | |
add_fixed_encoded_string(string, length, padded=False)
Adds a fixed-length encoded string to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string |
str
|
The string to be encoded and added. |
required |
length |
int
|
The expected length of the string. |
required |
padded |
bool
|
True if the string should be padded to the length with
trailing |
False
|
Source code in src/eolib/data/eo_writer.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
to_bytearray()
Gets the writer data as a byte array.
Returns:
| Name | Type | Description |
|---|---|---|
bytearray |
bytearray
|
A copy of the writer data as a byte array. |
Source code in src/eolib/data/eo_writer.py
161 162 163 164 165 166 167 168 | |
__len__()
Gets the length of the writer data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The length of the writer data. |
Source code in src/eolib/data/eo_writer.py
170 171 172 173 174 175 176 177 | |
EoReader
Bases: object
A class for reading EO data from a sequence of bytes.
EoReader features a chunked reading mode, which is important for accurate emulation of
the official game client.
See documentation for chunked reading: https://github.com/Cirras/eo-protocol/blob/master/docs/chunks.md
Source code in src/eolib/data/eo_reader.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | |
chunked_reading_mode: bool
property
writable
bool: Gets or sets the chunked reading mode for the reader.
In chunked reading mode:
- The reader will treat 0xFF bytes as the end of the current chunk.
- next_chunk() can be called to move to the next chunk.
remaining: int
property
If chunked reading mode is enabled, gets the number of bytes remaining in the current
chunk. Otherwise, gets the total number of bytes remaining in the input data.
position: int
property
int: Gets the current position in the input data.
__init__(data)
Creates a new EoReader instance for the specified data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data |
bytes
|
The byte array containing the input data. |
required |
Source code in src/eolib/data/eo_reader.py
23 24 25 26 27 28 29 30 31 32 33 34 | |
slice(index=None, length=None)
Creates a new EoReader whose input data is a shared subsequence of this reader's
data.
The input data of the new reader will start at position index in this reader and contain
up to length bytes. The two reader's position and chunked reading mode will be
independent.
The new reader's position will be zero, and its chunked reading mode will be false.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index |
int
|
The position in this reader at which the data of the new reader will start; must be non-negative. Defaults to the current reader position. |
None
|
length |
int
|
The length of the shared subsequence of data to supply to the
new reader; must be non-negative. Defaults to the length of the remaining data
starting from |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
EoReader |
EoReader
|
The new reader. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/eolib/data/eo_reader.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
get_byte()
Reads a raw byte from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A raw byte. |
Source code in src/eolib/data/eo_reader.py
76 77 78 79 80 81 82 83 | |
get_bytes(length)
Reads an array of raw bytes from the input data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
length |
int
|
The number of bytes to read. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bytearray |
bytearray
|
An array of raw bytes. |
Source code in src/eolib/data/eo_reader.py
85 86 87 88 89 90 91 92 93 94 95 | |
get_char()
Reads an encoded 1-byte integer from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A decoded 1-byte integer. |
Source code in src/eolib/data/eo_reader.py
97 98 99 100 101 102 103 104 | |
get_short()
Reads an encoded 2-byte integer from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A decoded 2-byte integer. |
Source code in src/eolib/data/eo_reader.py
106 107 108 109 110 111 112 113 | |
get_three()
Reads an encoded 3-byte integer from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A decoded 3-byte integer. |
Source code in src/eolib/data/eo_reader.py
115 116 117 118 119 120 121 122 | |
get_int()
Reads an encoded 4-byte integer from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A decoded 4-byte integer. |
Source code in src/eolib/data/eo_reader.py
124 125 126 127 128 129 130 131 | |
get_string()
Reads a string from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A string. |
Source code in src/eolib/data/eo_reader.py
133 134 135 136 137 138 139 140 141 | |
get_fixed_string(length, padded=False)
Reads a string with a fixed length from the input data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
length |
int
|
The length of the string. |
required |
padded |
bool
|
True if the string is padded with trailing |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A decoded string. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the length is negative. |
Source code in src/eolib/data/eo_reader.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | |
get_encoded_string()
Reads an encoded string from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A decoded string. |
Source code in src/eolib/data/eo_reader.py
164 165 166 167 168 169 170 171 172 173 | |
get_fixed_encoded_string(length, padded=False)
Reads an encoded string with a fixed length from the input data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
length |
int
|
The length of the string. |
required |
padded |
bool
|
True if the string is padded with trailing |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A decoded string. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the length is negative. |
Source code in src/eolib/data/eo_reader.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | |
next_chunk()
Moves the reader position to the start of the next chunk in the input data.
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If not in chunked reading mode. |
Source code in src/eolib/data/eo_reader.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
TalkRecord
Record of Talk data in an Endless Talk File
Source code in src/eolib/protocol/_generated/pub/server/talk_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
npc_id: int
property
ID of the NPC that will talk
rate: int
property
Chance that the NPC will talk (0-100)
messages: tuple[TalkMessageRecord, ...]
property
__init__(*, npc_id, rate, messages)
Create a new instance of TalkRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npc_id |
int
|
ID of the NPC that will talk (Value range is 0-64008.) |
required |
rate |
int
|
Chance that the NPC will talk (0-100) (Value range is 0-252.) |
required |
messages |
Iterable[TalkMessageRecord]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_record.py
23 24 25 26 27 28 29 30 31 32 33 34 35 | |
serialize(writer, data)
staticmethod
Serializes an instance of TalkRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
TalkRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_record.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
deserialize(reader)
staticmethod
Deserializes an instance of TalkRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TalkRecord |
'TalkRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/talk_record.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
TalkFile
Endless Talk File
Source code in src/eolib/protocol/_generated/pub/server/talk_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
npcs: tuple[TalkRecord, ...]
property
__init__(*, npcs)
Create a new instance of TalkFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npcs |
Iterable[TalkRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of TalkFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
TalkFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of TalkFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TalkFile |
'TalkFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/talk_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
SkillMasterSkillRecord
Record of a skill that a Skill Master NPC can teach
Source code in src/eolib/protocol/_generated/pub/server/skill_master_skill_record.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
skill_id: int
property
level_requirement: int
property
Level required to learn this skill
class_requirement: int
property
Class required to learn this skill
price: int
property
skill_requirements: tuple[int, ...]
property
IDs of skills that must be learned before a player can learn this skill
str_requirement: int
property
Strength required to learn this skill
int_requirement: int
property
Intelligence required to learn this skill
wis_requirement: int
property
Wisdom required to learn this skill
agi_requirement: int
property
Agility required to learn this skill
con_requirement: int
property
Constitution required to learn this skill
cha_requirement: int
property
Charisma required to learn this skill
__init__(*, skill_id, level_requirement, class_requirement, price, skill_requirements, str_requirement, int_requirement, wis_requirement, agi_requirement, con_requirement, cha_requirement)
Create a new instance of SkillMasterSkillRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
skill_id |
int
|
(Value range is 0-64008.) |
required |
level_requirement |
int
|
Level required to learn this skill (Value range is 0-252.) |
required |
class_requirement |
int
|
Class required to learn this skill (Value range is 0-252.) |
required |
price |
int
|
(Value range is 0-4097152080.) |
required |
skill_requirements |
Iterable[int]
|
IDs of skills that must be learned before a player can learn this skill (Length must be |
required |
str_requirement |
int
|
Strength required to learn this skill (Value range is 0-64008.) |
required |
int_requirement |
int
|
Intelligence required to learn this skill (Value range is 0-64008.) |
required |
wis_requirement |
int
|
Wisdom required to learn this skill (Value range is 0-64008.) |
required |
agi_requirement |
int
|
Agility required to learn this skill (Value range is 0-64008.) |
required |
con_requirement |
int
|
Constitution required to learn this skill (Value range is 0-64008.) |
required |
cha_requirement |
int
|
Charisma required to learn this skill (Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_skill_record.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
serialize(writer, data)
staticmethod
Serializes an instance of SkillMasterSkillRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
SkillMasterSkillRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_skill_record.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | |
deserialize(reader)
staticmethod
Deserializes an instance of SkillMasterSkillRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SkillMasterSkillRecord |
'SkillMasterSkillRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_skill_record.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |
SkillMasterRecord
Record of Skill Master data in an Endless Skill Master File
Source code in src/eolib/protocol/_generated/pub/server/skill_master_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
behavior_id: int
property
Behavior ID of the Skill Master NPC
name: str
property
min_level: int
property
Minimum level required to use this Skill Master
max_level: int
property
Maximum level allowed to use this Skill Master
class_requirement: int
property
Class required to use this Skill Master
skills: tuple[SkillMasterSkillRecord, ...]
property
__init__(*, behavior_id, name, min_level, max_level, class_requirement, skills)
Create a new instance of SkillMasterRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
behavior_id |
int
|
Behavior ID of the Skill Master NPC (Value range is 0-64008.) |
required |
name |
str
|
(Length must be 252 or less.) |
required |
min_level |
int
|
Minimum level required to use this Skill Master (Value range is 0-252.) |
required |
max_level |
int
|
Maximum level allowed to use this Skill Master (Value range is 0-252.) |
required |
class_requirement |
int
|
Class required to use this Skill Master (Value range is 0-252.) |
required |
skills |
Iterable[SkillMasterSkillRecord]
|
(Length must be 64008 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_record.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
serialize(writer, data)
staticmethod
Serializes an instance of SkillMasterRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
SkillMasterRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_record.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |
deserialize(reader)
staticmethod
Deserializes an instance of SkillMasterRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SkillMasterRecord |
'SkillMasterRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_record.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |
SkillMasterFile
Endless Skill Master File
Source code in src/eolib/protocol/_generated/pub/server/skill_master_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
skill_masters: tuple[SkillMasterRecord, ...]
property
__init__(*, skill_masters)
Create a new instance of SkillMasterFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
skill_masters |
Iterable[SkillMasterRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of SkillMasterFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
SkillMasterFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of SkillMasterFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SkillMasterFile |
'SkillMasterFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
ShopTradeRecord
Record of an item that can be bought or sold in a shop
Source code in src/eolib/protocol/_generated/pub/server/shop_trade_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
item_id: int
property
buy_price: int
property
How much it costs to buy the item from the shop
sell_price: int
property
How much the shop will pay for the item
max_amount: int
property
Max amount of the item that can be bought or sold at one time
__init__(*, item_id, buy_price, sell_price, max_amount)
Create a new instance of ShopTradeRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item_id |
int
|
(Value range is 0-64008.) |
required |
buy_price |
int
|
How much it costs to buy the item from the shop (Value range is 0-16194276.) |
required |
sell_price |
int
|
How much the shop will pay for the item (Value range is 0-16194276.) |
required |
max_amount |
int
|
Max amount of the item that can be bought or sold at one time (Value range is 0-252.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_trade_record.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopTradeRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopTradeRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_trade_record.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopTradeRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopTradeRecord |
ShopTradeRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_trade_record.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
ShopCraftRecord
Record of an item that can be crafted in a shop
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
item_id: int
property
ingredients: tuple[ShopCraftIngredientRecord, ...]
property
__init__(*, item_id, ingredients)
Create a new instance of ShopCraftRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item_id |
int
|
(Value range is 0-64008.) |
required |
ingredients |
Iterable[ShopCraftIngredientRecord]
|
(Length must be |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_record.py
21 22 23 24 25 26 27 28 29 30 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopCraftRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopCraftRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_record.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopCraftRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopCraftRecord |
'ShopCraftRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_record.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
ShopRecord
Record of Shop data in an Endless Shop File
Source code in src/eolib/protocol/_generated/pub/server/shop_record.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
behavior_id: int
property
name: str
property
min_level: int
property
Minimum level required to use this shop
max_level: int
property
Maximum level allowed to use this shop
class_requirement: int
property
Class required to use this shop
trades: tuple[ShopTradeRecord, ...]
property
crafts: tuple[ShopCraftRecord, ...]
property
__init__(*, behavior_id, name, min_level, max_level, class_requirement, trades, crafts)
Create a new instance of ShopRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
behavior_id |
int
|
(Value range is 0-64008.) |
required |
name |
str
|
(Length must be 252 or less.) |
required |
min_level |
int
|
Minimum level required to use this shop (Value range is 0-252.) |
required |
max_level |
int
|
Maximum level allowed to use this shop (Value range is 0-252.) |
required |
class_requirement |
int
|
Class required to use this shop (Value range is 0-252.) |
required |
trades |
Iterable[ShopTradeRecord]
|
(Length must be 64008 or less.) |
required |
crafts |
Iterable[ShopCraftRecord]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_record.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_record.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopRecord |
'ShopRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_record.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
ShopFile
Endless Shop File
Source code in src/eolib/protocol/_generated/pub/server/shop_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
shops: tuple[ShopRecord, ...]
property
__init__(*, shops)
Create a new instance of ShopFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shops |
Iterable[ShopRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopFile |
'ShopFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
ShopCraftIngredientRecord
Record of an ingredient for crafting an item in a shop
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_ingredient_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
item_id: int
property
Item ID of the craft ingredient, or 0 if the ingredient is not present
amount: int
property
__init__(*, item_id, amount)
Create a new instance of ShopCraftIngredientRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item_id |
int
|
Item ID of the craft ingredient, or 0 if the ingredient is not present (Value range is 0-64008.) |
required |
amount |
int
|
(Value range is 0-252.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_ingredient_record.py
18 19 20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopCraftIngredientRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopCraftIngredientRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_ingredient_record.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopCraftIngredientRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopCraftIngredientRecord |
ShopCraftIngredientRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_ingredient_record.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
InnQuestionRecord
Record of a question and answer that the player must answer to register citizenship with an inn
Source code in src/eolib/protocol/_generated/pub/server/inn_question_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
question: str
property
answer: str
property
__init__(*, question, answer)
Create a new instance of InnQuestionRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
question |
str
|
(Length must be 252 or less.) |
required |
answer |
str
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_question_record.py
20 21 22 23 24 25 26 27 28 29 30 31 | |
serialize(writer, data)
staticmethod
Serializes an instance of InnQuestionRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
InnQuestionRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_question_record.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
deserialize(reader)
staticmethod
Deserializes an instance of InnQuestionRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
InnQuestionRecord |
InnQuestionRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/inn_question_record.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
InnRecord
Record of Inn data in an Endless Inn File
Source code in src/eolib/protocol/_generated/pub/server/inn_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
behavior_id: int
property
Behavior ID of the NPC that runs the inn. 0 for default inn
name: str
property
spawn_map: int
property
ID of the map the player is sent to after respawning
spawn_x: int
property
X coordinate of the map the player is sent to after respawning
spawn_y: int
property
Y coordinate of the map the player is sent to after respawning
sleep_map: int
property
ID of the map the player is sent to after sleeping at the inn
sleep_x: int
property
X coordinate of the map the player is sent to after sleeping at the inn
sleep_y: int
property
Y coordinate of the map the player is sent to after sleeping at the inn
alternate_spawn_enabled: bool
property
Flag for an alternate spawn point. If true, the server will use this alternate spawn map, x, and, y based on some other condition.
In the official server, this is used to respawn new characters on the noob island until they reach a certain level.
alternate_spawn_map: int
property
alternate_spawn_x: int
property
alternate_spawn_y: int
property
questions: tuple[InnQuestionRecord, ...]
property
__init__(*, behavior_id, name, spawn_map, spawn_x, spawn_y, sleep_map, sleep_x, sleep_y, alternate_spawn_enabled, alternate_spawn_map, alternate_spawn_x, alternate_spawn_y, questions)
Create a new instance of InnRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
behavior_id |
int
|
Behavior ID of the NPC that runs the inn. 0 for default inn (Value range is 0-64008.) |
required |
name |
str
|
(Length must be 252 or less.) |
required |
spawn_map |
int
|
ID of the map the player is sent to after respawning (Value range is 0-64008.) |
required |
spawn_x |
int
|
X coordinate of the map the player is sent to after respawning (Value range is 0-252.) |
required |
spawn_y |
int
|
Y coordinate of the map the player is sent to after respawning (Value range is 0-252.) |
required |
sleep_map |
int
|
ID of the map the player is sent to after sleeping at the inn (Value range is 0-64008.) |
required |
sleep_x |
int
|
X coordinate of the map the player is sent to after sleeping at the inn (Value range is 0-252.) |
required |
sleep_y |
int
|
Y coordinate of the map the player is sent to after sleeping at the inn (Value range is 0-252.) |
required |
alternate_spawn_enabled |
bool
|
Flag for an alternate spawn point. If true, the server will use this alternate spawn map, x, and, y based on some other condition. In the official server, this is used to respawn new characters on the noob island until they reach a certain level. |
required |
alternate_spawn_map |
int
|
(Value range is 0-64008.) |
required |
alternate_spawn_x |
int
|
(Value range is 0-252.) |
required |
alternate_spawn_y |
int
|
(Value range is 0-252.) |
required |
questions |
Iterable[InnQuestionRecord]
|
(Length must be |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_record.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
serialize(writer, data)
staticmethod
Serializes an instance of InnRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
InnRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_record.py
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
deserialize(reader)
staticmethod
Deserializes an instance of InnRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
InnRecord |
'InnRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/inn_record.py
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
InnFile
Endless Inn File
Source code in src/eolib/protocol/_generated/pub/server/inn_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
inns: tuple[InnRecord, ...]
property
__init__(*, inns)
Create a new instance of InnFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inns |
Iterable[InnRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of InnFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
InnFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of InnFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
InnFile |
'InnFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/inn_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
DropRecord
Record of an item an NPC can drop when killed
Source code in src/eolib/protocol/_generated/pub/server/drop_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
item_id: int
property
min_amount: int
property
max_amount: int
property
rate: int
property
Chance (x in 64,000) of the item being dropped
__init__(*, item_id, min_amount, max_amount, rate)
Create a new instance of DropRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item_id |
int
|
(Value range is 0-64008.) |
required |
min_amount |
int
|
(Value range is 0-16194276.) |
required |
max_amount |
int
|
(Value range is 0-16194276.) |
required |
rate |
int
|
Chance (x in 64,000) of the item being dropped (Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_record.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
serialize(writer, data)
staticmethod
Serializes an instance of DropRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
DropRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_record.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
deserialize(reader)
staticmethod
Deserializes an instance of DropRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DropRecord |
DropRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/drop_record.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
DropNpcRecord
Record of potential drops from an NPC
Source code in src/eolib/protocol/_generated/pub/server/drop_npc_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
npc_id: int
property
drops: tuple[DropRecord, ...]
property
__init__(*, npc_id, drops)
Create a new instance of DropNpcRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npc_id |
int
|
(Value range is 0-64008.) |
required |
drops |
Iterable[DropRecord]
|
(Length must be 64008 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_npc_record.py
22 23 24 25 26 27 28 29 30 31 32 | |
serialize(writer, data)
staticmethod
Serializes an instance of DropNpcRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
DropNpcRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_npc_record.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
deserialize(reader)
staticmethod
Deserializes an instance of DropNpcRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DropNpcRecord |
'DropNpcRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/drop_npc_record.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
DropFile
Endless Drop File
Source code in src/eolib/protocol/_generated/pub/server/drop_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
npcs: tuple[DropNpcRecord, ...]
property
__init__(*, npcs)
Create a new instance of DropFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npcs |
Iterable[DropNpcRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of DropFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
DropFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of DropFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DropFile |
'DropFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/drop_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |