SRL Archive - SRL Snippets

Friend Check [Antiban] [Snippet]


Ian

2012-11-12 14:38:53

I thought of a new antiban procedure, so feel free to add it to your scripts. I suggest not calling this one often, but maybe when you log in or before you log out. Here it is:
Procedure CheckFriends;  //An Antiban Procedure by BMWxi

Var
NCx, NCy, ONx, ONy :Integer;
begin
gametab(tab_friends); //Goes to friends tab
If FindColorTolerance(NCx, NCy, 16683035, 546, 246, 722, 451, 5) Then // Checks if they have changed names,
begin // if they have, It hovers to find their new name.
MMouse(NCx, NCy, 5, 5);
Wait(RandomRange(1000, 2000));
end;
If FindColorTolerance(ONx, ONy, 6619135, 546, 246, 722, 451, 5) Then //Checks to see if friends are online
begin //hovers the names of online friends
MMouse(ONx, ONy, 5, 5);
Wait(RandomRange(1000, 2000));
end else
begin
Wait(RandomRange(500, 1000)); //I added this so It doesn't spam-exit when you have no friends :p
end;
FTab(tab_Inv); //Returns to inventory
end;
Hopefully people think this is useful :p

Laimonas171

2012-11-12 14:46:14

From: BMWxi

Hopefully people think this is useful :p


hehe nice, I already use "quite the same" on my private script :D

edit: also you can use it at antiban as well, more then just then you log in etc. but no to often.. it may look like you waiting for friend to logged in :D (thats how i use mine)

Le Jingle

2012-11-12 14:53:19


{$i srl/srl/misc/friends.simba}

Might help with some friends tab antiban :)
(Don't know if it's up to date)

Like the antiban idea, can never have too much of it!

Chris Reborn

2012-11-12 14:58:44

looks good!

The Killer

2012-11-12 15:26:52

I check that often when legiting so this is propply going in a future script :p

Ian

2012-11-12 15:35:21

Yeah, I was just working on a power miner and realized that had very little antiban, so I tried to think of things I'd do while playing :)

Olly

2012-11-13 00:00:00

Why not use gametab(tab_friends) and before starting i would suggest getting the current tab then changing back to tab after you are done.

Ian

2012-11-13 00:05:48

From: Ollybest
Why not use gametab(tab_friends) and before starting i would suggest getting the current tab then changing back to tab after you are done.


That's a good idea, thanks!