for c=1 to 2 repeat uo.findtype(R[c],"-1","lastcorpse") if UO.FindCount()>0 and Uo.GetDistance("lastcorpse")<=4 then UO.Grab("0","finditem") wait(2000) end if
next UO.Press('Enter') wait(10) UO.Say('.sac') UO.WaitTargetObject('lastcorpse') uo.DeleteJOurnal() wait(150) end if wend wend end sub
sub main() var c DIM x[2] x[1] = 0x0E75 # BackPack x[2] = 0x0EED # Coin while not uo.dead() UO.UseObject('lastcorpse') wait(100) uo.waittargetobject('lastcorpse') uo.usetype(0x0EC3) wait(400)
for c=1 to 2 uo.findtype(x[c],"-1","lastcorpse") if UO.FindCount()>0 and Uo.GetDistance("lastcorpse")<=4 then UO.Grab("0","finditem") wait(2000) end if next UO.Press('Enter') wait(10) UO.Say('.sac') UO.WaitTargetObject('lastcorpse') uo.DeleteJOurnal() wait(150) wend end sub
переменная С тут вобще была не причём , она просто использовалась в цикле for со значением 1 и 2