Yoko

All sides of Injection
It is currently 2026-01-22 09:38:20

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: problem with healing sc
PostPosted: 2008-05-29 15:07:55 
Offline

Joined: 2008-01-31 17:43:42
Posts: 12
It seems when I run my healing sc it crashes. I am not very good with scripts so any help would be great.

Code:
sub Healing()
UO.DeleteJournal()
repeat
if not uo.dead() then
if UO.InJournal("You feel very ill")>0 or UO.InJournal("You feel deathly sick")>0 or UO.InJournal("You feel extremely sick")>0 or UO.InJournal("You contaminated")>0 then
uo.exec("bandageself")
wait(900)
UO.DeleteJournal()
end if
if uo.life < uo.str-10 then
uo.exec("bandageself")
end if
end if
wait(900)
until false


Top
   
 Post subject:
PostPosted: 2008-05-29 15:14:04 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
sub Healing()
   var msg = "You feel very ill|You feel deathly sick|You feel extremely sick|You contaminated"
   UO.DeleteJournal()
   repeat
      if not uo.dead() then
         if UO.InJournal( msg ) then
            uo.bandageself()
            wait(900)
            UO.DeleteJournal()
         end if
         if uo.life < uo.str-10 then
            uo.bandageself()
            wait(900)
            UO.DeleteJournal()
         end if
      end if
      wait(150)
   until false
endsub


Now better ?

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-05-31 04:47:55 
Offline

Joined: 2004-07-29 16:29:52
Posts: 55
Code:
sub healing()
while uo.count('0x0e21')>=1 or not uo.dead()
if uo.poisoned() or uo.life <= uo.str-10 then
uo.bandageself()
wait(900) ; ??? you can heal this fast may want to work on this part 1000 = 1 second (is prolly why you crash)
else
wait(150)
endif
wend
endsub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 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:  
Powered by phpBB® Forum Software © phpBB Limited