SRL Archive - OSR Help

colour help


zluo

2012-04-17 19:43:17

im kinda stuck, you see here, i want to move my mouse somewhere and click. There are two colour outcomes that i expect. i want this procedure to try to detect both. currently, it is only detecting the 1st outcome, and not together with the second. how can i overcome this?
 
repeat
begin
MoveMouse(123,123);
wait (200)
ClickMouse(123,123,1);
wait (200)
while not (FindColorSpiralTolerance (x, y, 1242424, 123, 123, 123, 1323, 2)) or //the 1st colour outcome
not (FindColorSpiralTolerance (x, y, 12323453, 123, 123, 123, 1323, 2)) do //the 2nd colour outcome
wait(200);
end;
until not(FindColorSpiralTolerance (x, y, 122352, 123, 123, 123, 1323, 2));
end;

Joe

2012-04-17 20:13:14

This is quite vague… but this means that the first color is being found, so the second one doesn't need to be found?

zluo

2012-04-17 20:20:57

the 2nd outcome colour is put there because 90% of the time the 1st colour outcome never shows up.

zluo

2012-04-17 20:28:01

this is my situation. i want to do this

repeat (A and B) a random amount of times until it carries onto task C

this is what is happening

(A, B), (A, B), A and then stops. The colour B is not showing and therefore will not carry onto task C.
I want to put a backup colour into B so it will successfully carry onto C. you get what i mean?

Total

2012-04-17 20:32:39

What are you using to find the colors? I suggest you use ACA if the colors are close to each other.

Here is an ACA video guide by YoHoJo you can watch if you aren't using it now. http://www.youtube.com/watch?v=98wVrr6GwyU&feature=channel&list=UL

zluo

2012-04-17 20:39:50

they arnt close together, so i have no idea whats wrong.
this isnt for runescape, its for a rsps btw lol

Element17

2012-04-17 20:50:00

Well some functions do not work in private servers. But what are you trying to find?

zluo

2012-04-17 20:55:28

yeh ik thats why i use colour finding :P
basically A=chop the tree B=finding tree stump (for restarting the procedure) and C=detects full inventory.
you see, when you are nearly finished cutting the tree down, the tree stump will sometimes not show and so the pattern can not always go A, B, A, B, C. The script can also not go A, B, A, C because it is skipping out on B. i want to put the colours of C into B aswell so it acts as a sort of a backup

Total

2012-04-17 21:04:27

Why not continue when you gain exp instead of when you see the stump?

zluo

2012-04-17 21:13:16

From: TotalKillz
Why not continue when you gain exp instead of when you see the stump?


what? i dont get what you mean. you see, i click the tree then wait for stump to appear, then it can click on the tree again a repeat on and on until invfull

Element17

2012-04-17 21:26:55

Why not do
Repeat 
ChopFunction
Until InvFull or TreeStumpFound;