Yoko

All sides of Injection
It is currently 2025-12-24 06:28:56

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 2008-02-24 11:04:52 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
Здраствуйте, помогите пожалуйста добавить что бы брал из сундука чистые бинты когда в паке допустим будет 100 и ложил все грязные в этот же сундук!

Code:
sub heal()    
VAR X=0
repeat
   if uo.life < uo.str then   ;;; healing
   while uo.life < uo.str
      uo.exec("bandageself")
      wait (300)
      uo.usetype("0x1B76") # ùèò
      uo.deletejournal()
      while not (X == 60 or uo.injournal("backpack") or uo.injournal ("reach that") or uo.injournal("current state") or uo.injournal("barely")or uo.injournal("You put")or uo.injournal("You fail") or uo.injournal("mummy") or uo.injournal("target info"))
         wait(300)
         X=X+1
         if uo.injournal("reach that") or uo.injournal("current state") or uo.injournal("target info") then
            wait(500)
         endif
      wend
   X=0
   wend
      uo.deletejournal()
     
   endif
wait(100)
until uo.dead()
end sub


Top
   
 Post subject:
PostPosted: 2008-02-24 16:23:40 
Offline

Joined: 2008-01-26 22:35:57
Posts: 59
попробуй так ...
сначала надо указать будет контейнер где чистые бинты

Code:

sub heal()   
VAR X=0
var count

uo.print('Выберите контейнер с бинтами')
   uo.exec('addobject Cont')
      while uo.targeting()
      wait(100)
      wend

repeat
   if uo.life < uo.str then   ;;; healing
   while uo.life < uo.str
      uo.exec("bandageself")
      wait (300)
      uo.usetype("0x1B76") # ùèò
      uo.deletejournal()
      while not (X == 60 or uo.injournal("backpack") or uo.injournal ("reach that") or uo.injournal("current state") or uo.injournal("barely")or uo.injournal("You put")or uo.injournal("You fail") or uo.injournal("mummy") or uo.injournal("target info"))
         wait(300)
         X=X+1
         if uo.injournal("reach that") or uo.injournal("current state") or uo.injournal("target info") then
            wait(500)
         endif
      wend
   X=0
   wend
      uo.deletejournal()
     
   endif
wait(100)

###########################################

count=uo.count('0x0E21')
        if count < 100 then
                   uo.setreceivingcontainer('Cont')   
                   uo.findtype('0x0E20')   
                   wait(1000)
                   uo.grab('0','finditem')   #### скидывем в контейнер кровавые бинты
                   wait(1000)   

                   uo.unsetreceivingcontainer() 
                   uo.findtype('0x0E21',-1,'Cont')
                   wait(1000)
                   uo.grab('500','finditem')    ## берем 500 чистых
                                wait(1000)
         endif

###########################################
 
until uo.dead()
end sub



Last edited by GambiT on 2008-02-26 10:03:52, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2008-02-24 20:51:06 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
GambiT wrote:
попробуй так ...
сначала надо указать будет контейнер где чистые бинты

Code:

sub heal()   
VAR X=0
var count

uo.print(Выберите контейнер с бинтами)
   uo.exec('addobject Cont')
      while uo.targeting()
      wait(100)
      wend

repeat
   if uo.life < uo.str then   ;;; healing
   while uo.life < uo.str
      uo.exec("bandageself")
      wait (300)
      uo.usetype("0x1B76") # ùèò
      uo.deletejournal()
      while not (X == 60 or uo.injournal("backpack") or uo.injournal ("reach that") or uo.injournal("current state") or uo.injournal("barely")or uo.injournal("You put")or uo.injournal("You fail") or uo.injournal("mummy") or uo.injournal("target info"))
         wait(300)
         X=X+1
         if uo.injournal("reach that") or uo.injournal("current state") or uo.injournal("target info") then
            wait(500)
         endif
      wend
   X=0
   wend
      uo.deletejournal()
     
   endif
wait(100)

###########################################

count=uo.count('0x0E21')
        if count < 100 then
                   uo.setreceivingcontainer('Cont')   
                   uo.findtype('0x0E20')   
                   wait(1000)
                   uo.grab('0','finditem')   #### скидывем в контейнер кровавые бинты
                   wait(1000)   

                   uo.unsetreceivingcontainer() 
                   uo.findtype('0x0E21',-1,'Cont')
                   wait(1000)
                   uo.grab('500','finditem')    ## берем 500 чистых
                                wait(1000)
         endif

###########################################
 
until uo.dead()
end sub




uo.print(Выберите контейнер с бинтами) ТУТ ВЫбило ошибку!


Top
   
 Post subject:
PostPosted: 2008-02-24 21:00:27 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Shadowdancer wrote:
GambiT wrote:
попробуй так ...
сначала надо указать будет контейнер где чистые бинты

uo.print(Выберите контейнер с бинтами) ТУТ ВЫбило ошибку!



Ох ужос какой.... А нафига тебе их скидывать? Помыть ни судьба? А по теме в кавычки поставь текст в скобках.


Top
   
 Post subject:
PostPosted: 2008-02-24 21:42:42 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
Нечем мыть нада в сундук скидывать :)


Top
   
 Post subject:
PostPosted: 2008-02-26 10:03:02 
Offline

Joined: 2008-01-26 22:35:57
Posts: 59
сори ступил забыл кавычки поставить ;)

Code:
uo.print('Выберите контейнер с бинтами')


Top
   
 Post subject:
PostPosted: 2008-02-27 21:34:05 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
пасибки, вроде все работает!


Top
   
 Post subject:
PostPosted: 2008-02-28 10:12:42 
Offline

Joined: 2008-01-26 22:35:57
Posts: 59
да не за что ;)
обращайся ;) помогу чем смогу ;)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 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