CGItem_C::SetExpiry
function · objectlayer · primitive
- Address
0x5d9c00· 55 bytes, up to0x5d9c36- Signature
void __thiscall (CGItem_C *this, int32_t seconds)- Meaning
- Sets an item's expiry to now plus the given seconds, or clears it for 0 or less
- Confidence
- verified, proof one
- Finding
- objectlayer/items#item-and-enchantment-timers
Finding: Item and enchantment timers in objectlayer: items
An item keeps one expiry and seven enchantment expiries as clock times in milliseconds. Setting one stores now plus 1000 times the given count, or 0 for a count of 0 or less. Reading one gives the expiry minus now while that difference is positive, else 0.
The derivation is in the doc.
Callers 1
- HandleItemTimers objectlayer
Callees 1
- OsGetAsyncTimeMs core
Calls and jumps by a bare address, from tables/calls.tsv.