View Full Version : How does SRL/SCAR tell if its pick something up?
deviney
06-15-2007, 09:00 PM
Hi all,
Its me Deviney!
Just wondering wat code would i use if i wanted scar to click a color on the main screen and then check if its went in to my inventory but if it hasent click the same color on the screen again?
Rep for the ansrew!
Regards
Deviney
Smartzkid
06-15-2007, 09:03 PM
//Find object on the main screen; set it's position to x and y
repeat
originv := InvCount; //Make sure originv is set as an integer
Mouse(x, y, 4, 4, true);
wait(250 + random(1000));
until(not(originv = InvCount))
deviney
06-15-2007, 09:06 PM
could you give me a bit more info on what each bit does just so i know how i can use it in my script?
Please it would help ever so much :)
p.s the object moves and am using color finder.
Regards
Deviney
jbrauman
06-23-2007, 02:34 AM
//Find object on the main screen; set it's position to x and y
repeat //Makes a loop, so it continues until you pick something up.
originv := InvCount; //This sets originv to how many items you have in
//your inventory (InvCount).
Mouse(x, y, 4, 4, true); //Moves your mouse over the colour, you
//have to make sure you have set x,y in findcolour.
wait(250 + random(1000));//Waits a random amount of time, just extra
//antiban really, standard coding practice.
until(not(originv = InvCount)) //Continues the loop until originv and InvCount
//are not the same. It would be better to go
// until(originv = InvCount + 1);
-jbrauman
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.