How do i make my script keep on repeating?

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
jjdad
Posts: 6
Joined: 2004-08-07 09:19:57

How do i make my script keep on repeating?

Post 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
Lin(CZ)
Posts: 4
Joined: 2004-07-20 10:27:42

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

Post 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
evil_Gremlin
Posts: 54
Joined: 2004-05-11 12:27:22
Contact:

Post by evil_Gremlin »

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

or simply

while true
[code]
wend
Каждый манчкин в старости мечтает иметь кресло-качалку ;)
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Post 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
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post by AGRS »

I'm using construction like

Code: Select all

While True
  ;some code
Wend


:)

PS UO Loop FOREVER! :lol
jjdad
Posts: 6
Joined: 2004-08-07 09:19:57

thanks

Post by jjdad »

thanks heaps
Post Reply