PDA

View Full Version : Help keep me logged in !



Gama-Bomb
12-15-2009, 01:25 PM
Ok, so currently I am afk training at bandits using guthans. I am searching for a script that will basically click the skills tab and hover over defence every 2 - 4 minutes in combination with other simple clicking procedures such as click on the friends list tab, inventory etc. I'm not looking the clicks to be too frequent, as mentioned before, every 2 - 4 minutes, enough to keep me logged in. Cup/weight on arrow keys/space bar/enter key will not work anymore. Anyone help me out ?

Floor66
12-15-2009, 01:32 PM
This is too easy to request ;p But hell... I'll post it:

Program New;
{.include SRL/SRL.scar}

Var
t : Integer;

Procedure AntiLogout;
Begin
If Not LoggedIn Then
Begin
WriteLn('Player has logged out!');
TerminateScript; //stops the script
End;
Case Random(20) Of //creates a random number from 0 to 19 (-NOT- 0 to 20!)
0: HoverSkill('defense', False); //if that random number was 0, do this
10: BoredHuman;
11: RandomMovement;
//Add more if you like. I advise you to look in SRL/SRL/Core/AntiBan.scar!
End;
MarkTime(t);
End;

Begin
SetupSRL;
MarkTime(t);
Repeat
If TimeFromMark(t) < RandomRange(2 * 60 * 1000, 4 * 60 * 1000) Then //does AntiLogout every 2~4mins!
AntiLogout;
Until(Not LoggedIn);
End.

Awkwardsaw
12-15-2009, 01:34 PM
begin
repeat
case random(7) of
0..3 : wait(1000 + random(2000));
4 : gametab(random(14));
5 : makecompass(randomrange(-360, 360));
6 : boredhuman;
7 : wait(5000 + random(2000));
end;
wait(5000 + random(10000));
until isfkeydown(12);
end;

;)

edit: ninja'd :(

Floor66
12-15-2009, 01:38 PM
Aha! Touché, mon frère. Mine looks better bwahahaha :p

Gama-Bomb
12-15-2009, 01:52 PM
Appreciated. Thanks very much.

Gama-Bomb
12-15-2009, 02:25 PM
Ok, apologies for my lack of knowedge. It has been over a year from I last used SCAR, anyway, that script, Floor, gives me the following error ;


Line 51: [Error] (330:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files\SCAR 3.22\includes\SRL\SRL\Core\Math.scar

I am pretty sure I know how to resolve this error, only problem is that that when I open the includes folder at the SCAR install directory there is no SRL folder, even though the error is opening a file from that directory. There is ony 1 file inside the includes folder, a text file named Placeholder. Has something changed in the past year I am not aware of ?

Gama-Bomb
12-15-2009, 02:32 PM
Located the folder sarching for it and moved plugins, still receiving that error, I thought moving plugins would resolve it .

Quickmarch
12-15-2009, 03:11 PM
Once you moved the plugins, did you restart SCAR?

Gama-Bomb
12-15-2009, 03:30 PM
I did restart SCAR, still receiving the error.

Steps Taken
- SRL cleared re-dloaded and installed
- Plugins re-dloaded and SRL plugins added
- SCAR restarted after above 2 steps taken

Still no resolve.

Gama-Bomb
12-15-2009, 03:44 PM
Problem resolved, and I feel like an idiot. This may help resolve other peoples problems, especially Vista users. SCAR was not set to run as administrator, therefore it was unable to function correctly. Thanks for the help.

Baked0420
12-15-2009, 07:18 PM
This is too easy to request ;p But hell... I'll post it:

Program New;
{.include SRL/SRL.scar}

Var
t : Integer;

Procedure AntiLogout;
Begin
If Not LoggedIn Then
Begin
WriteLn('Player has logged out!');
TerminateScript; //stops the script
End;
Case Random(20) Of //creates a random number from 0 to 19 (-NOT- 0 to 20!)
0: HoverSkill('defense', False); //if that random number was 0, do this
10: BoredHuman;
11: RandomMovement;
//Add more if you like. I advise you to look in SRL/SRL/Core/AntiBan.scar!
End;
MarkTime(t);
End;

Begin
SetupSRL;
MarkTime(t);
Repeat
If TimeFromMark(t) < RandomRange(2 * 60 * 1000, 4 * 60 * 1000) Then //does AntiLogout every 2~4mins!
AntiLogout;
Until(Not LoggedIn);
End.


every 2-4 mins it does antilogout, but it's case random(20) of with 0, 10, 11, I bet it'd logout right away, cause it will wait the time, then do antilogout, do nothing, then logout since it's a 3 in 20 chance of doing something every 2-4 mins. He wants it to always doing something every 2-4 mins, not maybe do something, at least that's how it sounded to me.

Floor66
12-15-2009, 07:57 PM
Oh yeah crap :p
Better:

Program New;
{.include SRL/SRL.scar}

Var
t : Integer;

Procedure AntiLogout;
Begin
If Not LoggedIn Then
Begin
WriteLn('Player has logged out!');
TerminateScript; //stops the script
End;
Case Random(3) Of //creates a random number from 0 to 19 (-NOT- 0 to 20!)
0: HoverSkill('defense', False); //if that random number was 0, do this
1: BoredHuman;
2: RandomMovement;
//Add more if you like. I advise you to look in SRL/SRL/Core/AntiBan.scar!
End;
MarkTime(t);
End;

Begin
SetupSRL;
MarkTime(t);
Repeat
If TimeFromMark(t) >= RandomRange(2 * 60 * 1000, 4 * 60 * 1000) Then //does AntiLogout every 2~4mins!
AntiLogout;
Until(Not LoggedIn);
End.