FindRaidTargetSlot
function · ui · primitive
- Address
0x4bb190· 54 bytes, up to0x4bb1c5- Signature
int32_t __stdcall (uint64_t guid)- Meaning
- Returns the raid target slot a GUID holds, or 8
- Confidence
- verified, proof one
- Finding
- ui/raid#the-raid-target-table
Finding: The raid target table in ui: the raid roster, ready check and raid targets
GetRaidTargetIndex(unit) pushes one value, the unit's 1-based icon number 1 to 8, or nil. The table 0xb71368 holds eight GUIDs; 0x4bb190(guid) returns the slot of a
GUID or 8. The wire is 0-based, the Lua side 1-based. Opcode 0x321 arrives at 0x4ba220: u8 mode; a nonzero mode clears all eight and refreshes the nameplate icon of each former holder;
then u8 slot, u64 guid pairs are read to the end, each refreshing the old and new holder, and RAID_TARGET_UPDATE is signalled once. A group list without the raid flag also
clears the table (0x4ba550): when the roster was not empty it shows ERR_RAID_YOU_LEFT and signals RAID_ROSTER_UPDATE; it always zeroes the table and signals RAID_TARGET_UPDATE.
The derivation is in the doc.
Callers 5
- Script::GetRaidTargetIndex ui
- Script::SetRaidTarget ui
- CGUnit_C::UpdateNamePlateIcon objectlayer
- PLAYERNAMEDESC::UpdatePlate playername
- CGNamePlateFrame::Bind ui
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.