Semi-automated Lumberjacking macro. Suggestions?

Playguides written by Staff and Players.
Much more information on specific skills can be found in our T2A wiki.
Post Reply
Gregor De Gar
Posts: 56
Joined: Sat Dec 24, 2011 4:39 pm

Semi-automated Lumberjacking macro. Suggestions?

Post by Gregor De Gar »

Hey guys I just created my first serious semi-auto gathering macro for Lumberjacking. Looking for any suggestions to make it more efficient. Before the macro will work, you have to create a counter for Logs and enable it. You also have to have some double axes and jointing planes in your backpack. You also have to create a Dress agent preset called Lumberjack and set it to include the double axe.

I could probably create two new counters for axes and jointing planes and set the macro to say something when you run out of either of those, but I figured it's easy enough to see if you don't have an axe in your hand or a jointing plane in your pack.

Once the macro is set up, it will ask you to target a tree. It will chop that tree until it's empty and then notify you to find another tree. Rinse and repeat until something goes wrong (out of sight, overweight, out of range), at which point the macro notifies you.

Code: Select all

!Loop
// Logs
Assistant.Macros.IfAction|50|1|1|Logs
Assistant.Macros.DoubleClickTypeAction|4144|True
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|1|7127|0
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|1|7127|0
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
// Overburdened
Assistant.Macros.IfAction|5|1|300
Assistant.Macros.SpeechAction|8|38|3|ENU|0|Overweight
Assistant.Macros.PauseAction|00:00:10
Assistant.Macros.ElseAction
// Broken Tool
Assistant.Macros.IfAction|4|0|you broke
Assistant.Macros.DressAction|Lumberjack
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
// Too Far
Assistant.Macros.IfAction|4|0|that is too far away
Assistant.Macros.SpeechAction|8|52|3|ENU|0|Too far away.
Assistant.Macros.SetLastTargetAction
Assistant.Macros.EndIfAction
// No Sight
Assistant.Macros.IfAction|4|0|target cannot be seen
Assistant.Macros.SpeechAction|8|52|3|ENU|0|Out of sight.
Assistant.Macros.SetLastTargetAction
Assistant.Macros.EndIfAction
// Tree Empty
Assistant.Macros.IfAction|4|0|there's not enough wood here to harvest
Assistant.Macros.SpeechAction|8|52|3|ENU|0|Tree empty.
Assistant.Macros.SetLastTargetAction
Assistant.Macros.EndIfAction
// Main Loop
Assistant.Macros.HotKeyAction|1305|
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.LastTargetAction
Assistant.Macros.PauseAction|00:00:01
// End Not Overweight
Assistant.Macros.EndIfAction

Light Shade
UOSA Subscriber!
UOSA Subscriber!
Posts: 2567
Joined: Sat Oct 23, 2010 12:42 pm
Location: Trammel

Re: Semi-automated Lumberjacking macro. Suggestions?

Post by Light Shade »

Here's a basic one that will walk north along the West side of the trees until you've got too many boards, then it will recall to the bank and organize them for you.

It keeps you mostly hidden while you lumberjack.

Code: Select all

!Loop
Assistant.Macros.IfAction|8|-1|0
Assistant.Macros.DressAction|Axe
Assistant.Macros.EndIfAction
Assistant.Macros.HotKeyAction|1305|
Assistant.Macros.WaitForTargetAction|5
Assistant.Macros.TargetRelLocAction|1|0
Assistant.Macros.PauseAction|00:00:01.1000000
Assistant.Macros.UseSkillAction|21
Assistant.Macros.IfAction|4|0|harvest
Assistant.Macros.WalkAction|0
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|can't use an axe
Assistant.Macros.WalkAction|0
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|5|1|350
Assistant.Macros.DoubleClickTypeAction|4148|True
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|1|7127|0
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|1|7127|0
Assistant.Macros.PauseAction|00:00:08
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|5|1|370
Assistant.Macros.HotKeyAction|1021|
Assistant.Macros.MacroCastSpellAction|32
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.AbsoluteTargetAction|0|0|1076411058|141|66|0|7956
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.SpeechAction|0|52|3|ENU|2|16|2|Bank
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.UseSkillAction|21
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.HotKeyAction|0|Organizer Agent-3
Assistant.Macros.PauseAction|00:00:05
Assistant.Macros.HotKeyAction|0|Play: Core\Hiding
Assistant.Macros.EndIfAction
You can add a lot to this, but that's the basic Macro.
Image
[20:08] <@Kaivan> We have a ridable Maahes in Green Acres.
[10:00] <TheBreadman> leeds did a takeover on secondage
[10:00] <@Derrick> hax


Tom: Get bad bro

Post Reply

Return to “Guides”