-
Notifications
You must be signed in to change notification settings - Fork 52
Crafting
MMOMinion edited this page Oct 15, 2013
·
5 revisions
- The Crafting object holds all functions and information needed for...drumroll...crafting!
- this is a work in progress..
- Example:
local synth = Crafting:SynthInfo()
if ( synth ) then
d("Current Step: ".. tostring(synth.step).. " Current Durability: "..tostring(synth.durability))
end
- :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). ```lua -- 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.description) -- some text ```