Yoko

All sides of Injection
It is currently 2025-12-04 01:25:18

All times are UTC+02:00




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: 2009-09-22 10:47:12 
Offline

Joined: 2009-09-18 12:18:13
Posts: 10
если я вижу в журнале определенную надпись, как мне сделать чтобы после увиденного он начал делать какоето действие!


Last edited by MadSpot on 2009-09-22 13:42:29, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2009-09-22 12:12:30 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
if uo.injournal('text') then
действие
endif

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2009-09-22 12:42:53 
Offline

Joined: 2009-09-18 12:18:13
Posts: 10
чтот у мя не выходит чтото не так делаю! поправьте!
надо чтобы после убийства он сам лутал труп на те предметы которые стоят!


Code:
var i
var Trup = 'lastcorpse'
var Text1="You see: Body"

sub main()
while 1==1
if uo.injournal(text1) then
rezat()
end if
wend
next
end sub

sub Rezat()
UO.UseObject(trup)
      if UO.GetQuantity(trup) then
   UO.SetArm('temp')
   UO.WaitTargetObject(trup)
   UO.UseType('0x0F51') ; Òèï Äàãåðà (Íþáè)
      wait(500)
   UO.Arm('temp')
      wait(1000)
      endif
      
lootall()
   uo.print('Zakonchili...')
wait(500)
info()
wait(100)
end sub


sub Lootall()
DIM Loot[5]
   Loot[0] = '0x0EED'
   Loot[1] = '0x1BFB'
   Loot[2] = '0x1BDD'
   Loot[3] = '0x1BDD'
   Loot[4] = '0x0F90'
   
   
For i = 0 to 4
   Uo.FindType(Loot[i], '-1', trup)
         wait(100)
      while UO.FindCount() > 0
         wait(100)
   UO.MoveItem('finditem')
         wait(1000)
   Uo.FindType(Loot[i], '-1', trup)
   wend
   next
   uo.print('Netu nix...')
end sub


Last edited by MadSpot on 2009-09-22 13:14:58, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2009-09-22 12:43:54 
Offline

Joined: 2009-09-18 12:18:13
Posts: 10
<code>непонял</code>


Top
   
 Post subject:
PostPosted: 2009-09-22 12:44:11 
Offline

Joined: 2009-09-18 12:18:13
Posts: 10
Как писать код!?


Top
   
 Post subject:
PostPosted: 2009-09-22 13:07:30 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
В настройках своего профиля фключи использование тегов.


Top
   
 Post subject:
PostPosted: 2009-09-22 13:34:04 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
это должно быть в scripting ore

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2009-09-22 13:41:09 
Offline

Joined: 2009-09-18 12:18:13
Posts: 10
Nmy wrote:
это должно быть в scripting ore

Спасибки тут наверно и отвечать быстрее будут :-)


Top
   
 Post subject:
PostPosted: 2009-09-25 13:24:55 
Offline

Joined: 2009-09-18 12:18:13
Posts: 10
Ну так что со скриптом никто не поможет уже третий день немогу понять как описать команду после убийства сразу лутать...

Code:
var Text1="You see: Body"

sub main()
while 1==1
if uo.injournal(text1) then
rezat()
end if
wend
next
end sub


неработает... незнаю почему.


Top
   
 Post subject:
PostPosted: 2009-09-25 16:54:23 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
1) Открой журнал ,showjournal 99 - там нету You see:
2) Задержку сделай wait(500) - скрипт будет тормозить комп

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2009-09-28 08:37:26 
Offline

Joined: 2009-09-18 12:18:13
Posts: 10
Nmy wrote:
1) Открой журнал ,showjournal 99 - там нету You see:
2) Задержку сделай wait(500) - скрипт будет тормозить комп



Так это у инжи свой журнал есть ? (простите просто незнал) недавно начал пользоваться! Спасибки!


Top
   
 Post subject:
PostPosted: 2009-09-28 11:14:07 
Offline

Joined: 2009-09-18 12:18:13
Posts: 10
Грамотные люди поправьте плиз,
надо написать так чтобы он ждал не выполнял никаких действыий, а как только начал появлятся текст соответственно проверял его и выполнял скрипт после удалял журнал или удалял сообщение из журнала и опять ждал!

чтобы избавится от задержек есть возможноюсть ?


Code:
var Text1 = "Body of" 

sub main()
while 1=1
if uo.injournal(text1) then
rezat()
Wait(100)
uo.deletejournal()
wait(5000)
else
up.print("vse...")
end if
wend
wait(10000)
end sub


Top
   
 Post subject:
PostPosted: 2009-09-28 16:18:44 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Ойёёй

Code:
var Text1 = "Body of" 

sub main()
while 1=1
if UO.InJournal(text1) then
rezat()
end if
wait(100)
wend
end sub

Sub rezat()
uo.deletejournal()
;и че там дальше у тебя
...
end sub

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


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

All times are UTC+02:00


Who is online

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