SRL Archive - OSR Help

editting scripts.


Shenzi

2013-06-01 14:02:18

so basically.. i was messing round editting scripts (i take no credit for the scripts and that)


Begin


RequirementsCheck;
{$IFDEF SMART}
SRL_SixHourFix := True;
Smart_FixSpeed := True;
{$ENDIF}
ClearDebug;
SetupSRL;
SmartSetRefresh(100);

DeclarePlayers;
AddOnTerminate('ReleaseDTMs');
DefineVars;

If (Not LoggedIn) Then
Begin
Writeln('Not In-Game Trying Log-In');
If Not WaitLoggedIn(1000) Then
Begin
LoginPlayer;
Wait(1583+Random(3293));
ClickNorth(SRL_ANGLE_HIGH);
Wait(1583+Random(1293));
ToggleXPBar(True);
MarkTime(PlayerActivityTimer);
End;
End;


If Not FireOrb then
TerminateScript;
FirstRun := True;
SPS_Setup(RUNESCAPE_OTHER,['TurpOrbsV2']);
FindNormalRandoms;
ToggleActionBar(True);
ReturnToBank;


Repeat

//AntiBan;
BankTaverley;
WalkToObelisk;
ChargeOrbs;
ReturnToBank;
Inc(RunCount);
Report;
If (Not LoggedIn) Then
Begin
Writeln('Not In-Game Trying Log-In');
If Not WaitLoggedIn(1000) Then
Begin
LoginPlayer;
Wait(1583+Random(3293));
ClickNorth(SRL_ANGLE_HIGH);
Wait(1583+Random(1293));
ToggleXPBar(True);
MarkTime(PlayerActivityTimer);
End;
End;
Until false
End.

it doesn't log in if it's logged out haha. (also doesn't bypass the 6hours)
i know it's not neat and sht, i'm sorry, forgive me pls (i took some stuff out that i editted in)
it logs in and works if i click the stop/play button. :(

rj

2013-06-01 14:07:03

Why does it have 2 login checks in the same block did you add that? And did you add the loop at the bottom that does the same thing as the top?

Shenzi

2013-06-01 14:09:58

From: Officer Barbrady
Why does it have 2 login checks in the same block did you add that? And did you add the loop at the bottom that does the same thing as the top?


oops. yeah i didn't mean to add it twice, lol. which one should i remove ? the first?

not sure what you mean by the last bit, this is the bottom loop. i haven't posted the rest of the script 'cause that works all cool.

it's just the 6 hours i'm trying to figure out why it doesn't log back in :( haha

rj

2013-06-01 14:14:17

From: Shenzi
oops. yeah i didn't mean to add it twice, lol. which one should i remove ? the first?

not sure what you mean by the last bit, this is the bottom loop. i haven't posted the rest of the script 'cause that works all cool.

it's just the 6 hours i'm trying to figure out why it doesn't log back in :( haha


Po I see what you did the first one wasn't in the main loop, in each procedure does it exit if not logged In? It cold be trying to find s stung while not logged in, you could make it exit the procedure and go back t the loop by doing

If (not logged) in then exit

Shenzi

2013-06-01 14:20:53

so, if i changed it too…

 
Repeat
BankTaverley;
Exit;
If (Not LoggedIn) Then
Begin
Writeln('Not In-Game Trying Log-In');
If Not WaitLoggedIn(1000) Then
Begin
LoginPlayer;
Wait(1583+Random(3293));
ClickNorth(SRL_ANGLE_HIGH);
Wait(1583+Random(1293));
ToggleXPBar(True);
MarkTime(PlayerActivityTimer);
End;
End;
Until false

so if i did something like that, it'd work?
there isn't 'If not logged in' in every procedure only in the loop.

rj

2013-06-01 14:22:01

From: Shenzi
so, if i changed it too…

 
Repeat
BankTaverley;
Exit;
If (Not LoggedIn) Then
Begin
Writeln('Not In-Game Trying Log-In');
If Not WaitLoggedIn(1000) Then
Begin
LoginPlayer;
Wait(1583+Random(3293));
ClickNorth(SRL_ANGLE_HIGH);
Wait(1583+Random(1293));
ToggleXPBar(True);
MarkTime(PlayerActivityTimer);
End;
End;
Until false

so if i did something like that, it'd work?
there isn't 'If not logged in' in every procedure only in the loop.


No add it inside the procedure, why do you need edit the script anyway? Is it broken?

Shenzi

2013-06-01 14:24:40

From: Officer Barbrady
No add it inside the procedure, why do you need edit the script anyway? Is it broken?


oright, thanks ^^
and it's not 'broken' … it works to an extent.
like sometimes the colours mess up + the 6 hour doesn't work at all so trying to correct that.
so i've just been playing 'round with the colours and tolerance and such :) haha.

rj

2013-06-01 14:26:04

From: Shenzi
oright, thanks ^^
and it's not 'broken' … it works to an extent.
like sometimes the colours mess up + the 6 hour doesn't work at all so trying to correct that.
so i've just been playing 'round with the colours and tolerance and such :) haha.


The change those lol, also contact the script writer @Turpinator

Shenzi

2013-06-01 14:29:48

From: Officer Barbrady
The change those lol, also contact the script writer @Turpinator


i've already been speaking with him :p
he made some changes which helped. but some keep messing up :( lol