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
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
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
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
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.
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
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.