01-04-2015, 12:10 PM
I'm a noob on lua so i don't know how to code an addon, but it's kinda simple to edit the code to make it work if someone is interested :
On langague lua replace :
iqstack = "InnerQuiet Stack >=",
With :
custommin = "custommin",
custommax = "custommax",
customcounteradd = "customcounteradd",
customcounterremove = "customcounterremove",
On ffxiv_task_craft.lua :
Replace :
SkillMgr.currentIQStack = 0
With :
SkillMgr.currentIQStack = 0
SkillMgr.currentcustomcounter = 0
On ffxiv_skillmgr.lua :
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].iqstack,"SKM_IQSTACK",strings[gCurrentLanguage].skillDetails);
With :
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].custommin,"SKM_CUSTOMMIN",strings[gCurrentLanguage].skillDetails);
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].custommax,"SKM_CUSTOMMAX",strings[gCurrentLanguage].skillDetails);
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].customcounteradd,"SKM_CUSTOMCOUNTERADD",strings[gCurrentLanguage].skillDetails);
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].customcounterremove,"SKM_CUSTOMCOUNTERREMOVE",strings[gCurrentLanguage].skillDetails);
Replace
SKM_IQSTACK = { default = 0, cast = "number", profile = "iqstack", section = "crafting"},
With :
SKM_IQSTACK = { default = 0, cast = "number", profile = "iqstack", section = "crafting"},
SKM_CUSTOMMIN = { default = 0, cast = "number", profile = "custommin", section = "crafting"},
SKM_CUSTOMMAX = { default = 0, cast = "number", profile = "custommax", section = "crafting"},
SKM_CUSTOMCOUNTERADD = { default = 0, cast = "number", profile = "customcounteradd", section = "crafting"},
SKM_CUSTOMCOUNTERREMOVE = { default = 0, cast = "number", profile = "customcounterremove", section = "crafting"},
Remplace :
SkillMgr.currentIQStack = 0
With :
SkillMgr.currentIQStack = 0
SkillMgr.currentcustomcounter = 0
Remplace :
(skill.iqstack > 0 and SkillMgr.currentIQStack < skill.iqstack) or
With :
(skill.iqstack > 0 and SkillMgr.currentIQStack < skill.iqstack) or
(skill.custommin > 0 and SkillMgr.currentcustomcounter < skill.custommin) or
(skill.custommax > 0 and SkillMgr.currentcustomcounter >= skill.custommax) or
Remplace
if ( castable ) then
With :
if ( castable ) then
if skill.customcounteradd > 0 then SkillMgr.currentcustomcounter = SkillMgr.currentcustomcounter + skill.customcounteradd end
if skill.customcounterremove > 0 then SkillMgr.currentcustomcounter = SkillMgr.currentcustomcounter - skill.customcounterremove end
On langague lua replace :
iqstack = "InnerQuiet Stack >=",
With :
custommin = "custommin",
custommax = "custommax",
customcounteradd = "customcounteradd",
customcounterremove = "customcounterremove",
On ffxiv_task_craft.lua :
Replace :
SkillMgr.currentIQStack = 0
With :
SkillMgr.currentIQStack = 0
SkillMgr.currentcustomcounter = 0
On ffxiv_skillmgr.lua :
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].iqstack,"SKM_IQSTACK",strings[gCurrentLanguage].skillDetails);
With :
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].custommin,"SKM_CUSTOMMIN",strings[gCurrentLanguage].skillDetails);
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].custommax,"SKM_CUSTOMMAX",strings[gCurrentLanguage].skillDetails);
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].customcounteradd,"SKM_CUSTOMCOUNTERADD",strings[gCurrentLanguage].skillDetails);
GUI_NewNumeric(SkillMgr.editwindow_crafting.name,strings[gCurrentLanguage].customcounterremove,"SKM_CUSTOMCOUNTERREMOVE",strings[gCurrentLanguage].skillDetails);
Replace
SKM_IQSTACK = { default = 0, cast = "number", profile = "iqstack", section = "crafting"},
With :
SKM_IQSTACK = { default = 0, cast = "number", profile = "iqstack", section = "crafting"},
SKM_CUSTOMMIN = { default = 0, cast = "number", profile = "custommin", section = "crafting"},
SKM_CUSTOMMAX = { default = 0, cast = "number", profile = "custommax", section = "crafting"},
SKM_CUSTOMCOUNTERADD = { default = 0, cast = "number", profile = "customcounteradd", section = "crafting"},
SKM_CUSTOMCOUNTERREMOVE = { default = 0, cast = "number", profile = "customcounterremove", section = "crafting"},
Remplace :
SkillMgr.currentIQStack = 0
With :
SkillMgr.currentIQStack = 0
SkillMgr.currentcustomcounter = 0
Remplace :
(skill.iqstack > 0 and SkillMgr.currentIQStack < skill.iqstack) or
With :
(skill.iqstack > 0 and SkillMgr.currentIQStack < skill.iqstack) or
(skill.custommin > 0 and SkillMgr.currentcustomcounter < skill.custommin) or
(skill.custommax > 0 and SkillMgr.currentcustomcounter >= skill.custommax) or
Remplace
if ( castable ) then
With :
if ( castable ) then
if skill.customcounteradd > 0 then SkillMgr.currentcustomcounter = SkillMgr.currentcustomcounter + skill.customcounteradd end
if skill.customcounterremove > 0 then SkillMgr.currentcustomcounter = SkillMgr.currentcustomcounter - skill.customcounterremove end