sub pickup() var m DIM topick[2] topick[1] = '0x09AA' topick[2] = '0x0E7D' for m = 1 to 2 uo.exec("set finddistance 5") repeat wait(100) uo.findtype(topick[m],'-1','ground') if uo.findcount()>0 then CheckLag() UO.Grab('0','finditem') CheckLag() endif until uo.findcount()==0 end sub