вобщем есть скриптик по идее не плохой... но при переплавке или появляется таргет и приходится самому тыкать на форж или пишет Auto target canceled и скрипт останавливается...
исправьте пожалуйста...
Code:
sub main()
var bs_hammer='0x13e3', ingots='0x1bf2', bplate='0x1415' # platemail breastplate
var f=UO.count(bplate), i
wait(1000)
if uo.count(bplate)>0 then
wait(1000)
smelt(bplate,1)
endif
while uo.count(ingots)>30
if uo.count(bplate)>0 then
wait(1000)
smelt(bplate,1)
endif
f=UO.count(bplate)
wait(1000)
while f<30 and uo.count(ingots)>30
i=uo.count(ingots)
UO.Exec("waitmenu 'like to make' 'Armors' 'armor' 'Platemail' 'like' 'Breastplate'")
UO.waittargettype(ingots)
uo.deletejournal()
UO.usetype(bs_hammer)
repeat
wait(1000)
until i<>uo.count(ingots) or f<>uo.count(bplate)
repeat
wait(1000)
UO.LClick(55,85)# click on "Yes" if exceptional item
until uo.injournal('You finished looping.')
f=UO.count(bplate)
wend
wend
end sub
sub smelt(item, loop)
Repeat
var forge='0x6BD6210E', tongs='0x0fbb', count1,count2
count1=uo.count(item)
if count1>0 then
if loop then
count2=0
else
count2=count1-1
endif
repeat
uo.waittargettype(item)
uo.usetype(tongs)
uo.deletejournal()
repeat
wait(2000)
until uo.injournal('What')
uo.waittargetobject(forge)
uo.deletejournal()
repeat
wait(2000)
until uo.injournal('destroy') or uo.injournal('turned') or uo.injournal('мешок') or uo.injournal('You finished looping.') or uo.injournal('Auto target cancelled')
wait(500)#may be not need (!)
until uo.count(item)<=count2
endif
end sub