SRL Archive - SRL Archives

GameTab randomness


Harry

2008-04-27 21:56:16

IMO it needs to be more. Or use MouseBox on it or something. The 8,8, Randomness on it right now is not enough.

20,20 would work fine? The tabs are quite large…

Replace
function GameTab(tabnumber: Integer): Boolean;
var
c: Integer;
Coords: TPoint;
begin
if ((Tabnumber < 1) or (TabNumber > 15)) then
begin
srl_Warn('GameTab', IntToStr(tabnumber) + ' is no valid GameTab', warn_AllVersions);
Result := False;
Exit;
end;
if not TabExists(tabnumber) then
begin
srl_Warn('GameTab', IntToStr(tabnumber) + ' does not exist', warn_AllVersions);
Result := False;
Exit;
end;
if (tabnumber = 14) then
Coords := Point(752, 12)
else if (tabnumber = 15) then
Coords := Point(538, 485)
else if (tabnumber <= 7) then
Coords := Point(540 + ((tabnumber -1) * 33), 185)
else
Coords := Point(540 + ((tabnumber mod 7) * 33), 485);
while not(GetCurrentTab = tabnumber) and (c < 4) do
Begin
Mouse(Coords.x, Coords.y, 8, 8, true);
Inc(c);
end;
Result := (GetCurrentTab = tabnumber);
end;
with
function GameTab(tabnumber: Integer): Boolean;
var
c: Integer;
Coords: TPoint;
begin
if ((Tabnumber < 1) or (TabNumber > 15)) then
begin
srl_Warn('GameTab', IntToStr(tabnumber) + ' is no valid GameTab', warn_AllVersions);
Result := False;
Exit;
end;
if not TabExists(tabnumber) then
begin
srl_Warn('GameTab', IntToStr(tabnumber) + ' does not exist', warn_AllVersions);
Result := False;
Exit;
end;
if (tabnumber = 14) then
Coords := Point(752, 12)
else if (tabnumber = 15) then
Coords := Point(538, 485)
else if (tabnumber <= 7) then
Coords := Point(540 + ((tabnumber -1) * 33), 185)
else
Coords := Point(540 + ((tabnumber mod 7) * 33), 485);
while not(GetCurrentTab = tabnumber) and (c < 4) do
Begin
Mouse(Coords.x, Coords.y, 20, 20, true);
Inc(c);
end;
Result := (GetCurrentTab = tabnumber);
end;
if you wanna make me happy :)

Won't it work? ;)

Oh yeah, and when it clicks on the GameTab, if it tries to click it again (when C < 4) have it do a GetMousePos and have it click that pos, not jumping around on the tab.

Works better and safer IMO.

ShowerThoughts

2008-04-29 16:29:48

Nice not going to use it because i am okay, good to see you so active

Harry

2008-04-29 19:21:16

We need MouseBox everywhere EvilChicken! ;)

Iron Man

2008-04-30 00:41:47

Don't most legit players generally click near the middle? But I guess extra anti-ban doesn't hurt :p

Would 20, 20 click it 100% each time?

IMO, MouseBox would be a better option for this, but that also requires more work than just changing the randomx and randomy in mouse.

EvilChicken!

2008-04-30 01:08:16

what about case random(3) of
0, 1: Mouse(X, Y…
1: MouseBox(..

?

Iron Man

2008-04-30 01:27:35

From: EvilChicken!
what about case random(3) of
0, 1: Mouse(X, Y…
1: MouseBox(..

?


Wouldn't that accomplish the same thing as just mousebox? Or do you want to make it click near the middle sometimes?

n3ss3s

2008-04-30 04:53:45

I did a little test on my self, as I am a white laboratory rat, and yes, it seems like that the clicks usually hit on pretty near the centre, not very much more than maybe 15-10 pixels away from it if not closer.

If we want to be damn… <the finnish thing>… there could be a new global variable in SRL for it, which by default would be maybe 15 and then click from tab centre - 15 random 15 * 2 X and same for Y…

But I don't think there is need for that.

Lol at EvilChicken's MouseBox world domination plan…

The Claw

2008-04-30 07:23:27

IMO it needs to be more. Or use MouseBox on it or something. The 8,8, Randomness on it right now is not enough.


Really? I havent seen anyone getting banned from the clicks on the gametab - if the randomness wasnt enough then it would stand to reason that every character who used a script which clicks on the gametabs would be banned, right?

Sp0rky

2008-04-30 07:42:30

From: The Claw
Really? I havent seen anyone getting banned from the clicks on the gametab - if the randomness wasnt enough then it would stand to reason that every character who used a script which clicks on the gametabs would be banned, right?


Not really, you have to consider all the options.

Maybe jagex monitor gametab clicks for their entire anti cheat system (seeing as its a vital part of the game) and narrow down people to monitor through the distance in pixels the mouse clicks from the very center? =P

On the other hand, that's completely untrue seeing as you can use the f keys.

EvilChicken!

2008-04-30 08:02:26

Gah. People, don't you realize that such minor things add up?

Harry

2008-04-30 17:45:33

I agree with The Chicken and Sp0rk's first half ;)
It all matters… even the little small things.

When I click tabs legit, I am no where near clost to the center.

EvilChicken!

2008-04-30 17:52:40

From: Iron man
Wouldn't that accomplish the same thing as just mousebox? Or do you want to make it click near the middle sometimes?


You answered your own question. Kinda.

From: Iron man
Or do you want to make it click near the middle sometimes?

n3ss3s

2008-05-01 14:02:09

It's not like I'd be revolting against making the MouseBox commit in there but for the "little things add up", - they haven't mattered before, like if you know what I mean, SRL has caused very small amount of bans and the bans have usually been from either abusing or having a bad script.

king vash

2008-05-06 20:51:06

I'm in statistics class, and I was just thinking you could generate a normallized mousebox, I'll work on it in a second but it would click mostly towards the center but occasionally further away