benilla-re systems structs docs

tradeskill

rowsnamedverifiedproof twotested
functions0––––
globals0––––
structs0––––
fields0––––
all0––––

Docs

tradeskill: bindings

The Lua functions of the profession window (TradeSkillFrame.cpp). They read the list of recipes, set its filters and collapse state, and select a row. An index is the 1-based position in the sorted list. The functions that take an index test it against the full row count and not the displayed count, which the sort keeps consistent because hidden rows sort last. DoTradeSkill and the repeat count are cast; the item tooltip lines are itemstats.

tradeskill: cast

The profession window casts through the ordinary player cast: one CMSG_CAST_SPELL for the recipe spell, no packet of its own. A repeat count makes the client cast again after each completion. How a spell with effect 47 opens a window is spell/cast; how a failed or cancelled cast ends a repeat is spell/failures and spell/cancel; the completion that drives the next cast is spell/go.

tradeskill: craft

The Lua functions of the Craft window (CraftInfo.cpp): the window of Beast Training, Disguise and Enchanting. The list it reads is built and sorted in ui/craft. Most of these functions read a row of that list the way their profession-window twins in bindings do. A craft type is the window's kind: 1 Beast Training, 2 Disguise, 3 Enchanting.

tradeskill: itemstats

GetTradeSkillItemStats (0x4fdec0), the one large function of the profession window's bindings. For a recipe row it pushes the tooltip lines of the item the recipe creates, one Lua string per line, and returns how many it pushed. The lines come from the item template and the global strings, in a fixed order, and a few of them are coloured by what the local player can use. The other functions of the window are bindings.

tradeskill: overview

The client side of the profession windows. Three object files of the interface hold it: TradeSkillFrame.cpp, the window every profession opens except Beast Training, Disguise and Enchanting; CraftInfo.cpp, the window for those three; and SkillInfo.cpp, the skills tab. The windows are Lua frames. The engine builds their lists from the player's known spells and answers the Lua functions that read the lists and the few that act on them. Opening a window sends nothing, a craft is one cast, and an unlearn is one message.

The docs split by topic: recipes (the profession list: records, difficulty, available counts, filters, order), bindings (the profession window's Lua functions), itemstats (the lines of its item tooltip), cast (DoTradeSkill and the repeat count), craft (the Craft window's Lua functions) and skills (the skill list). This doc holds the object files, their static objects and the events. The function rows of these files belong to ui; the docs cite them by address.

tradeskill: recipes

The profession window's list: one row for each spell the player knows in the open skill line, grouped under headers made from the created item's class and subclass. The list is built by the client from the player object, with no packet. This doc holds the state, the records, the build, the difficulty and available count of a row, the filters and the order. The Lua functions that read the list are bindings.

tradeskill: skills

The skills tab (SkillInfo.cpp): a list of the player's skills under category headers, its collapse and selection state, and the Lua functions that read it. The list is built from the 128 skill slots of the player object. Two groups of functions act on the server: abandoning a skill, and spending skill points on steps. The slot layout is objectlayer/playerfields.

Closure

The docs list no roots.

Functions 0

addressnameclassconfidencetestclosure