CGPlayer_C::CanUseItem
function · objectlayer · primitive
- Address
0x5ea930· 431 bytes, up to0x5eaade- Signature
uint32_t __thiscall (CGPlayer_C *this, void *record, uint32_t *error)- Meaning
- Tests an item record's level, class, race, proficiency, skill, spell, rank and reputation needs
- Confidence
- verified, proof one
- Finding
- objectlayer/playercombat#using-an-item
Finding: Using an item in objectlayer: player spells and combat
0x5ea930(record, &error) says whether the player can use an item record: no record is
ERR_ITEM_NOT_FOUND; a missing proficiency for its class and subclass ERR_PROFICIENCY_NEEDED;
too low a level, a class or race outside its masks, too low a required skill, an unknown required
spell (nor a higher rank), too low an honor rank, a missing medal bit, or too low a standing with
its faction, ERR_CANT_USE_ITEM.
The derivation is in the doc.
Callers 13
- Script::GetInboxItem ui
- Script::GetTradeTargetItemInfo ui
- GetPrizeItem ui
- Script::GetAuctionSellItemInfo ui
- Script::GetAuctionItemInfo ui
- Script::GetQuestLogRewardInfo ui
- Script::GetQuestLogChoiceInfo ui
- Script::GetMerchantItemInfo ui
- Script::GetBuybackItemInfo ui
- GetQuestItemFields ui
- CGItem_C::Use objectlayer
- CGPlayer_C::SwapItems objectlayer
- CGPlayer_C::AutoEquipCursorItem objectlayer
Callees 6
- ClntObjMgrGetActivePlayer objectlayer
- GetFactionStanding ui
- GetProficiencyMask objectlayer
- CGPlayer_C::FindSkillIndex objectlayer
- CGUnit_C::KnowsSpell objectlayer
- CGUnit_C::KnowsHigherRank objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.