Tracking Macro (WaitForMenuAction Explaination)

Playguides written by Staff and Players.
Much more information on specific skills can be found in our T2A wiki.
Post Reply
User avatar
Fagabeefe
Posts: 650
Joined: Sun Feb 24, 2013 11:55 am

Tracking Macro (WaitForMenuAction Explaination)

Post by Fagabeefe »

I know the wiki walks you through this macro and it's pretty straight forward, but there is one thing missing that needs the actual razor text to be addressed.

!Loop
// Use Skill Tracking
Assistant.Macros.UseSkillAction|38
// WaitForGump
Assistant.Macros.WaitForMenuAction|0|11
// MenuSelection
Assistant.Macros.MenuResponseAction|1|8408|0
// WaitForGump
Assistant.Macros.WaitForMenuAction|0|11

// Close Menu
Assistant.Macros.MenuResponseAction|1|0|0
// Pause 11000 (11 seconds)
Assistant.Macros.PauseAction|00:00:11

When you record this macro the above line in red defaults to:
// WaitForGump
Assistant.Macros.WaitForMenuAction|0|30

This means razor is going to wait for the new tracking menu to pop up but if something goes wrong and the menu doesn't appear, then razor will wait this many (30) seconds before timing out and going to the end of the macro. In our case, we have selected to !Loop the macro, so it will go to the end and then restart.

This is important when the first menu pops up and asks you what you want to track, in this macro's case, it is animals. What if there are no animals around, then you see this message:
You see no evidence of animals in the area.

This is where your macro will have a problem unless you change the 30 second wait to an 11 second wait. When you don't find anything to track you don't get the second window that you're waiting for. You will then have a 30 second wait before the macro times out and restarts. This means you're waiting 30 seconds in between skill gains instead of 11.

In summary, whatever amount of time you're using as the PauseAction of the macro should be reflected in the WaitForMenuAction lines.

Code: Select all

!Loop
// Use Skill Tracking
Assistant.Macros.UseSkillAction|38
// WaitForGump
Assistant.Macros.WaitForMenuAction|0|11
// MenuSelection
Assistant.Macros.MenuResponseAction|1|8408|0
// WaitForGump
Assistant.Macros.WaitForMenuAction|0|11
// Close Menu
Assistant.Macros.MenuResponseAction|1|0|0
// Pause 11000 (11 seconds)
Assistant.Macros.PauseAction|00:00:11

Post Reply

Return to “Guides”