Originally Posted by
DonVitoCorleone
Sometimes when starting a script the smart proggy fucks up and the mouse teleports to (0, 0).
There is also always this error:
ERROR: TRSActionBar.__find(): Actionbar color needs updating! Tell a dev. => I updated the colors and that fixed it for a few days but now the error is back.
Are these 2 problems related?
What can i do to fix this?
Most likely it is trying to move to -1, -1. What you need to do is check IF the colour is found..
Bad Example:
Simba Code:
FindColorTolerance(X, Y, Colour, 0, 0, 100, 100, 10);
Mouse(X, Y, MOUSE_MOVE); //Moves mouse regardless of whether the colour is found or not.
Okay Example:
Simba Code:
if (FindColorTolerance(X, Y, Colour, 0, 0, 100, 100, 10)) then
Mouse(X, Y, MOUSE_MOVE); //Moves mouse only if the colour is found.