Script::GetPlayerBuffTimeLeft
function · ui · primitive
- Address
0x4e4930· 110 bytes, up to0x4e499d- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the seconds left on a buff record
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/auradisplay#texture-dispel-type-stacks-and-time
- Test
ui::luabind_4e4930_buff_time_left
Finding: Texture, dispel type, stacks and time in ui: the buff display functions
GetPlayerBuffTexture(position) pushes the icon path of the record's spell (Spell.dbc icon id at +0x1d4, then the SpellIcon row's path at +4), or nil. GetPlayerBuffApplications(position) pushes the stack count of +0x9, or the number 1 for no record.
GetPlayerBuffDispelType(position) pushes the string in column 11 of the SpellDispelType row of the spell's dispel id (+0x10), or nil for an id of 0, a missing row or a row whose word +0x28 is 0. GetPlayerBuffTimeLeft(position) pushes the time left in seconds (0x4e4450 times 0.001), 0 for no record.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- __ftol crt
- GetBuffTimeLeft ui
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.