RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Can a "For Loop" be stopped by an If SysMsg prematurely and then "goto" a later line?

Frederieke

Wanderer
Hello. I want to make a runebook/sacred journey mining macro. Is it possible to make a "For Loop" stop prematurely and then "goto" the next command line? For example:

Code:
Assistant.Macros.DoubleClickAction|1162321983|8901
Assistant.Macros.WaitForGumpAction|1431013363|False|300
Assistant.Macros.GumpResponseAction|7|0|0
Assistant.Macros.PauseAction|00:00:02
Assistant.Macros.ForAction|25
Assistant.Macros.DoubleClickTypeAction|3897|True
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.TargetRelLocAction|-1|0
Assistant.Macros.PauseAction|00:00:01.2000000
Assistant.Macros.EndForAction
Assistant.Macros.HotKeyAction|0|Organizer Agent-3
Assistant.Macros.PauseAction|00:00:03

This is one mining vein. There are 15 more like this in my macro.

I want to use the following command to stop the "For Loop" and go to the next line:

Code:
Assistant.Macros.IfAction|4|0|no more metal
Assistant.Macros.EndIfAction

I know I could make it easier if I would let the macro For Loop just 15x or less. But I know there is the If SysMsg command, I only don't know how to use it the right way.

Is there a "GoTo" command, besides?
 

LightShade

Sorceror
You can always break up your macro into many smaller macros and have those macros call the 'next' macro. This allows you to call all sorts of macros for all sorts of situations.
 
Top