Yoko

All sides of Injection
It is currently 2024-04-16 06:10:08

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: проверка
PostPosted: 2012-04-19 18:04:03 
Offline

Joined: 2008-12-13 00:00:15
Posts: 174
Как определить работает определенный скрипт в данный момент или нет? Что-то типа:
Code:
if запущен main() then
uo.msg('a')
else
uo.msg('b')
end if

Как-то раз писал такое. Давненько не игрался, позабыл уже все-)


Top
   
 Post subject: Re: проверка
PostPosted: 2012-04-19 18:51:30 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Можно посмотреть в окно инжекта, вкладку Script. :roll: Или мы не ищем легких путей?

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject: Re: проверка
PostPosted: 2012-04-19 19:23:06 
Offline

Joined: 2008-12-13 00:00:15
Posts: 174
нее)) так не пойдет) надо чтобы функция за меня туда посмотрела -)


Top
   
 Post subject: Re: проверка
PostPosted: 2012-04-19 20:43:14 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
ну если только по запуску скрипта забивать глобалку, а по окончании снимать


Last edited by ZeroDX on 2012-04-20 15:57:36, edited 1 time in total.

Top
   
 Post subject: Re: проверка
PostPosted: 2012-04-19 22:25:48 
Offline

Joined: 2008-12-13 00:00:15
Posts: 174
я как-то делал без глобала, но так тоже покатит) Спасибо-) крашить, надеюсь, не будет, если у меня в нескольких пвп скриптах будут использоваться разные глобалки?

вот, если кому интересно :D :
Code:
if uo.getglobal('Pi')=='on' then
uo.setglobal('Pi','off')
wait(1000)
uo.say('a')
uo.setglobal('Pi','on')
else
uo.say('b')
end if


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 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