Попробуй вот так. В паке только инструмент, в сундуке инги.
Code:
sub Tinkering()
var t_Ingots = '0x1BEF', c_Ingots = '0x0000', t_TinkerTools = '0x1EBC', t_EmptyBottle = '0x0F0E', c_EmptyBottle = '0x0000'
var id_Container = '0x403106BC', Pause = 1000, Time, Delay = 5, msg = 'ou put|fail'
While UO.SkillVal('Tinkering', 1) < 1000
If UO.Count(t_EmptyBottle, c_EmptyBottle) >= 10 then
UO.FindType(t_EmptyBottle, c_EmptyBottle, 'backpack')
If UO.FindCount() then
CheckLag()
UO.MoveItem('finditem', -1, id_Container)
Wait(Pause)
else
Wait(Pause)
Endif
else
If UO.Count(t_Ingots, c_Ingots) > 5 then
DelJournal(msg)
Time = UO.Timer()
UO.WaitMenu('Tinkering', 'Tools', 'Tools', 'empty bottle')
UO.UseType(t_TinkerTools)
Repeat
Wait(100)
Until UO.InJournal(msg) or Time + Delay * 10 <= UO.Timer()
else
UO.FindType(t_Ingots, c_Ingots, id_Container)
If UO.FindCount() then
CheckLag()
UO.MoveItem('finditem', -1, 'backpack')
Wait(Pause)
else
UO.Print('Not enough ingots')
Return
Endif
Endif
Endif
Wend
Endsub
Sub DelJournal(msg)
While UO.InJournal(msg)
UO.SetJournalLine(UO.InJournal(msg) - 1, '')
Wend
Endsub
Sub CheckLag()
DelJournal('ackpack')
UO.Click('backpack')
Repeat
Wait(50)
Until UO.InJournal('ackpack')
Endsub