Code: Select all
; Blacksmithy
sub Blacksmithy()
VAR Exit=0, LastTimer
while Exit<>1
UO.DeleteJournal()
LastTimer=UO.Timer()
UO.WaitMenu('Blacksmithing','Armor & Weapons','Armor & Weapons','Ringmail Gloves','Ringmail Gloves') ;
UO.UseType(0x1BEF) ;
while NOT UO.InJournal("You put") AND NOT UO.InJournal("You have failed")
wait(500)
wend
If UO.InJournal("You have failed") then
repeat
wait(100)
until UO.Timer()>=LastTimer+100 ;
EndIf
UO.FindType('0x13E3',-1,'backpack')
wait(500)
If UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
UO.UseObject(0x4024B063) ;
Endif
UO.FindType('0x1BEF',-1,'backpack')
If UO.GetQuantity('finditem')<10 then
UO.FindType('0x1BEF','0x0750','0x4004CAE1') ;
wait(1000)
UO.Grab('1000','finditem')
Endif
wait(1000)
wend
end sub
Вразумите!