
sub main()
var tmp, i
UO.Exec ("cancelmenu")
UO.Exec ("automenu 'Blacksmithing' 'Colored Armor'")
UO.Exec ("automenu 'Bronze Armor' 'Bronze Platemail Gorget'")
g:
start:
if UO.Count("0x1BEF") < 50 then
tmp=UO.Count("0x1BEF")
i=0
while uo.life<uo.str
wait(500)
wend
UO.Exec ("findtype 0x1BEF 0x06D6 1")
UO.Exec ("grab 200 finditem")
while tmp==UO.Count ("0x1BEF") and i < 100
wait (500)
i=i+1
wend
endif
while uo.life<uo.str
wait(500)
wend
while UO.Count ("0x1BEF") > 25
tmp=UO.Count("0x1BEF")
i=0
UO.Exec ("usetype 0x1BEF")
while tmp==UO.Count("0x1BEF") and i<100
if UO.InJournal("You have failed to make anything") then
while uo.life<uo.str
wait(500)
wend
UO.DeleteJournal()
wait (1000)
i=200
endif
wait (500)
while uo.life<uo.str
wait(500)
wend
i=i+1
wend
wend
while UO.Count ("0x1413") > 0
tmp=UO.Count("0x1413")
while uo.life<uo.str
wait(500)
wend
i=0
UO.Exec ("findtype 0x1413 0x06D6")
UO.Exec ("drophere finditem")
while tmp==UO.Count("0x1413") and i<100
wait (500)
while uo.life<uo.str
wait(500)
wend
i=i+1
wend
wend
while uo.life<uo.str
wait(500)
wend
goto g:
end sub