ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Hoby on August 07, 2009, 03:32:36 AM

Title: question about simple event macro
Post 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
Title: Re: question about simple event macro
Post by: Cerveza on August 07, 2009, 04:17:01 AM
This opens your paperdoll every 60 seconds:

repeat
event macro 8 1
wait 60s
until #false
Title: Re: question about simple event macro
Post by: Hoby on August 07, 2009, 04:25:15 AM
whats the #false do? Think i have an idea.
Title: Re: question about simple event macro
Post by: Endless Night on August 07, 2009, 04:40:51 AM
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.
Title: Re: question about simple event macro
Post by: Cerveza on August 07, 2009, 04:44:41 AM
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.
Title: Re: question about simple event macro
Post by: Hoby on August 07, 2009, 04:45:58 AM
Cool, thats what i thought.  Just wanted to make sure was on the right track.
Title: Re: question about simple event macro
Post by: Scrripty on August 07, 2009, 06:00:52 AM
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.
Title: Re: question about simple event macro
Post by: Hoby on August 07, 2009, 06:25:10 AM
I can take something that kinda works and know enough to modify it to do what i want.