View Full Version : Old SCAR commands
Master Duckling
01-21-2008, 04:43 PM
Hi!
I am quite new to SRL and SCAR. But I used to script a bit back at RSC. I wasn't good tho, just made scripts for my own accounts. But I was wondering, why don't scripts ever contain commands like these, which I used to use:
if(FindColorTolerance(x, y, 21074, 5, 62, 501, 350, 5))then
Is it because RuneScape can detect that you are cheating if you use commands like that.
But i'm not only talking about FindColor commands, also whole procedures. Like the Logout procedure:
function Logout: Boolean;
var
c, i: Integer;
begin
Result := (not (LoggedIn));
if Result = True then
Exit;
if GameTab(14) = False then
Exit;
Wait(200 + Random(100));
while (LoggedIn) or (c < 10) do
begin
Inc(c);
if(ClickText('here', UpChars, MIX1, MIY1, MIX2, MIY2, True))then
for i := 0 to 10 do
begin
Wait(1000);
if not(LoggedIn)then
begin
Result := True;
Exit;
end;
end;
end;
end;
Wouldn't something like this also work?
MoveMouse(349, 320);
ClickMouse(349, 320, True);
wait(1000);
MoveMouse(407, 273);
ClickMouse(407, 273, True);
(No these are not the right coordinates)
Tnx in advance
Ducky
[S]paz
01-21-2008, 04:45 PM
if(FindColorTolerance(x, y, 21074, 5, 62, 501, 350, 5))then
this is a valid function :)
function Logout: Boolean;
var
c, i: Integer;
begin
Result := (not (LoggedIn));
if Result = True then
Exit;
if GameTab(14) = False then
Exit;
Wait(200 + Random(100));
while (LoggedIn) or (c < 10) do
begin
Inc(c);
if(ClickText('here', UpChars, MIX1, MIY1, MIX2, MIY2, True))then
for i := 0 to 10 do
begin
Wait(1000);
if not(LoggedIn)then
begin
Result := True;
Exit;
end;
end;
end;
end;
thats all in the SRL library so all u have to say is
logout;
Wouldn't something like this also work?
MoveMouse(349, 320);
ClickMouse(349, 320, True);
wait(1000);
MoveMouse(407, 273);
ClickMouse(407, 273, True);
That would but never use clickmouse or MoveMouse
use
MMouse(x, y, 1, 1);
Mouse(x, y, 349, 320, True);
wait(1000);
MMouse(x, y, 1, 1);
Mouse(x, y, 349, 320, True);
~Spaz
MylesMadness
01-21-2008, 04:45 PM
we still use FindColorTolerance(x, y, 21074, 5, 62, 501, 350, 5)
edit:Beat me to it
Master Duckling
01-21-2008, 04:50 PM
K thx guys!
@ spaztaz666, but why use such a complicated procedure in the SRL Library? Since the two mouse clicks also work? Its like 15 lines less text...
Is it because the other way is much cooler to do :P? Or because its less detectable?
[S]paz
01-21-2008, 04:52 PM
well the devs have already made the procedure so as long as u include the file {include. srl.scar} then all u have to write is logout
that what you mean?
~Spaz
Master Duckling
01-21-2008, 04:59 PM
Yes i understand that part ;).
The
logout;
part activates the Logout procedure. And the procedure is what i am wondering about. Currently it is, like i posted in my first post already:
function Logout: Boolean;
var
c, i: Integer;
begin
Result := (not (LoggedIn));
if Result = True then
Exit;
if GameTab(14) = False then
Exit;
Wait(200 + Random(100));
while (LoggedIn) or (c < 10) do
begin
Inc(c);
if(ClickText('here', UpChars, MIX1, MIY1, MIX2, MIY2, True))then
for i := 0 to 10 do
begin
Wait(1000);
if not(LoggedIn)then
begin
Result := True;
Exit;
end;
end;
end;
end;
So we dont have to deal with logging out at all, the 'logout;' line does that for us. But im just using this logout function as an example. I am just saying that it could have been written a lot easier. With the two mouse button clicks.
So i was wondering why people use scripts that are more complicated than they have to be. Is this because it is less detectable?
[S]paz
01-21-2008, 05:02 PM
well since the devs made it everyone uses it and only uses logout; but if you wanted to be special you could make your own logout function but i think if the two clicks goes wrong then your stuffed :P lol so that combines failsafes and other things to make sure you don't end up endlessly clicking something for hours on end
~Spaz
n3ss3s
01-21-2008, 05:05 PM
Welcome back :)
SCAR scripting has gone through a lot of advancement, and we consider more on failsafes nowadays.
Also, the only undetectable mouse moving/clicking procedures are SRL's MMouse and Mouse.
About why you cannot see FindColor etc anymore so often, also object finding and generally stuff with colors is a lot more advanced :)
Markus
01-21-2008, 05:19 PM
Jagex has updated runescape in the following ways:
colours always change, every time you login, so high tols are necessary.
They can detect non-human mousemovements,
They often update the interface/letters, so we'll make the functions so that they will keep working after an update.
And the logout procedure isn't that complex at all, compared to LoginPlayer, we try to be as good as possible, and complexibility = reliability in these cases.
Master Duckling
01-21-2008, 05:39 PM
K guys, Tnx for all the answers!! :) Ill try to catch up with you people and try to make some scripts!
Markus
01-21-2008, 05:46 PM
Hehe, ok :)
Good luck with it, and have fun :p
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.