Script::UseAction
function · ui · orchestration
- Address
0x4e7140· 99 bytes, up to0x4e71a2- Signature
int __fastcall (lua_State *L)- Meaning
- Reads a slot, cursor flag and self flag and uses the action
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/actionuse#using-an-action
Finding: Using an action in ui: placing, picking up and using actions
UseAction (0x4e7140) takes the slot, a cursor flag and a self flag and runs
0x4e5ee0(slot, cursorFlag, selfFlag). A bad slot or an empty one does nothing. With the
cursor flag set and a spell, item, macro or mode 7 payload on the cursor it places instead. Then by
kind. A macro runs 0x4f1460(macro id) (ui/macros). A spell s: if 0x4e55f0 holds (its active
icon is showing) it cancels the aura with 0x6e7040(s); else if s is the auto-repeat spell it stops
it (0x6ea080); else if s is the spell awaiting a target it stops targeting (0x6e4900); else it
casts s through 0x6e5a90, with the active player as the target when the self flag is set and none
otherwise.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- __ftol crt
- UseActionSlot ui
- GetScriptFlagArg ui
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.