Yoko

All sides of Injection
It is currently 2025-10-15 09:49:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2010-04-08 09:34:15 
Offline

Joined: 2010-04-08 09:27:11
Posts: 4
sub Alarm()
while 1==1
wait(1000)
if uo.Dead() or uo.injournal('GM') or uo.injournal('here?') or uo.injournal('Seer') then
uo.deletejournal()
gong(300)
endif
wend
end sub

sub Gong(times)
VAR i
for i=1 to times
UO.playwav('D:\faust.wav')
wait(500)
next
end sub
-----------------
запускаю параллельно со скриптом на ламбер, почему то не работает
подскажите как подправить, чтобы его можно было запустить, и как добавить условие чтобы он при любом объекте которые увидит запускал wav файл


Top
   
PostPosted: 2010-04-08 09:59:41 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
Чувствую что нужно переделать скрипт на ламбер. Скрипт на ламбер удаляет журнал до того, как в нём заметил нужное сообщение этот скрипт.

Или второй вариант, попроще, - поставь паузу в этом скрипте не 1000 а 100.

Code:
sub Alarm()
while 1==1
wait(1000)


Top
   
PostPosted: 2010-04-08 11:13:17 
Offline

Joined: 2010-04-08 09:27:11
Posts: 4
Спасибо, а вот как добавить условие, чтобы при любом "You see" он алярмил,


Top
   
PostPosted: 2010-04-08 12:06:50 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
if .... or uo.injournal('You see') then


Top
   
PostPosted: 2010-04-08 13:59:46 
Offline

Joined: 2010-04-08 09:27:11
Posts: 4
Beyonder wrote:
if .... or uo.injournal('You see') then

не работает так ((


Top
   
PostPosted: 2010-04-13 18:02:57 
Offline
User avatar

Joined: 2009-03-06 21:52:25
Posts: 89
Вписываеш свои типы если надо! 8)

Code:
sub poisk()
var i
uo.ignore('0x017DDBC6') ;Айди себя или поставь ('self')
DIM H[2]
H[1]='0x0190' ;тип мужчины
H[2]='0x0191' ;тип женщины
UO.set('finddistance','20') ;Радиус на скоко искать!
while 1>0
for i=1 to 2
  UO.FindType(H[i],-1,'ground')
  If UO.FindCount() > 0 Then
Gong(1);проигрывает сигнал
  Wait( 300 )
else
     Wait( 300 )
     end if
next
wend
end sub

Sub Gong(times)
   VAR i
   for i=1 to times
      UO.Exec("playwav E:\WINDOWS\Media\WindowsXP"); тут ВНИМАТЕЛЬНО укажи путь к файлу БЕЗ расширения
      wait(1200)
   next
end sub


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 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Limited