Yoko

All sides of Injection
It is currently 2024-03-28 14:31:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2016-01-05 00:36:03 
Offline

Joined: 2015-11-26 10:16:44
Posts: 61
Такой вопрос почему не срабатывает проверка на труп токо если перезагрузить игру то она сробатывает?
Code:
sub ress()
   if not uo.getglobal('flagRes')=='0' then
      uo.exec('exec Resurrector')
      uo.setglobal('flagRes','0')
   endif
end sub


Top
   
PostPosted: 2016-01-05 09:12:28 
Offline
User avatar

Joined: 2012-12-15 12:03:25
Posts: 119
Location: C-Петербург
Code:
sub ress()
uo.print('flagRes='+uo.getglobal('flagRes'))

   if uo.getglobal('flagRes')<>'0' then
      uo.exec('exec Resurrector')
      uo.setglobal('flagRes','0')

uo.print('flagRes='+uo.getglobal('flagRes'))

   endif
end sub


а ress() где вызывается?

и вставь строчку
uo.print('start Resurrector')
в начало Resurrector(), чтобы посмотреть, запускается он или нет


Top
   
PostPosted: 2016-01-05 12:07:47 
Offline

Joined: 2015-11-26 10:16:44
Posts: 61
ress() вызываица прогой изиуо

Code:
sub ghost
if #charghost = YES || %0 = 1
{
msg $_exec ress$
wait 30s
gosub back
;halt
gosub ljing
}
return

вот мне надо как он труп чтобы сработал Resurrector()


Top
   
PostPosted: 2016-01-05 12:32:41 
Offline
User avatar

Joined: 2012-12-15 12:03:25
Posts: 119
Location: C-Петербург
Code:
sub ress()
   if not uo.getglobal('flagRes')=='0' then
      uo.exec('exec Resurrector')
      uo.setglobal('flagRes','0')
   endif
end sub


а где у тебя 'flagRes' становится не равным 0?

в общем тут фигня из 2-х скриптов.

вот так попробуй
Code:
sub ress()
      uo.exec('exec Resurrector')
end sub


if #charghost = YES
это проверка на госта в изиуо?


Top
   
PostPosted: 2016-01-05 12:54:35 
Offline

Joined: 2015-11-26 10:16:44
Posts: 61
Quote:
if #charghost = YES
это проверка на госта в изиуо?

да


Top
   
PostPosted: 2016-01-05 13:12:38 
Offline
User avatar

Joined: 2012-12-15 12:03:25
Posts: 119
Location: C-Петербург
ты flagress ставишь в 0 и после этого второй раз не срабатывает.
надо где-то его устанавливать в 1 или убрать вообще.


Top
   
PostPosted: 2016-01-05 14:01:42 
Offline

Joined: 2015-11-26 10:16:44
Posts: 61
sub ress()
uo.exec('exec Resurrector')
end sub

я зделал вот так

Спс тебе добрый человек


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

All times are UTC+02:00


Who is online

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