Code: Select all
var whatwedo = '0x1440'; # ÷òî äåëàåì - ýòî cutlass
var molotok = '0x13E3'; # ìîëîòîê
var ingots = '0x1BEF'; # òèï èíãîòîâ
var forge = '0x401B8DBE'; # ôîðæ, íà êîòîðîé ïëàâèì
var num = 8; # ñêîëüêî òðàòèòñÿ íà îäèí èçäåëèé
sub smelt()
while uo.count(whatwedo)>0
uo.waittargettype(whatwedo);
uo.useobject(forge);
wait(400)
wend
if uo.count(ingots)<num then
return
endif
blacksmith()
end sub
sub blacksmith()
while not uo.dead()
if UO.Count(ingots) < num OR uo.weight > 6000 then
smelt();
repeat
endif
UO.DeleteJournal()
if uo.count(ingots)>=num then
UO.WaitMenu ('Blacksmithing', 'Weapons', 'Weapons','Swords & Blades','Swords & Blades', 'cutlass (8 iron ingot)')
else
smelt();
repeat
endif
UO.WaitTargetType (ingots)
UO.UseType(molotok)
wait(6000)
Until (uo.injournal("You have failed to make anything")) or (uo.injournal("Âû áûëè íå â ñîñòîÿíèè ñäåëàòü ÷òî-íèáóäü"))
wait(2500)
wend
If UO.Count(whatwedo)>2500 then
smelt()
endif
wend
end sub