Yoko

All sides of Injection
It is currently 2025-10-20 11:55:08

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Whats wrong? need help
PostPosted: 2008-09-22 19:21:37 
Offline

Joined: 2008-09-22 19:18:45
Posts: 2
Code:
sub heal()
repeat
   if uo.life<290 then
     uo.bandageself()
     wait(3000)
    endif
      wait(1000)
until uo.dead()
end sub


Whats wrong cant understand.. it works heals my self but some times i get error with button ok cant remember now text something like unexepted handle paradise dont remember..


Top
   
 Post subject:
PostPosted: 2008-09-23 09:39:19 
Offline

Joined: 2004-07-29 16:29:52
Posts: 55
that is a dead cycle or what ever they call it, (burn out your cpu) try reading more info in the tutorials, I use googles translator to understand the Russian... least you will pick up on the theory... looks like you had the right idea just use and "ELSE"

Code:
sub heal()
repeat
   if uo.life<290 then
     uo.bandageself()
     wait(3000)
    else
      wait(1000)
   end if
until uo.dead()
end sub


I like this way cause you can add things to it for ex
Code:
sub heal()
repeat
  if uo.poisoned() then
drink_cure()
    else
   if uo.life<290 then
     uo.bandageself()
     wait(3000)
    else
      wait(1000)
   end if
  end if
until uo.dead()
end sub


Top
   
 Post subject:
PostPosted: 2008-09-24 08:13:49 
Offline

Joined: 2008-09-22 19:18:45
Posts: 2
t.y you just added else to this :) i thought i dont need it..


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