benilla-re systems structs docs

Script::GetShapeshiftFormCooldown

function · ui · primitive

Address
0x4b49a0 · 266 bytes, up to 0x4b4aa9
Signature
int __fastcall (lua_State *L)
Meaning
Returns a form bar spell's cooldown start and duration in seconds and its enable flag
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/petbar#form-cooldown-and-cast
Test
ui::luabind_4b49a0_get_shapeshift_form_cooldown

Finding: Form cooldown and cast in ui: the pet bar and the form bar

GetShapeshiftFormCooldown(index) returns start and duration times 0.001 and the enable flag for the form's spell from the player's bank, and 0, 0, 1 for an index outside the list. CastShapeshiftForm(index) takes the form's spell. With a shapeshift aura whose form number is in the form table: if the player is already in that form it cancels the form (0x6e7040), or does nothing when the form record's flag word (+0x2c) has bit 1 set; in any other form state it casts. A spell without a form number toggles by its aura instead: the cancel happens when the spell has an active icon and its aura is up, else it casts. The cast is 0x6e5a90 on the player.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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