Thread Rating:
  • 8 Vote(s) - 3.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestion : custom counter for ffxiv crafting (trick of trade)
#4
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
Reply
 


Messages In This Thread
RE: Suggestion : custom counter for ffxiv crafting (trick of trade) - by Noktam - 01-04-2015, 12:10 PM

Forum Jump:


Users browsing this thread:

We help you win the game.

FFXIV Bot and More.

 

Products