Yoko

All sides of Injection
It is currently 2024-03-28 10:52:20

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2006-12-25 18:33:31 
Offline

Joined: 2005-05-02 17:37:12
Posts: 46
Простой но функциональный скрипт на делание досок по послденему сделаному, addbox прописывает где все лежит и куда выкладывать
Code:
sub carpentry() 
var Pila = '0x1034'
var Derevo = '0x1bdd'
var Doska  = '0x1bd7'  ; Доска

while not uo.dead()   
 if uo.count(Pila) <1 then              ; ----   Если пил мало берем
      uo.findtype(Pila,'-1','Box1')
      UO.grab(1,'finditem')
      Wait(1000)
 end if
 if uo.count(derevo) < 1  then             ; ----   Если дерева мало берем
      uo.findtype(Derevo,'-1','Box1')
      UO.grab(150,'finditem')
      Wait(1500)
 end if
 
 UO.usetype(Pila)  ;  ---------- Делаем доски
 wait(1500)
 UO.LClick(274,110)
 wait(2000)          ; -------------------  Все
 uo.findtype(Doska)
 uo.moveitem('finditem','0','Box1')
 wait(700)
wend

end sub

sub add_box1()
   uo.Exec('addobject Box1')
   while uo.Targeting()
   wait(100)
   wend
end sub
[/code]


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

All times are UTC+02:00


Who is online

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