FindGameObjectLockOpener
function · objectlayer · primitive
- Address
0x5f83d0· 515 bytes, up to0x5f85d2- Meaning
- Finds how the active player opens a game object's lock: a spell 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 3
- CGTooltip::BuildGameObject ui
- BaseHandlerCanUse objectlayer
- BaseHandlerUse objectlayer
Callees 7
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGItem_C::GetUseSpell objectlayer
- CGGameObject_C::GetLockRow objectlayer
- CGGameObject_C::LockActionAllowed objectlayer
- FindInventoryItemByEntry objectlayer
- GetSpellEffectPointsInt spell
Calls and jumps by a bare address, from tables/calls.tsv.