Yoko
http://forum.yoko.com.ua/

How do i make my script keep on repeating?
http://forum.yoko.com.ua/viewtopic.php?f=20&t=1099
Page 1 of 1

Author:  jjdad [ 2004-08-08 04:30:14 ]
Post subject:  How do i make my script keep on repeating?

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

Author:  Lin(CZ) [ 2004-08-08 09:51:36 ]
Post subject:  Re: How do i make my script keep on repeating?

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

Author:  evil_Gremlin [ 2004-08-09 00:33:39 ]
Post subject: 

the simpliest way to make infinite loops is
while NOT UO.Dead()
[code]
wend

or simply

while true
[code]
wend

Author:  Thdin [ 2004-08-09 18:16:49 ]
Post subject: 

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

Author:  AGRS [ 2004-08-09 21:39:49 ]
Post subject: 

I'm using construction like
Code:
While True
  ;some code
Wend


:)

PS UO Loop FOREVER! :lol

Author:  jjdad [ 2004-08-14 18:22:41 ]
Post subject:  thanks

thanks heaps

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/