Yoko

All sides of Injection
It is currently 2025-11-11 14:38:02

All times are UTC+02:00




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Bandage script fails
PostPosted: 2006-04-22 09:38:34 
Offline

Joined: 2006-02-18 10:51:15
Posts: 6
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


Top
   
 Post subject:
PostPosted: 2006-04-22 09:51:59 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
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


Top
   
 Post subject:
PostPosted: 2006-04-22 10:01:42 
Offline

Joined: 2006-02-18 10:51:15
Posts: 6
Error in line 9.


Top
   
 Post subject:
PostPosted: 2006-04-22 10:02:46 
Offline

Joined: 2005-06-12 22:12:15
Posts: 247
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


Top
   
 Post subject:
PostPosted: 2006-04-22 10:07:13 
Offline

Joined: 2006-02-18 10:51:15
Posts: 6
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


???


Top
   
 Post subject:
PostPosted: 2006-04-22 10:20:34 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
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, он русского не понимает.


Top
   
 Post subject:
PostPosted: 2006-04-22 10:54:05 
Offline

Joined: 2006-02-18 10:51:15
Posts: 6
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.


Top
   
 Post subject:
PostPosted: 2006-04-22 11:56:11 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
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


Top
   
 Post subject:
PostPosted: 2006-04-22 13:17:45 
Offline

Joined: 2006-02-18 10:51:15
Posts: 6
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.


Top
   
 Post subject:
PostPosted: 2006-04-22 13:35:40 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
That's what the macro will do. Once you finish healing or fail, it starts healing again.


Top
   
 Post subject:
PostPosted: 2006-04-22 15:47:42 
Offline

Joined: 2006-02-18 10:51:15
Posts: 6
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?


Top
   
 Post subject:
PostPosted: 2006-04-22 16:03:44 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Have you tried this macro? Try it, and you will see that it is what you wrote you need.


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

All times are UTC+02:00


Who is online

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