Open LucBerge opened 1 year ago
Based on my observations:
readByte
or readBoolean
can be used. However, it is crucial to maintain the order of the attributes.readByte
should be invoked first. Each bit of the byte corresponds to a Boolean attribute, arranged in the same sequence as they appear. For every group of eight Boolean attributes, an additional readByte
call is necessary to handle the next set of Booleans. (See ActorRestrictionsInformations).
In the file https://github.com/bot4dofus/Datafus/blob/master/data/A/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/connection/IdentificationMessage.as#L119
autoconnect
is the first bit of the byteuseCertificate
the second bituseLoginToken
the third bitThose booleans are flags.
We should be able to distinguish them from regular booleans like in https://github.com/bot4dofus/Datafus/blob/master/data/A/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/game/basic/BasicWhoIsRequestMessage.as#L120
Content of events.json: