Script::OffhandHasWeapon
function · ui · orchestration
- Address
0x4c9570· 98 bytes, up to0x4c95d1- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 when the off-hand slot holds a weapon, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/inventory#off-hand-weapon
Finding: Off-hand weapon in ui: inventory queries and alerts
OffhandHasWeapon() is 0x4c9570. It returns the number 1 when the active player has an item in flat slot 16 whose
item class is 2 (weapon), and nil otherwise, including with no player or an empty slot.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetItemClass objectlayer
- GetItemInSlot objectlayer
- lua_pushnil lua
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.