ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Hoby on August 07, 2009, 03:32:36 AM
-
Im making a macro to bow every sixty seconds to keep me logged in, question, in the script how do i get it to loop,
Do i use a "begin" at the begining and a "goto begeining" at the end. Ive read some of the tutorials at easuo but can't seem to find any clear information, maybe cause its like 0500 am
-
This opens your paperdoll every 60 seconds:
repeat
event macro 8 1
wait 60s
until #false
-
whats the #false do? Think i have an idea.
-
The false makes it an infinite loop...
The structure goes repeat <this code > until (condition is True)
So putting false as the result of the condition means it repeats forever
I notice Cev used open backpack instead of bow.. which is better as bowing is a bit of a give away that your using a stay alive routine.
-
Just remember that "False is always False" unless it's true ;)
EN explained it... the repeat will do a function over and over until a condition is met in the until line. In this case there is no condition to be met, and because it begins as #FALSE it will always be false. Making an endless loop.
-
Cool, thats what i thought. Just wanted to make sure was on the right track.
-
Nice job on taking the time to learn some things too Hoby. :) It's WAY better when you learn to do it yourself for sure. Some serious doors start opening up for ya in game that you never dreamed about. I'm doing that now. The possibilities are endless when you take the time.
-
I can take something that kinda works and know enough to modify it to do what i want.