benilla-re systems structs docs

TryOnItemCached

function · ui · primitive

Address
0x504ba0 · 23 bytes, up to 0x504bb6
Signature
void __fastcall (uint32_t arg1, uint32_t unused, uint32_t, uint8_t ok)
Meaning
Tries the item on again when its record arrives
Confidence
verified, proof one
Finding
ui/dressup#trying-on-an-item

Finding: Trying on an item in ui: trying items on the dressing room model

TryOn(itemId) looks the item up in the item cache and does nothing while the record is missing (the cache calls 0x504ba0 back to try again), when the record has display id 0, or while the pane has no model. It then acts on the record's inventory type:

inventory typeaction
1clear and set component slot 0
3, 4, 5 and 20, 6, 7, 8, 9, 10component slots 1, 2, 3, 4, 5, 6, 7, 8
16 cloakcomponent slot 0xa
19 tabardcomponent slot 9, with the guild emblem
13, 14, 15, 17, 21, 22, 23, 25, 26the held-item lanes
2, 11, 12, 28nothing
18, 24, 27 and above 28ERR_NOT_EQUIPPABLE, nothing else

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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