Ackis Recipe List

API

r35

AckisRecipeList:AddRecipe(spell_id, skill_level, item_id, quality, profession, specialty, genesis, optimal_level, medium_level, easy_level, trivial_level)

Adds a tradeskill recipe into the specified recipe database

Parameters

spell_id
The Spell ID of the recipe being added to the database
skill_level
The skill level at which the recipe can be initially learned
item_id
The Item ID that is created by the recipe, or nil
quality
The quality/rarity of the recipe
profession
The profession ID that uses the recipe. See API/database-documentation for a listing of profession IDs
specialty
The specialty that uses the recipe (ie: goblin engineering) or nil or blank
genesis
Game version that the recipe was first introduced in, for example, Original, BC, or WoTLK
optimal_level
Level at which recipe is considered orange
medium_level
Level at which recipe is considered yellow
easy_level
Level at which recipe is considered green
trivial_level
Level at which recipe is considered grey

Return value

None, array is passed as a reference

Usage

AckisRecipeList:AddRecipe(28927, 305, 23109, Q.UNCOMMON, V.TBC, 305, 305, 325, 345)


AckisRecipeList:AddRecipeFlags(spell_id, ...)

Adds filtering flags to a specific tradeskill.

Parameters

spell_id
The Spell ID of the recipe which the filter flags are being added to
...
A listing of filtering flags. See API/database-documentation for a listing of filter flags

Return value

None, array is passed as a reference.

Usage

AckisRecipeList:AddRecipeFlags(28927, F.ALLIANCE, F.VENDOR, F.IBOE, F.RBOP, F.HEALER, F.CASTER, F.ALDOR)


AckisRecipeList:GetRecipeData(spell_id, data)

Public API function for retrieving specific information about a recipe.

Parameters

spell_id
The Spell ID of the recipe being queried.
data
Which member of the recipe table is being queried.

Return value

Variable, depending upon which member of the recipe table is queried.

Usage

AckisRecipeList:GetRecipeData(28972, "profession")


AckisRecipeList:InitializeLookups()()

Public API function to initialize all of the lookup lists - self-nils once run.

Usage

if AckisRecipeList.InitializeLookups then AckisRecipeList:InitializeLookups() end


AckisRecipeList:Scan(textdump, is_refresh)

Causes a scan of the tradeskill to be conducted.
Function called when the scan button is clicked. Parses recipes and displays output

Parameters

textdump
Boolean indicating if we want the output to be a text dump, or if we want to use the ARL GUI
is_refresh

Return value

A frame with either the text dump, or the ARL frame

Usage

AckisRecipeList:Scan(true)


Recipe_HasState(self, state_name)

Recipe methods.

Parameters

self
state_name


addon:ClosePopups()

Close all possible pop-up windows


addon:Debug(...)

Debugger.

Parameters

...


addon:GetTextDump(profession)

Dumps the recipe database in a format that is readable to humans (or machines)

Parameters

profession


addon:InitializeProfession(profession)

ARL Logic Functions

Parameters

profession


addon:MERCHANT_SHOW()

Event used for datamining when a vendor is shown.


addon:OnDisable()

Run when the addon is disabled.
Ace3 takes care of unregistering events, etc.


addon:OnEnable()

Function run when the addon is enabled.
Registers events and pre-loads certain variables.


addon:OnInitialize()

Initialization functions


addon:TRAINER_SHOW()

Event used for datamining when a trainer is shown.


private.SetTextColor(color_code, text)

Functions common to most files in the AddOn.

Parameters

color_code
text


Player

known_filtered
Total number of items known filtered during the scan.
Faction
Player's faction
Class
Player's class