FindLockOpener
function · objectlayer · primitive
- Address
0x5da5e0· 456 bytes, up to0x5da7a7- Meaning
- Finds how the active player opens a lock: a spell of open-lock effect with enough skill, or a key item
- Confidence
- verified, proof one
- Finding
- objectlayer/gameobjects#locks
Finding: Locks in objectlayer: game objects
A lock is the Lock.dbc row its data column open names. Each of its eight slots has a key type,
an index, a skill and an action. A skill slot (type 2) opens with a known spell whose effect 33
names the index and whose points reach the slot's skill, or 5 times the level; an item slot
(type 1) with an item of the index's entry in the inventory. The first opener found wins; a lock
with key slots and no opener is closed.
The derivation is in the doc.
Callers 1
Callees 5
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGItem_C::GetUseSpell objectlayer
- FindInventoryItemByEntry objectlayer
- GetSpellEffectPointsInt spell
Calls and jumps by a bare address, from tables/calls.tsv.