Skip to content
KaWeNGoD edited this page Dec 2, 2014 · 5 revisions

Crafting

  • The Crafting object holds all functions and information needed for...drumroll...crafting!
  • this is a work in progress..

Accessing the Crafting functions

  • Example:
local synth = Crafting:SynthInfo()
if ( synth  ) then
   d("Current Step: ".. tostring(synth.step).. " Current Durability: "..tostring(synth.durability))     
end

Crafting Functions

:CanCraftSelectedItem()
Returns if the currently selected Item in the CraftingLog can be crafted (boolean).
:CraftSelectedItem()
Crafts the selected Item in the CraftingLog (boolean).
:IsCraftingLogOpen()
Returns if the CraftingLog is opened (boolean).
:ToggleCraftingLog()
Opens/Closes the CraftingLog (boolean).
:EndSynthesis()
Finishes and closes the Quick-Synthesis Window (boolean).
:SynthInfo()
Returns a lua table which holds all synthesis relevant information (lua table).
--the 'd' command is a global command for printing out information into the console
local synth = Crafting:SynthInfo()
d(synth.step) -- current step
d(synth.stepmax) -- max step
d(synth.itemid) -- currently crafted [[Item]] -ID
d(synth.durability) -- current durability
d(synth.durabilitymax) -- max durability
d(synth.progress) -- current progress
d(synth.progressmax) -- max progress
d(synth.quality) -- current quality
d(synth.qualitymax) -- max quality
d(synth.qualitypercent) -- current quality in a percent
d(synth.description) -- condition
Clone this wiki locally