Yoko
http://forum.yoko.com.ua/

Bandage script fails
http://forum.yoko.com.ua/viewtopic.php?f=3&t=7455
Page 1 of 1

Author:  JaYz [ 2006-04-22 09:38:34 ]
Post subject:  Bandage script fails

Hello, Anyone know why i doesnt print in the screen when i fail healing with a bandage?

Always prints succeeded, looks like it isnt loading from the journal.

Thanks.

Code:
sub bandage()
uo.deletejournal ()
uo.exec("bandageself")
if UO.InJournal("failed to heal") then
UO.print ("You failed")
uo.exec("bandageself")
else
UO.print ("succeeded")
endif
repeat
until false
end sub

Author:  Scripts Writer [ 2006-04-22 09:51:59 ]
Post subject: 

Code:
sub bandage() 
uo.deletejournal ()
uo.exec("bandageself")
if UO.InJournal("failed to heal") then
UO.print ("You failed")
uo.exec("bandageself")
else
UO.print ("succeeded")
endif
repeat
until false
end sub


there are no pause before healing and printing. Maybe

Code:
sub bandage() 
  uo.deletejournal()
  uo.exec("bandageself")
  wait(3000)
  if uo.InJournal('You put') then
    uo.Print('Succesful')
    wait(100)
  end if
  if uo.InJournal('You fail')
     uo.Print(' You fail ')
     uo.exec("bandageself")
     wait(3000)
  end if
end sub

Author:  JaYz [ 2006-04-22 10:01:42 ]
Post subject: 

Error in line 9.

Author:  dmitrykit [ 2006-04-22 10:02:46 ]
Post subject: 

JaYz wrote:
Error in line 9.

i che s togo? tebe che, dolzhny vydavat' to 4to srazu zoloto domoj nosit' budet? pravj sam, kak tbe nado, i 4tob rabotalo kak ty hocehsh

Author:  JaYz [ 2006-04-22 10:07:13 ]
Post subject: 

dmitrykit wrote:
JaYz wrote:
Error in line 9.

i che s togo? tebe che, dolzhny vydavat' to 4to srazu zoloto domoj nosit' budet? pravj sam, kak tbe nado, i 4tob rabotalo kak ty hocehsh


???

Author:  flake [ 2006-04-22 10:20:34 ]
Post subject: 

Code:
sub bandage() 
  uo.deletejournal()
  uo.exec("bandageself")
  wait(3000)
  if uo.InJournal('You put') then
    uo.Print('Succesful')
    wait(100)
  end if
  if uo.InJournal('You fail') Then
     uo.Print(' You fail ')
     uo.exec("bandageself")       
  end if
end sub


P.S.
dmitrykit, он русского не понимает.

Author:  JaYz [ 2006-04-22 10:54:05 ]
Post subject: 

flake wrote:
Code:
sub bandage() 
  uo.deletejournal()
  uo.exec("bandageself")
  wait(3000)
  if uo.InJournal('You put') then
    uo.Print('Succesful')
    wait(100)
  end if
  if uo.InJournal('You fail') Then
     uo.Print(' You fail ')
     uo.exec("bandageself")       
  end if
end sub


P.S.
dmitrykit, он русского не понимает.



Thanks but i need a loop because it must repeat everytime.

Author:  flake [ 2006-04-22 11:56:11 ]
Post subject: 

Code:
sub bandage() 
  repeat
    uo.deletejournal()
    uo.exec("bandageself")
      repeat
        wait(50)
      until uo.InJournal('You put') OR uo.InJournal('You fail')
  until uo.dead()
endsub

Author:  JaYz [ 2006-04-22 13:17:45 ]
Post subject: 

flake wrote:
Code:
sub bandage() 
  repeat
    uo.deletejournal()
    uo.exec("bandageself")
      repeat
        wait(50)
      until uo.InJournal('You put') OR uo.InJournal('You fail')
  until uo.dead()
endsub


That isnt what i want. I play in a shard with bandage. When i use bandages on my own char i need 15 seconds to end healing process and when i use them on another char 6 seconds. But when i fail healing myself i dont want wait 15 seconds again i want macro try again.

Author:  flake [ 2006-04-22 13:35:40 ]
Post subject: 

That's what the macro will do. Once you finish healing or fail, it starts healing again.

Author:  JaYz [ 2006-04-22 15:47:42 ]
Post subject: 

flake wrote:
That's what the macro will do. Once you finish healing or fail, it starts healing again.


Yeah but where i made the time control?

Author:  flake [ 2006-04-22 16:03:44 ]
Post subject: 

Have you tried this macro? Try it, and you will see that it is what you wrote you need.

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/