Yoko

All sides of Injection
It is currently 2026-01-16 21:36:13

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2004-08-08 04:30:14 
Offline

Joined: 2004-08-07 09:19:57
Posts: 6
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


Top
   
PostPosted: 2004-08-08 09:51:36 
Offline

Joined: 2004-07-20 10:27:42
Posts: 4
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


Top
   
 Post subject:
PostPosted: 2004-08-09 00:33:39 
Offline
User avatar

Joined: 2004-05-11 12:27:22
Posts: 54
the simpliest way to make infinite loops is
while NOT UO.Dead()
[code]
wend

or simply

while true
[code]
wend

_________________
Каждый манчкин в старости мечтает иметь кресло-качалку ;)


Top
   
 Post subject:
PostPosted: 2004-08-09 18:16:49 
Offline

Joined: 2004-07-22 07:37:37
Posts: 51
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


Top
   
 Post subject:
PostPosted: 2004-08-09 21:39:49 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
I'm using construction like
Code:
While True
  ;some code
Wend


:)

PS UO Loop FOREVER! :lol


Top
   
 Post subject: thanks
PostPosted: 2004-08-14 18:22:41 
Offline

Joined: 2004-08-07 09:19:57
Posts: 6
thanks heaps


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited