sequence_start
SequenceStart
Bases: ABC
A value sent by the server to update the client's sequence start, also known as the 'starting counter ID'.
Source code in src/eolib/packet/sequence_start.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
value()
int: Gets the sequence start value.
Source code in src/eolib/packet/sequence_start.py
12 13 14 15 16 17 |
|
zero()
staticmethod
Returns an instance of SequenceStart with a value of 0.
Returns:
Name | Type | Description |
---|---|---|
SequenceStart |
SequenceStart
|
An instance of SequenceStart. |
Source code in src/eolib/packet/sequence_start.py
19 20 21 22 23 24 25 26 27 |
|
SimpleSequenceStart
Bases: SequenceStart
Source code in src/eolib/packet/sequence_start.py
30 31 32 33 34 35 36 37 38 |
|
value
property
__init__(value)
Source code in src/eolib/packet/sequence_start.py
33 34 |
|
AccountReplySequenceStart
Bases: SimpleSequenceStart
A class representing the sequence start value sent with the ACCOUNT_REPLY
server packet.
See Also
Source code in src/eolib/packet/sequence_start.py
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 |
|
__init__(value)
Source code in src/eolib/packet/sequence_start.py
49 50 |
|
from_value(value)
staticmethod
Creates an instance of AccountReplySequenceStart from the value sent with the
ACCOUNT_REPLY
server packet.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
int
|
The sequence start value sent with the |
required |
Returns:
Name | Type | Description |
---|---|---|
AccountReplySequenceStart |
AccountReplySequenceStart
|
An instance of AccountReplySequenceStart. |
Source code in src/eolib/packet/sequence_start.py
52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
generate()
staticmethod
Generates an instance of AccountReplySequenceStart with a random value in the range 0-240.
Returns:
Name | Type | Description |
---|---|---|
AccountReplySequenceStart |
AccountReplySequenceStart
|
An instance of AccountReplySequenceStart. |
Source code in src/eolib/packet/sequence_start.py
66 67 68 69 70 71 72 73 74 |
|
InitSequenceStart
Bases: SimpleSequenceStart
A class representing the sequence start value sent with the INIT_INIT
server packet.
See Also
Source code in src/eolib/packet/sequence_start.py
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 |
|
seq1: int
property
Returns the seq1
byte value sent with the INIT_INIT
server packet.
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
The seq1 byte value. |
seq2: int
property
Returns the seq2
byte value sent with the INIT_INIT
server packet.
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
The seq2 byte value. |
__init__(value, seq1, seq2)
Source code in src/eolib/packet/sequence_start.py
88 89 90 91 |
|
from_init_values(seq1, seq2)
staticmethod
Creates an instance of InitSequenceStart from the values sent with the INIT_INIT
server
packet.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
seq1 |
int
|
The |
required |
seq2 |
int
|
The |
required |
Returns:
Name | Type | Description |
---|---|---|
InitSequenceStart |
InitSequenceStart
|
An instance of InitSequenceStart |
Source code in src/eolib/packet/sequence_start.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|
generate()
staticmethod
Generates an instance of InitSequenceStart with a random value in the range 0-1757.
Returns:
Name | Type | Description |
---|---|---|
InitSequenceStart |
InitSequenceStart
|
An instance of InitSequenceStart. |
Source code in src/eolib/packet/sequence_start.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
|
PingSequenceStart
Bases: SimpleSequenceStart
A class representing the sequence start value sent with the CONNECTION_PLAYER
server packet.
See Also
Source code in src/eolib/packet/sequence_start.py
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 |
|
seq1: int
property
Returns the seq1 short value sent with the CONNECTION_PLAYER
server packet.
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
The seq1 short value. |
seq2: int
property
Returns the seq2 char value sent with the CONNECTION_PLAYER
server packet.
Returns:
Name | Type | Description |
---|---|---|
int |
int
|
The seq2 char value. |
__init__(value, seq1, seq2)
Source code in src/eolib/packet/sequence_start.py
155 156 157 158 |
|
from_ping_values(seq1, seq2)
staticmethod
Creates an instance of PingSequenceStart from the values sent with the CONNECTION_PLAYER
server packet.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
seq1 |
int
|
The |
required |
seq2 |
int
|
The |
required |
Returns:
Name | Type | Description |
---|---|---|
PingSequenceStart |
PingSequenceStart
|
An instance of PingSequenceStart. |
Source code in src/eolib/packet/sequence_start.py
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
|
generate()
staticmethod
Generates an instance of PingSequenceStart with a random value in the range 0-1757.
Returns:
Name | Type | Description |
---|---|---|
PingSequenceStart |
PingSequenceStart
|
An instance of PingSequenceStart. |
Source code in src/eolib/packet/sequence_start.py
196 197 198 199 200 201 202 203 204 205 206 207 208 |
|