ok i'm creating an autofisher +cooker for barabarian village.I made A procedure called ChopDown;
SCAR Code:
procedure ChopDown;
begin
Mouse(628, 148, 5, 5,true)//i'm gonna change this to a DTM i think it just clicks to the tree on the MM
Flag;
FFlag(0);
repeat
if(ScanForObjectMulti(x, y, 644, 82, 5077104, 1515552, 1515552, 15, 'Tree'))then
begin
Mouse(x,y,2,2,false);
writeln('found the tree');
repeat
wait(250+random(10));
PopUp('Chop');
until(PopUp('Chop'))
writeln('chopped down the tree')
wait(500+random(300));
ExistsItem('Logs');//this should check the inventory for logs
end;
until(ExistsItem('Logs'));//if we have logs he may start fishing
writeln('we have some logs :p')
wait(2500+random(700));
end;
now I've seen that there is a prob whit theExistsItem('Logs');does someone know what i could use to check the inventory for logs i tried alot of things but...I just can't think any more functions I looked into the srl include inventory.scar.Plz help me on this!