Yoko

All sides of Injection
It is currently 2025-12-26 13:26:32

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2008-10-02 06:58:05 
Offline

Joined: 2008-09-19 15:51:47
Posts: 5
по идее чар берет из сумки по одной одной стреле, и пойзонит ее из кега; вобщем проблема заключается в следующем: чар юзает таргет на кег(появляется надпись - select an item), после чего должен посылать таргет на стрелку, но этого почему-то не происходит..
вот отрывок из скрипта, кто знает в чем дело помогите пожалуйста, заранее спасибо!
Code:
pp: 
wait(1000)
uo.waittargettype('poison')
uo.useskill('Poisoning')
wait(3000)
uo.findtype('arrow','-1')
wait(3000)
uo.waittargettype('1','finditem')
wait(11000)
goto cond1


Top
   
PostPosted: 2008-10-02 07:10:29 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Code:
uo.waittargetobject('finditem')


Top
   
 Post subject:
PostPosted: 2008-10-02 08:06:42 
Offline

Joined: 2008-09-19 15:51:47
Posts: 5
попробовал.. та же история, вобще ничего не изменилось = (


Top
   
 Post subject:
PostPosted: 2008-10-02 08:13:56 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
ketamin wrote:
попробовал.. та же история, вобще ничего не изменилось = (

Весь скрипт выложи. И подробно опиши алгоритм действий которые должен делать чар.


Top
   
 Post subject:
PostPosted: 2008-10-02 13:31:55 
Offline

Joined: 2008-09-19 15:51:47
Posts: 5
Code:
sub main()
uo.say(',exec bandcure')
uo.addtype('arrow')
while uo.targeting()
wait(100)
wend
uo.addtype('poison')
while uo.targeting()
wait(100)
wend 
uo.addobject('sum')
while uo.targeting()
wait(100)
wend

g:
uo.findtype('arrow','-1','sum')
uo.grab('1','finditem')
wait(2000)
goto pp

pp:
wait(1000)
uo.waittargettype('poison')
uo.useskill('Poisoning')
wait(3000)
uo.findtype('arrow','-1')
wait(3000)
uo.waittargetobject('finditem')
wait(8000)
goto g
end sub

sub bandcure()
repeat
if uo.poisoned('self') and uo.count('bandage')>0 then
uo.bandageself()
UO.Print('bandageself')
wait(7000)
end if
until uo.life<0
end sub

чар берет из сумки, лежащей на полу, из кучки стрел одну штуку и кидает ее к себе в пак, затем юзает скил пойзонинг - таргет на кег с ядом и потом на стрелу. При необходимости хилится.
На завершающем этапе не срабатывает клик таргетом на стрелу.


Top
   
 Post subject:
PostPosted: 2008-10-02 17:58:17 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Ну может как то так попробовать? Только мне интерестно, а куда деваются отравленные стрелы?
Code:
sub main()
   uo.say(',exec bandcure')

   uo.addtype('arrow')
   while uo.targeting()
      wait(100)
   wend
   uo.addtype('poison')
   while uo.targeting()
      wait(100)
   wend
   uo.addobject('sum')
   while uo.targeting()
      wait(100)
   wend
   
   uo.findtype('arrow','-1','sum')
   If UO.FindCount() > 0 then
   repeat
      uo.grab('1','finditem')
      wait(1000)
      uo.findtype('arrow', '-1', 'backpack')
      If UO.FindCount() > 0 then
         uo.waittargetobject('poison', 'finditem')
         uo.useskill('Poisoning')
         wait(2000)
      else
         UO.Print('Нету стрел!')
      end if
      uo.findtype('arrow', '-1', 'sum')
   until NOT UO.FindCount()
   UO.Print('Нету Стрел!!!')
end sub

Sub bandcure()
   repeat
      if uo.poisoned('self') and uo.count('bandage')>0 then
         uo.bandageself()
         UO.Print('bandageself')
         wait(7000)
      end if
   until uo.life<0
end sub


Top
   
 Post subject:
PostPosted: 2008-10-03 05:24:19 
Offline

Joined: 2008-09-19 15:51:47
Posts: 5
спасибо за помощь, разобрался, проблема была не в скрипте а в специфике прокачки скила на моем чудошарде)


Top
   
 Post subject:
PostPosted: 2009-01-29 16:41:29 
Offline

Joined: 2009-01-29 01:24:56
Posts: 14
а что нужно заменить, что бы вместо стрел он например брал из сумки кусок хлеба?


Top
   
 Post subject:
PostPosted: 2009-01-29 18:37:38 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Ничего. Просто указать прицел не на стрелу а на хлеб. Ну и что что он будет называться стрелами, брать то будет хлеб. :lol:


Top
   
 Post subject:
PostPosted: 2009-01-29 22:19:04 
Offline

Joined: 2009-01-29 01:24:56
Posts: 14
ясн) спс


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB® Forum Software © phpBB Limited