- summary: Every item and the kamas of the storage that was just opened, such as the bank. A full snapshot: replace what you hold for that storage.
- area: Game.Inventory
Every item and the kamas of the storage that was just opened, such as the bank. A full snapshot: replace what you hold for that storage.
Kind event · Area Game.Inventory
The complete content of the storage the server just opened, such as your bank. It
comes with ExchangeStartedWithStorageEvent, which says WHICH storage it is and
how many slots it has.
WHAT TO DO WHEN YOU RECEIVE IT
1. REPLACE THE STORAGE'S ITEMS. Empty what you hold for the open storage, then
load every element of StorageInventoryContentEvent.objects. The client
clears its storage inventory, items and indexes, before adding these items,
so an item missing from the list is not in the storage. Key your model by
ObjectItem.uid.
2. SET THE STORAGE'S KAMAS to StorageInventoryContentEvent.kamas. It is the
amount, not a change. The client writes it into the very same place that
StorageKamasUpdateEvent overwrites later, the bank inventory's kamas.
3. SEND NOTHING BACK. The handler only stores the content; it builds no
request.
NOT YOUR INVENTORY. InventoryContentEvent has the same two members and fills
the CARRIED inventory. This one fills the STORAGE inventory. A script that feeds
both into one model loses track of what the character actually carries.
KAMAS IS A 64-BIT VALUE. A bank holding more than 2^31 kamas is common; a 32-bit field overflows.
PADDING. Builds add an unread member: a second int64, a string, a repeated int32 or a nested enum. The client reads only the two recovered members.
When you may send it
- Requires
character_loadedinferred
Related messages
- Arrives after
ExchangeStartedWithStorageEvent - Reply not yet recovered: while the storage stays open, single items change through storage object update and removal events, which have no signature here; the kamas change through
StorageKamasUpdateEvent.
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | kamas | int64 | The kamas held in the opened storage. (kamas) An absolute amount. StorageKamasUpdateEvent keeps the same value current afterwards. | never |
| 2 | objects | repeated ObjectItemInventory | Every item in the opened storage. The list replaces the storage's previous content. Each element is an ObjectItemInventory; an item absent from the list is not in the storage. | never |