10-24-2013, 11:24 AM
If you know coding this is how it chooses a skill type:
Code:
if(not CraftingTool.FirstUse and stepsToFinish ~= 1) then
return CraftingTool.actionType["0"] --Craft
elseif(durability == 10 and playerCP > 91 and useDurability == "1") then
return CraftingTool.actionType["2"] --Durability
elseif(durability == stepsToFinish * 10) then
return CraftingTool.actionType["0"] --Craft
elseif(durability > 10 and (description == "Excellent" or description == "Good") and useQuality == "1" and playerCP > 17) then
return CraftingTool.actionType["1"] --Quality
elseif(NeedToRecastBuffs() and useBuff == "1") then
return CraftingTool.actionType["3"] --Buffs
else
if(durability > 10 and useQuality == "1" and qualitymax - quality ~= 0 and playerCP > 17) then
return CraftingTool.actionType["1"] --Quality
else
return CraftingTool.actionType["0"] --Craft
end
end