Hey I'm decently new at this and I'm trying to write a script, but I can't get past this one part so hopefully one of you guys knows how to do this.
How would you have the bot log out if it can't find a specific color on the screen?
Hey I'm decently new at this and I'm trying to write a script, but I can't get past this one part so hopefully one of you guys knows how to do this.
How would you have the bot log out if it can't find a specific color on the screen?
post youre code, with code tags, and ill show you what it looks like
View my OSR Script Repository!
Botted to max
Guides: How to Report Bugs to the Scripter
~~~~ Moved to Java. Currently Lurking ~~~~
You could use something like:
Simba Code:if not FindColorTolerance(x, y, 169454, MIX1, MIY1, MIX2, MIY2, 35) then
Logout;
You can modify that depending on where you want to look for the colour. The MI in MIX1, MIY1 stands for Main Intentory, so this will search for the colour in the inventory.
If you wanted to look on the main screen you would use MSX1, MSY1. If you wanted to look on the Mini Map you would use MMX1, MMY1 etc.
Hope this helps![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)