id в скрипте на тайлоринг!!

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
maximka4
Posts: 147
Joined: 2004-10-13 15:08:08

id в скрипте на тайлоринг!!

Post by maximka4 »

люди помогите найти id сундука куда скидываются бинты , а также id сундука от куда берется ткань.

Code: Select all

sub main()
sub tailoring() 
while 1 
if uo.count(0x175D)<30 then 
move_clothes_to_pack() 
uo.findtype('0x175D',-1,0x40118E88) 
uo.grab('300','finditem') 
wait(1000) 
end if 
do_robes() 
wait(10500) 
wend 
end sub 
sub do_robes() 
UO.AutoMenu('Misc','body') 
UO.AutoMenu('Cloth','Misc') 
uo.usetype('0x0F9D') 
uo.waitmenu('What do you want to use the sewing kit on?') 
uo.waittargettype('0x175D') 
end sub 
sub move_clothes_to_pack() 
uo.findtype('0x1541',-1,'0x4007477A') 
if uo.findCount()>0 then 
for var i=0 to uo.findCount()-1 
uo.findtype('0x1541',-1,'my') 
uo.usetype('0x0F9E') 
uo.waitmenu('What do you want to use this on?') 
uo.waittargettype('0x1F03') 
wait(1000) 
next 
endif 
endsub 
sub to_30() 
while 1 
if uo.count(0x1515)<5 then 
move_staffs_to_pack() 
uo.findtype('0x1515',-1,0x400CE918) 
uo.grab('30','finditem') 
wait(1000) 
end if 
do_robes() 
wait(1000) 
wend 
endsub 
Last edited by maximka4 on 2004-12-06 21:38:10, edited 1 time in total.
maxim viktorovich
TapakaH
Posts: 55
Joined: 2004-08-27 21:01:55

Post by TapakaH »

а он вообще работает???
maximka4
Posts: 147
Joined: 2004-10-13 15:08:08

Post by maximka4 »

да
maxim viktorovich
TapakaH
Posts: 55
Joined: 2004-08-27 21:01:55

Post by TapakaH »

написал кой че только вставить нада переменные и меню прописать, сразу говорю не тестил, но вроде должно работать.

Code: Select all

  sub robe() 
var cloth ='' #type trjapok 
var tool='0x0F9D' # sewing kit 
var cont=''# type contenera
var noz=''#type noznic
var robe''#type of robe

 while not UO.Dead()
uo.cancelmenu()
 uo.automenu("","")
 uo.automenu("","")
  UO.findtype(cloth,'-1','backpack') 
   if UO.GetQuantity('finditem')<20 then 
    UO.findtype(cloth,'-1',cont) 
     wait(200) 
      uo.grab('400','finditem') 
     wait(300) 
   endif 
   uo.DeleteJournal()  
 uo.waittargettype(cloth) 
 wait(300) 
 uo.usetype(tool) 
 wait(1000) 
 repeat 
 until uo.injournal("put") or uo.injournal("failed") 
 bbb(cont,noz,robe) 
wend 
end sub

sub bbb()
UO.findtype(robe)
 if uo.getquanity('finditem') then
  UO.waittargettype(robe)
   wait(300)
  UO.usetype(noz)
   wait(100)
 endif
  uo.findtype('')# type bandazek, ne pomnu
   if uo.getquanity('finditem') then
    wait(200)
    uo.moveitem('findtype','-1',cont)
     wait(100)
   endif
end sub
maximka4
Posts: 147
Joined: 2004-10-13 15:08:08

Post by maximka4 »

спасибо но у меня чет все время ошибка в 7 строке
я под себя подставил все ,я делаю на боди сашах

Code: Select all

sub main()
sub body() 
var cloth ='0x175D' #type trjapok 
var tool='0x0F9D'   # sewing kit 
var cont='0x0E7D'   # type contenera 
var noz='0x0F9E'    #type noznic 
var body'0x1541'    #type of body

while not UO.Dead() 
uo.cancelmenu() 
UO.AutoMenu('Misc','body') 
UO.AutoMenu('Cloth','Misc') 
UO.findtype(cloth,'-1','backpack') 
if UO.GetQuantity('finditem')<20 then 
UO.findtype(cloth,'-1',cont) 
wait(200) 
uo.grab('400','finditem') 
wait(300) 
endif 
uo.DeleteJournal()  
uo.waittargettype(cloth) 
wait(300) 
uo.usetype(tool) 
wait(1000) 
repeat 
until uo.injournal("put") or uo.injournal("failed") 
bbb(cont,noz,body) 
wend 
end sub 

sub bbb() 
UO.findtype(body) 
if uo.getquanity('finditem') then 
UO.waittargettype(body) 
wait(300) 
UO.usetype(noz) 
wait(100) 
endif 
uo.findtype('0x0E21')# type bandazek, ne pomnu 
if uo.getquanity('finditem') then 
wait(200) 
uo.moveitem('findtype','-1',cont) 
wait(100) 
endif 
end sub 
maxim viktorovich
TapakaH
Posts: 55
Joined: 2004-08-27 21:01:55

Post by TapakaH »

внимателнее гляди в следующий раз, да и я пропустил, там знака равно не хватает.
Post Reply