Script::DoTradeSkill
function · ui · primitive
- Address
0x500280· 159 bytes, up to0x50031e- Signature
int __fastcall (lua_State *L)- Meaning
- Casts a recipe, repeating it up to the makeable count
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- tradeskill/cast#dotradeskill
Finding: DoTradeSkill in tradeskill: cast
DoTradeSkill (0x500280) takes an index and an optional repeat count, default 1. It casts the spell of the row with the active player as caster, no item and no target (0x6e5a90). Before the cast, a count above 1 is latched. The count is first cut to the row's available count, as an unsigned compare, so a negative count becomes the available count and a count of 0 stays 0.
An index out of range or a missing row does nothing. A header row casts the spell id -1. A row with an available count of 0 still casts once. The function returns no value.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- __ftol crt
- SetTradeSkillRecast ui
- CastSpellAsActivePlayer spell
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.