Page 1 of 1

How do i make my script keep on repeating?

Posted: 2004-08-08 04:30:14
by jjdad
hi, im making my first script, and i wanna know how do i keep make it repeating or looping or, wateva u wanna call it, if someone could tell me it would be much appreciated. Thanks

Jjdad

Re: How do i make my script keep on repeating?

Posted: 2004-08-08 09:51:36
by Lin(CZ)
jjdad wrote:hi, im making my first script, and i wanna know how do i keep make it repeating or looping or, wateva u wanna call it, if someone could tell me it would be much appreciated. Thanks

Jjdad


You can use this >

start:
[script]
goto start

repeat
[script]
until "demand"

var x
while x > 1
[script]
wend

var i
for i=1 to 4
[script]
next

Posted: 2004-08-09 00:33:39
by evil_Gremlin
the simpliest way to make infinite loops is
while NOT UO.Dead()
[code]
wend

or simply

while true
[code]
wend

Posted: 2004-08-09 18:16:49
by Thdin
Be careful when making a loop like:

Repeat

Until 1==2

Or something to that effect. If there are no timers (Waits) of any kind, you will find yourself in quite a predicament :P The script will loop forever at the speed of light and then simply crash your client.

Trust me. I know.

:P

Posted: 2004-08-09 21:39:49
by AGRS
I'm using construction like

Code: Select all

While True
  ;some code
Wend


:)

PS UO Loop FOREVER! :lol

thanks

Posted: 2004-08-14 18:22:41
by jjdad
thanks heaps