спасибо но у меня чет все время ошибка в 7 строке
я под себя подставил все ,я делаю на боди сашах
Code:
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