sub Tailoring()
while true
uo.waittargetself()
wait(500)
if uo.count('0x1766') < 30 then
uo.findtype('0x1766', -1, 'ground')
uo.grab(30, 'finditem')
wait(500)
endif
uo.deletejournal()
uo.waitmenu('Choose a category.', 'caps', 'What', 'Wizard')
uo.waittargettype('0x1766')
uo.usetype('0x0F9D')
wait(500)
uo.waittargetself()
repeat
wait(500)
until uo.injournal('not') or uo.injournal('create') or uo.injournal('make')
wait(500)
while uo.count('0x1718') > 0
uo.waittargettype('0x1718')
uo.usetype('0x0F9E')
wait(2000)
if uo.injournal('Saving') then
repeat
wait(1000)
until uo.injournal('complete')
endif
wend
if uo.injournal('hungry') or uo.injournal('hurts') then
uo.usetype('0x171F')
wait(500)
endif
wend
end sub