benilla-re systems structs docs

InventoryResultToError

function · objectlayer · orchestration

Address
0x622630 · 355 bytes, up to 0x622792
Signature
uint32_t __fastcall (uint32_t result)
Meaning
Maps a server inventory result to an error id through a 67-entry table, ERR_BAG_FULL above it
Confidence
verified, proof one
Finding
objectlayer/inventory#inventory-results

Finding: Inventory results in objectlayer: inventory

0x622630 maps a server inventory result to an error id through a 67-entry table; a result above 66 gives ERR_BAG_FULL and 0 gives none.

resulterror
1 to 3ERR_CANT_EQUIP_LEVEL_I, ERR_CANT_EQUIP_SKILL, ERR_WRONG_SLOT
4, 53, 56, 62ERR_BAG_FULL
8ERR_PROFICIENCY_NEEDED
10, 11ERR_CANT_EQUIP_EVER
9, 12, 18ERR_NO_SLOT_AVAILABLE
28ERR_SPELL_FAILED_REAGENTS_GENERIC
50, 51ERR_INV_FULL, ERR_BANK_FULL
63 to 66ERR_CANT_EQUIP_RANK, _REPUTATION, ERR_TOO_MANY_SPECIAL_BAGS, ERR_LOOT_CANT_LOOT_THAT_NOW

The derivation is in the doc.

Callers 5

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.