sub BlacksmithyIM() var Exit=0, LastTimer uo.Print('Âûáåðè Ñóíäóê: ') uo.Exec('addobject Chest') while uo.Targeting() wait(100) wend uo.Print('Âûáåðè Ïîìîéêó: ') uo.Exec('addobject TrashCan') while uo.Targeting() wait(100) wend while Exit<>1 uo.DeleteJournal() uo.FindType('0x0F51','0x0000','backpack') if uo.GetQuantity('finditem')>0 then uo.SetReceivingContainer('TrashCan') wait(1000) uo.Grab('all','finditem') wait(1000) uo.UnSetReceivingContainer() end if uo.FindType('0x1BEF ',-1,'backpack') if uo.GetQuantity('finditem')<10 then uo.FindType('0x1BEF ','0x0000','Chest') wait(1000) uo.Grab('300','finditem') wait(1000) end if LastTimer=uo.Timer() uo.DeleteJournal() uo.WaitMenu ('Blacksmithing','Weapons','Weapons','Swords','Swords','dagger') uo.UseType('0x13E3') wait(12000) wend end sub
sub BS() VAR Exit=0, LastTimer while Exit<>1 UO.FindType('0x1BEF','0x0000','backpack') If UO.GetQuantity('finditem')<10 then UO.FindType('0x1BEF','0x0000','0x4005944E') ;serial sunduka s iron UO.Grab('300','finditem') wait(300) Endif UO.DeleteJournal() LastTimer=UO.Timer() UO.WaitMenu('Blacksmithing','Weapons','Weapons','Swords','Swords','dagger') UO.UseType(0x1BEF) ; iron ings
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 ;time to make a dagger EndIf