Yoko

All sides of Injection
It is currently 2024-03-28 16:40:21

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2008-08-21 02:59:00 
Offline

Joined: 2008-03-03 02:16:35
Posts: 45
Есть какая то команда, чтобы остановить скрипт при наступлении каких то условий? Типа как в пилоте stop_script


Top
   
 Post subject:
PostPosted: 2008-08-21 10:57:28 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
sub script_killer()
repeat
    wait(100)
until uo.dead()
uo.exec( "terminate myscript" )
endsub

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-08-21 12:33:24 
Offline

Joined: 2008-03-03 02:16:35
Posts: 45
Destruction wrote:
Code:
sub script_killer()
repeat
    wait(100)
until uo.dead()
uo.exec( "terminate myscript" )
endsub


Code:
sub meditation()
uo.wait(100)
if uo.mana > 100 then
    uo.exec( "terminate meditation" )
end if
until uo.dead()
endsub


Так будет работать? Где можно найти описание функции terminate?


Top
   
 Post subject:
PostPosted: 2008-08-21 12:38:20 
Offline

Joined: 2008-03-03 02:16:35
Posts: 45
Ну repeat там потерялся, почему то не могу отредактировать предыдущий пост.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 11 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