Azoth Central — MB::LootTrackerComponentReplicatedState

All Packets #982

MB::LootTrackerComponentReplicatedState

SolvedCaptured ✓

We know its format and the Azoth server already uses it.

What it doesVery likely

Keeps track of what you can loot from creatures: which loot bags are yours, which are locked for you and which you already took.

Activity: Combat

How to capture

We already have this packet in a recording. You only need to record it again if you want to help check it.

  1. Start the capture, then log in and choose a character.
  2. Head to an area with creatures you can fight, such as wolves, boars or bears.
  3. Defeat a creature and open the loot bag it leaves behind (the interact key, E).
  4. Do it on at least five creatures, and fight one together with a friend if you can.
  5. Write down the time of each kill.

Recording tips

  • Record one activity per recording.
  • Keep each recording under 5 minutes.
  • Write down the time of each step.
  • Send the ledger.bin file only through /capture on Discord.

Send your recording or use /capture on Discord.

FieldsSpec: Verified

When: Sent by the server to each player (component key 33 of the local player) to say which loot bags that player can see and take. Loot bags are shared objects, but what you may do with one is decided here, per player. Everything is in one group (mask bit 0x01). The map is sent in full (a 0 byte, an optional version, a count and the entries) or as a delta (the number of changes, a mask byte per batch of 8, then key, optional version and the entry, with a clear mask bit removing it).

This state has no fixed offsets. It travels as a member inside the replicated state bundle (packet 8): component key, type, then the body. The body starts with a group mask (one bit per group, see mask_bit), then for each group present a field mask (7 bits per byte, the top bit means another mask byte follows), then only the fields whose bit is set, in order. Fields are matched by name.

AtFieldTypeSizeMeaningExample
— m_lootDataMap structured — One entry per loot bag, keyed by the bag's 16-byte entity id (never shown here). After the key an entry has: the state (32-bit), the type (32-bit), the time it resets and the time it was looted (64-bit each, nanoseconds since 1970 in the captures), a flag byte for privileged access, the bag's position (three 32-bit floats), the interaction tag (32-bit) and a last byte that picks the glow colour. A bag with no entry is invisible to that player.
  • count: 0 (0 to 1)
  • each: state: 2 (1 to 2)
  • each: type: 0 (0 to 4)
  • each: resetTime: 0x18dd5a612ab88540 (0x18d8ac283d37e594 to 0x18dd5a612ab88540)
  • each: lootedTime: 0x18dd33ea0f79eff0 (0x18d8ac0ed98677a4 to 0x18dd3429246cb480)
  • each: privileged: 0 (0 to 1)
  • each: posX: 11894.516 (662.85016 to 13902.958)
  • each: posY: 7454.3833 (414.6608 to 9220.806)
+ 3 more sub-values in the API
— m_lootCollectibles unknown — — not seen in the recordings
— m_failedRollBonusPercent unknown — — not seen in the recordings
— m_slayerScriptDataMap unknown — — not seen in the recordings
— m_lootDivertMap unknown — — not decoded yet
— m_lootLimitDataMap unknown — — not decoded yet
— lootBagState — — Part of every m_lootDataMap entry (its state): what the player may do with the bag.
  • 1 Rolled: the player sees the bag and can take from it
  • 2 Looted: already taken; the bag dissolves
  • 5 Locked: the player sees the bag but cannot take from it
—
— lootBagType — — Part of every m_lootDataMap entry (its type): where the bag came from. Other values appear in the captures and are not decoded.
  • 1 Loot dropped by a creature
  • 5 Discarded: items a player threw on the ground
—
— lootBagGlow — — Part of every m_lootDataMap entry (its last byte): the rarity colour of the glow.
  • 0 White
  • 1 Green
  • 2 Blue
  • 3 Purple
  • 4 Orange
—
How to capture