Running a Potion Keg-Making Macro, Need help debugging.

Playguides written by Staff and Players.
Much more information on specific skills can be found in our T2A wiki.
Post Reply
Krakklin
UOSA Subscriber!
UOSA Subscriber!
Posts: 28
Joined: Fri Jan 18, 2013 9:37 am

Running a Potion Keg-Making Macro, Need help debugging.

Post by Krakklin »

Not really sure how to approach this in terms of reporting to you all; but for what its worth, here goes!

I recently made a macro that

1. Restocks boards and ingots from a stocking chest
2. Makes 3 Barrel Staves
3. Makes 2 Lids
4. Makes 1 Spigot
5. Makes 1 Barrel Hoops
6. Uses Carpentry to make a keg
7. Restocks 10 Bottles from Stocking Chest
8. Uses tinkering on the keg to create potion keg

My issue comes at step 4. It seems the macro wants to use the ingots from the stocking chest instead of my inventory (i have the macro set to use tinker tools, then target ingots by type). Obviously those ingots are not available to use and the macro gets stuck. It does not get stuck on the 5th step however (which uses the exact same command [use tinker tools by type, use target ingots by type]) Any ideas why? or how to fix it?

// 1. Restock Ingots and Boards
Assistant.Macros.HotKeyAction|0|Restock Agent-2
Assistant.Macros.AbsoluteTargetAction|0|0|1080038581|1683|675|25|3651
Assistant.Macros.PauseAction|00:00:02
// 2. Barrel Staves
Assistant.Macros.ForAction|3
Assistant.Macros.DoubleClickTypeAction|4146|True
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|1|7127|0
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|2|7857|0
Assistant.Macros.PauseAction|00:00:10
Assistant.Macros.EndForAction
// 3. 2 Lids
Assistant.Macros.ForAction|2
Assistant.Macros.DoubleClickTypeAction|4146|True
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|1|7127|0
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|3|7608|0
Assistant.Macros.PauseAction|00:00:10
Assistant.Macros.EndForAction
// 4. Spigot
Assistant.Macros.DoubleClickTypeAction|7868|True
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.TargetTypeAction|False|7154
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|2|4179|0
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|3|4100|0
Assistant.Macros.PauseAction|00:00:10
// 5. Hoops
Assistant.Macros.DoubleClickTypeAction|7868|True
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.TargetTypeAction|False|7154
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|2|4179|0
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|6|4321|0
Assistant.Macros.PauseAction|00:00:10
// 6. Make Keg
Assistant.Macros.DoubleClickTypeAction|4146|True
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|3|3651|0
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|9|3711|0
Assistant.Macros.PauseAction|00:00:10
// 7. Restock Empty Bottles
Assistant.Macros.HotKeyAction|0|Restock Agent-5
Assistant.Macros.AbsoluteTargetAction|0|0|1080038581|1683|675|25|3651
Assistant.Macros.PauseAction|00:00:02
// 8. Make Potion Keg
Assistant.Macros.DoubleClickTypeAction|7868|True
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.TargetTypeAction|False|3711
Assistant.Macros.WaitForMenuAction|0|300
Assistant.Macros.MenuResponseAction|1|6464|0
Assistant.Macros.PauseAction|00:00:01

Thanks
-Llama Herder

UsualSuspect
Posts: 415
Joined: Sat Feb 18, 2012 10:24 pm

Re: Running a Potion Keg-Making Macro, Need help debugging.

Post by UsualSuspect »

just have the restock pull more than you need and target the ones in your inventory rather than by type.

UsualSuspect
Posts: 415
Joined: Sat Feb 18, 2012 10:24 pm

Re: Running a Potion Keg-Making Macro, Need help debugging.

Post by UsualSuspect »

Did that work? you're welcome.

Krakklin
UOSA Subscriber!
UOSA Subscriber!
Posts: 28
Joined: Fri Jan 18, 2013 9:37 am

Re: Running a Potion Keg-Making Macro, Need help debugging.

Post by Krakklin »

Yes that worked beautifully. Ran into another snag with the kegs doing the same thing, but it was because there were some kegs in reach in a chest nearby. Once I moved them all to my inventory no problem!

thanks a bunch.

-Llama Herder

randale
Posts: 852
Joined: Sun Jul 13, 2008 2:42 pm

Re: Running a Potion Keg-Making Macro, Need help debugging.

Post by randale »

I'm trying to do a keg macro while I've already made each part and restock each from it's own chest, it's not working. But, since I already made each part, I don't want to start over making them and using them to make them as I go. Check out this thread, with the last 2 posts, to see the problems I'm having.

viewtopic.php?f=11&t=66126

SighelmofWyrmgard
Posts: 881
Joined: Thu May 20, 2010 5:34 pm

Re: Running a Potion Keg-Making Macro, Need help debugging.

Post by SighelmofWyrmgard »

Here's a hint that might help: when you use a set of tinker tools on itself, it will make again the last item that that set of tools made.

In my own keg-making macro, I use multiple tinker tools targeted on themselves (they need to be 'primed' before running the macro), so I do not need to use "target by type" in order to turn the keg into a potion-keg ...

SS
SighelmofWyrmgard wrote:
uosa44 wrote:For sale, by original owner:
1 Human Brain, never been used, only slightly damaged, still in original packaging.
$1, obo
FTFY.

SS
uosa44 wrote:The inability for this person to respond in such a crazy manner proves my point.

User avatar
Swunk
Posts: 79
Joined: Tue Aug 04, 2015 11:28 pm

Re: Running a Potion Keg-Making Macro, Need help debugging.

Post by Swunk »

yours is just missing control imo. hmm.. i'd split mine up into parts.. gonna work on this today

somethin like

if materials exist
make a part
if system message 'create' (if appropriate)
play next macro
else
play this macro

if you insist on doing it all in one macro though, maybe a bunch of ifs would do

if 'tinkering part' <=0
make part
endif
if 'next part' <=0
make part
endif....then just make it kinda spammy.. many ways to go about doing this keg-making business I am sure

randale
Posts: 852
Joined: Sun Jul 13, 2008 2:42 pm

Re: Running a Potion Keg-Making Macro, Need help debugging.

Post by randale »

SighelmofWyrmgard wrote:Here's a hint that might help: when you use a set of tinker tools on itself, it will make again the last item that that set of tools made.

In my own keg-making macro, I use multiple tinker tools targeted on themselves (they need to be 'primed' before running the macro), so I do not need to use "target by type" in order to turn the keg into a potion-keg ...

SS
Thanks didn't knot that. Anyway, I went ahead and made over 250 potion kegs manually, before I read this (already had the parts made) it's done now.

Post Reply

Return to “Guides”