VERY new to writing lua, ie, i've literally only touched upon Lua today and I've made this so far.
-- /requirestats 3900 3600 580
if (HasStats(3900, 3600, 580))
then
yield('/echo "You have the appropiate Stats"')
else
yield('/echo "you do not have the required stats to make this item"')
yield('/runmacro "WellFed"')
end
-- if you're below 10% durability, full repair
if (NeedsRepair(5))
then
yield('/echo "Initiating Repairs"')
yield('/runmacro "Repair Gear"')
else
yield('/echo "Your durability is fine"')
end
if CanExtractMateria(100)
then
yield('/runmacro "MateriaExtraction"')
end
I'm REALLY struggling to know how the hell I loop this macro. I did have:
yield("/recipe Grade 7 Tincture of Strength ")
yield('/click synthesis_material2_hq ')
These two commands linked where the "-----"s were. But if I have them there - it crashes as the recipe crafting log is already open.
So - I put it on another macro that calls the main crafting Macro (ie the one above). Which then leads me to my current issue.
How the hell do you loop this?! I want to loop this macro X amount of times. I've been trying to figure this out all day and i'm spent.
Hi all,
VERY new to writing lua, ie, i've literally only touched upon Lua today and I've made this so far.
-- /requirestats 3900 3600 580 if (HasStats(3900, 3600, 580)) then yield('/echo "You have the appropiate Stats"') else yield('/echo "you do not have the required stats to make this item"') yield('/runmacro "WellFed"') end
-- if you're below 10% durability, full repair if (NeedsRepair(5)) then yield('/echo "Initiating Repairs"') yield('/runmacro "Repair Gear"') else yield('/echo "Your durability is fine"') end
if CanExtractMateria(100) then yield('/runmacro "MateriaExtraction"') end
-- Crafts yield('/craft 10')
--Craft Macro "-----" "-----" yield('/click synthesize')
yield('/ac "Muscle Memory" ')
yield('/ac Manipulation ')
yield('/ac Veneration ')
yield('/ac "Waste Not" ')
yield('/ac "Final Appraisal" ')
yield('/ac "Groundwork" ')
yield('/ac "Groundwork" ')
yield('/ac "Groundwork" ')
yield('/ac "Innovation" ')
yield('/ac "Prudent Touch" ')
yield('/ac "Basic Touch" ')
yield('/ac "Standard Touch" ')
yield('/ac "Advanced Touch" ')
yield('/ac Manipulation ')
yield('/ac Innovation ')
yield('/ac "Basic Touch" ')
yield('/ac "Basic Touch" ')
yield('/ac "Standard Touch" ')
yield('/ac "Advanced Touch" ')
yield('/ac Innovation ')
yield('/ac "Great Strides" ')
yield('/ac "Byregot\'s Blessing" ')
yield('/ac "Basic Synthesis" ')
yield('/echo Craft finished ')
yield('/wait 1')
I'm REALLY struggling to know how the hell I loop this macro. I did have: yield("/recipe Grade 7 Tincture of Strength")
yield('/click synthesis_material2_hq ')
These two commands linked where the "-----"s were. But if I have them there - it crashes as the recipe crafting log is already open.
So - I put it on another macro that calls the main crafting Macro (ie the one above). Which then leads me to my current issue.
How the hell do you loop this?! I want to loop this macro X amount of times. I've been trying to figure this out all day and i'm spent.
Does anyone have any ideas?
Many thanks,
Zimmerson