Log in

View Full Version : BotCheck



noobmaster
05-16-2008, 06:28 PM
Hello,

Thanks for taking your time to read this topic. I was wondering if i could get some help with 2 scritpts.
There is a bot check in a game that i play, and i believe scar can do it. I doubt it there was a way to do it myself with the skills i have as for now.

Anyways here are some info about the botcheck:
1) The botcheck will always stay in the same place, only the colors will be rearranged or diverse
2) The botcheck will ask for a color in bold printing
3) Check the image below for more info :)
http://img153.imageshack.us/img153/7283/capturedonevx1.jpg


Also check this img, for the different colors that con occur in a botcheck - add new values in the link for the different type ones:
http://movoda.net/botcheck.jpg?id=00000000000007469803



If that could be done i would greatly appreciate it.

Not sure but that's how i thought it could be (keep in mind i can't script :P).
Maybe make scar check the location for where the botcheck is for the word color in bold
I believe scar can store different color values in its memory so when that color is asked, scar picks it.

Request 2:

If request #1 can be done, i was wondering if any of the scripters in the site, could try to combine the above request with the following one.
That's of course if you have some free time to dedicate, i don't want to ruin other peoples activities :). this is the 2nd script:


program New;
begin
repeat
MoveMouseSmooth(26,231);
ClickMouse(26,231,true);
wait(3000 + Random(500));
MoveMouseSmooth(111,731);
ClickMouse(111,731,true);
wait(3000 + random(500));
until(false);
end.

Thanks in advance,
Noobmaster

sirlaughsalot
05-16-2008, 07:01 PM
dont get the 1st request... but with the second one, dont use SCAR functions, they werent made to be undetectable...

noobmaster
05-16-2008, 07:20 PM
Let me rephrase the 1st request,

Basically what i am saying is that a botcheck shows up every 20 minutes. The botcheck ask for a color to be clicked on http://img153.imageshack.us/img153/7283/capturedonevx1.jpg.

So is it possible for SCAR to be able to click the color by it's self?

The botcheck will always be in the same place, only the colors will move around.

Is it possible so lets say scar scans x1,x2,y1,y2 every 10 seconds for the color blue red orange, etc and if it finds that color to click on it?

If you still don't get it, please say so and i will try to rephrase it better. :)

BTW, about the

but with the second one, dont use SCAR functions, they werent made to be undetectable...
The game is textbased. Those are the only functions i know so far, if you know any other less detectable ones pls tell me. :)

sirlaughsalot
05-16-2008, 07:33 PM
yeah do it by findcolor(x,y,[insert color here],x1,y1,x2,y2) then mouse(x,y,randomx,randomy,true=left click,false=right click), then wait (x), put however long you want it to wait, in milliseconds instead of x =D hope i helped

noobmaster
05-16-2008, 08:26 PM
OK, i will play around with that.

Btw, do you know a way so scar reads what color it is being asked for


http://img153.imageshack.us/img153/7283/capturedonevx1.jpg
If you look in this SC there is a bold print (that's the color i must pick)

sirlaughsalot
05-16-2008, 09:07 PM
hmm im not sure on how to use it but look in the SRL manual for FindText and see if you can figure it out =P

noobmaster
05-17-2008, 10:46 AM
program Botcheck;
var
x, y, Tolerance, Chars, MinSpacing, MaxSpacing: integer;
s: string;
CheckShadow, CheckOutline: Boolean;
begin
If IsTextInAreaEx(739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean; then
if findcolor(x,y,14035486,x1,y1,x2,y2)then// blue
mouse(x,y,randomx,randomy,true=left click,false=right click)
if (not TextIsInAreaEX 739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean; ) then
if findcolor(x,y,4707885,x1,y1,x2,y2)then//green
mouse(x,y,randomx,randomy,true=left click,false=right click)
if (not TextIsInAreaEX 739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean; ) then
if findcolor(x,y,1256387,x1,y1,x2,y2)then//red
mouse(x,y,randomx,randomy,true=left click,false=right click)
if (not TextIsInAreaEX 739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean; ) then
if findcolor(x,y,2531839,x1,y1,x2,y2)then//orange
mouse(x,y,randomx,randomy,true=left click,false=right click)
if (not TextIsInAreaEX 739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean; ) then
if findcolor(x,y,2358015,x1,y1,x2,y2)then//yellow
mouse(x,y,randomx,randomy,true=left click,false=right click)
if (not TextIsInAreaEX 739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean; ) then
if findcolor(x,y,12655742,x1,y1,x2,y2)then//purple
mouse(x,y,randomx,randomy,true=left click,false=right click)
if (not TextIsInAreaEX 739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean; ) then
if findcolor(x,y,1842729,x1,y1,x2,y2)then//black
mouse(x,y,randomx,randomy,true=left click,false=right click)
if (not TextIsInAreaEX 739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean; ) then
if findcolor(x,y,16318207,x1,y1,x2,y2)then//white
mouse(x,y,randomx,randomy,true=left click,false=right click)
wait(10000)
until(false);
end.



Line 7: [Error] (7:39): comma (',') expected in script C:\Program Files\SCAR 3.15\Scripts\Botcheck.scar

There also many other errors out there, such as the mouse option. Scar doesn't understand it. Could someone check for other errors too? :P

Sorry for the standards :(

smithsps
05-17-2008, 11:39 AM
First off you need:
{.include SRL/SRL.scar}
For the mouse problem


and in this:
IsTextInAreaEx(739, 312, 941, 365,S:blue; Tolerance: 2; Chars: Integer; CheckShadow, CheckOutline: false; MinSpacing, MaxSpacing: 0; TextColor: 14143688): Boolean;

I haven't used it before But IT IS A Mess! :(

noobmaster
05-17-2008, 11:56 AM
I included:

{.include SRL/SRL.scar} in the script.

When i hit compile, a new tab shows up with the title Math.scar
Is that normal?

Also if i try to compile the math.scar a
Line 27: [Error] (27:26): Unknown identifier 'MMCX' in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Core\Math.scar error shows up :(

MylesMadness
05-17-2008, 01:58 PM
If you could link me to the site(and if I need a pass to access that page let me borrow yours) I could do it in a few minutes.

noobmaster
05-18-2008, 12:05 PM
Thanks to Mylesmadness for trying, but it was too complicated so he couldn't resolve the script.

Anyways some help with this:



program Botcheck;
{.include SRL/SRL.scar}
var
x, y, Tolerance, Chars, MinSpacing, MaxSpacing, Textcolor: integer;
blue: string;
CheckShadow, CheckOutline: Boolean;
begin
If IsTextInAreaEx(739, 312, 941, 365, blue,2,0,false,0,0,14143688): Boolean; then



Line 8: [Error] (12651:67): Type mismatch in script C:\Program Files\SCAR 3.15\Scripts\Botcheck.scar

drizzt
05-18-2008, 02:22 PM
If IsTextInAreaEx(739, 312, 941, 365, 'blue',2,0,false,0,0,14143688) then

you don't need the ":Boolean;" and stuff, that is what the function returns, also, blue needed to be a string.

(i didn't compile, those are just what i saw right off)

sk8terbitu
05-18-2008, 02:35 PM
would it be a problem if runescape added a bot check like that?

Markus
05-18-2008, 02:41 PM
would it be a problem if runescape added a bot check like that?

They already have that, it is called a Random Event :p

noobmaster
05-18-2008, 05:31 PM
Thank you, Drizzt.

I fixed the problem that you showed.

Anyways here is what i came up with. I can compile the script (finally :D) but it doesn't do nothing. It could be that my coordinates could be wrong but if someone wants to check it, here it is :).



program New;
{.include SRL/SRL.scar}
var
x, y, Tolerance, Chars, MinSpacing, MaxSpacing, Textcolor, randomx, randomy: integer;
green: string;
CheckShadow, CheckOutline: Boolean;
begin
If IsTextInAreaEx(739, 312, 941, 365, x, y, 'green',0,0,false, false,0,0,-1) then
if findcolor(x,y,4707885,739,312,941,365)then// green
mouse(x,y,randomx,randomy, true);
wait(10000);
end.

NightfirePhoenix
07-02-2008, 12:04 PM
has this code been completed/ started working yet