Yoko

All sides of Injection
It is currently 2025-11-17 17:27:37

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2008-04-18 11:56:54 
Offline
User avatar

Joined: 2008-03-24 18:18:53
Posts: 50
как забиндить на кнопку выключатель скрипта ) ?


Top
   
 Post subject:
PostPosted: 2008-04-18 12:01:42 
Offline

Joined: 2006-03-10 00:19:11
Posts: 265
Location: http://drw.ru/
Code:
sub Switch()
        if UO.GetGlobal('state')=='on' then
                UO.Exec('terminate Script')
        else
                UO.Exec('exec Script')
                UO.SetGlobal('state','off')
        endif
endsub

sub Script()
        UO.SetGlobal('state','on')
        .....
endsub

_________________
DRW - Glorior Belli
Image


Top
   
 Post subject:
PostPosted: 2008-04-21 05:55:43 
Offline
User avatar

Joined: 2008-03-24 18:18:53
Posts: 50
неа не выключается


Top
   
 Post subject:
PostPosted: 2008-04-21 05:57:54 
Offline
User avatar

Joined: 2008-03-24 18:18:53
Posts: 50
у меня есть скрипт на мининг так вот когда он заканчивает копать на одном месте чтобы перейти на другое нме надо выключить скрипт и заного выключить, иногда бывают лаги и иногда лень переключать но без этого никак , так вот когда скрипт все координаты вокруг себя отбкопал ( копает только цвет мет) то потом пишит что надо перейти на другое место но скрипт серавно всключён т.е его надо выключить , перейти на другое место и потом заного включить


Top
   
 Post subject:
PostPosted: 2008-04-21 05:59:26 
Offline
User avatar

Joined: 2008-03-24 18:18:53
Posts: 50
как зделать так чтобы я мог выключать скрипт на кнопку , какие строки надо вписать в скрипт илиже всётаки есть команда которую можно забиндить на кнопку _ выше написанное точей не работает


Top
   
 Post subject:
PostPosted: 2008-04-21 20:44:00 
Offline
Expert!
User avatar

Joined: 2004-10-15 22:38:04
Posts: 1396
Location: Moscow City.
Code:
uo.exec("terminate НАЗВАНИЕ_СКРИПТА") 

_________________
The End.


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: Bing [Bot] and 9 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