Moderator: MacroQuest Developers
Code: Select all
/declare i int local
/for i 1 to ${SomeInteger}
/if (${Variable${i}}==SomeValue) /dosomestuff
/next i
/returnCode: Select all
Sub Main
/declare i int local
/for i 1 to 10
/if (${Variable${i}}==10){
/keypress ALT+9
/delay 7s
/autoinventory
}
/next i
/return

That was just an example of how to do some kind of test. You don't need it, remove that line and the curly brackets. And change that /keypress crap to /cast or better yet, use spell_routines.inc to make it catch fizzles and stuff.DrmChld wrote:Thanks..
Can you elaborate on this line? :)
/if (${Variable${i}}==SomeValue)
Code: Select all
Sub Main
/declare i int local
/for i 1 to 10
/keypress ALT+9
/delay 7s
/autoinventory
/next i
/return