benilla-re systems structs docs

Script::GetPetTimeRemaining

function · ui · primitive

Address
0x4be600 · 97 bytes, up to 0x4be660
Signature
int __fastcall (lua_State *L)
Meaning
Returns the milliseconds left of the pet's expiry tick, or nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/petbar#other-pet-functions

Finding: Other pet functions in ui: the pet bar and the form bar

GetPetTimeRemaining (0x4be600) pushes nil when the expiry tick 0xb714a8 is 0, else tick - now in milliseconds (no scaling to seconds). It pushes 0 only when the tick equals the clock; a tick that has passed pushes 2^32 minus the milliseconds since it passed. GetPetFoodTypes (0x4bea10) returns, as strings, the localized name of each food type whose bit (the type minus 1) is set in the word at +0x1c of the pet's creature family record, in table order; it returns no value for a pet that fails 0x6116e0. GetPetIcon (0x4beb10) pushes the string at +0x44 of that family record, or nil.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.