I'm slowly learning my way around Lua (Very. Slowly.) but there are some things not obvious to me when figuring out how to do some things I used to do in zmud.
I used to have lists of my directions, set via alias, from point A to point B - and each time I'd hit my macro to send the current direction, it'd 'pop' the first direction off the list - like so:
Directions = n,e,n,n,e,n,w,w,s,sw,in
*hit macro*
Directions = e,n,n,e,n,w,w,s,sw,in
So I could use an alias to change the value of my 'Directions' variable, and hitting the macro would execute the first direction and pop it from the list, so that the next hit of the macro does the second direction, until it runs out of directions. I preferred this method over scripting an auto walk path because it allowed me to deal with aggressive mobs or stop and talk to a friend without needing to pause anything. So, my (first) question is, how do I use lua to 'pop' that first direction off my variable?
I used to have lists of my directions, set via alias, from point A to point B - and each time I'd hit my macro to send the current direction, it'd 'pop' the first direction off the list - like so:
Directions = n,e,n,n,e,n,w,w,s,sw,in
*hit macro*
Directions = e,n,n,e,n,w,w,s,sw,in
So I could use an alias to change the value of my 'Directions' variable, and hitting the macro would execute the first direction and pop it from the list, so that the next hit of the macro does the second direction, until it runs out of directions. I preferred this method over scripting an auto walk path because it allowed me to deal with aggressive mobs or stop and talk to a friend without needing to pause anything. So, my (first) question is, how do I use lua to 'pop' that first direction off my variable?