benilla-re systems structs docs

CGItem_C::SetEnchantmentExpiry

function · objectlayer · primitive

Address
0x5d9cc0 · 63 bytes, up to 0x5d9cfe
Signature
void __thiscall (CGItem_C *this, uint32_t slot, int32_t seconds)
Meaning
Sets an enchantment slot'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 2

Callees 1

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