NiteLeaf
2014-02-25 04:50:05
Hello I made an alching script but idk how to fix the 6 hr reset? ty
2014-02-25 04:50:05
2014-02-25 13:35:36
2014-02-25 21:57:03
From: Coh3n
If your script is written correctly SRL will restart SMART automatically when the login error message is found. If it's not working for you, make sure you have "if (not isLoggedIn()) then exit();" at the beginning of each procedure.
2014-02-25 23:10:43
From: NiteLeafYeah.
So if I have this the script and smart will restart? Cause I made my own login command and it just logins at the start thanks.
2014-02-25 23:18:35
From: Coh3n
Yeah.
What SRL does is check for any login errors (i.e. the messages that pop up if your player can't login) and handles each of them differently. If one of the "Game expired" messages pops up, SRL will restart SMART and log your player in.
For this to work properly, though, your script needs to properly loop through it's procedures so that if you're disconnected your script won't get stuck at the login screen. The most effective way of doing this is like I said in my last post (add if (not isLoggedIn()) then exit();) to the beginning of all your procedures.
2014-02-26 12:55:43
From: NiteLeafWell you wouldn't want to put it in your login procedure. :p That's silly. I'm talking about procedures like, findTree, chopDownTree, depositItems – functions that get called repeatedly.
When I include it in my commands it doesn't login. :(
Going to try and make my own, brb.
2014-02-26 23:58:13
From: Coh3n
Well you wouldn't want to put it in your login procedure. :p That's silly. I'm talking about procedures like, findTree, chopDownTree, depositItems – functions that get called repeatedly.
procedure Alch;
begin
if (not isLoggedIn()) then exit();
MoveMouse(467, 401);
Wait (350);
ClickMouse(467, 401, 1);
Wait (350);
MoveMouse(604, 338);
Wait (350);
ClickMouse(604, 338, 1);
Wait (350);
end
2014-02-27 00:11:54
procedure Alch;
begin
if (not isLoggedIn()) then exit();
MoveMouse(467, 401);
Wait (350);
ClickMouse(467, 401, 1);
Wait (350);
MoveMouse(604, 338);
Wait (350);
ClickMouse(604, 338, 1);
Wait (350);
end
program new;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
{$I SPS/lib/SPS-RS3.Simba}
procedure declarePlayers();
begin
setlength(players, 1);
with players[0] do
begin
loginName := '';
password := '';
isActive := true;
isMember := true;
bankPin := '';
end
currentPlayer := 0;
end;
procedure Alch;
begin
if (not isLoggedIn()) then
exit();
MoveMouse(467, 401);
Wait(350);
ClickMouse(467, 401, 1);
Wait(350);
MoveMouse(604, 338);
Wait(350);
ClickMouse(604, 338, 1);
Wait(350);
end;
begin
setupSRL;
declarePlayers;
repeat //repeat until is your loop
if not isLoggedIn() then //After it exits the alch procedure its going to re-loop and this is where it checks if you are logged in.
players[currentPlayer].login(); // If your not logged in then it will log your current player back in.
Alch;
until (false)
end.
2014-02-27 04:09:59
From: Google
procedure Alch;
begin
if (not isLoggedIn()) then exit();
MoveMouse(467, 401);
Wait (350);
ClickMouse(467, 401, 1);
Wait (350);
MoveMouse(604, 338);
Wait (350);
ClickMouse(604, 338, 1);
Wait (350);
end
All this is doing is saying if your player is not logged in exit the procedure. You need to have your login function in your loop for it to re-log you in.
So something like this.
program new;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
{$I SPS/lib/SPS-RS3.Simba}
procedure declarePlayers();
begin
setlength(players, 1);
with players[0] do
begin
loginName := '';
password := '';
isActive := true;
isMember := true;
bankPin := '';
end
currentPlayer := 0;
end;
procedure Alch;
begin
if (not isLoggedIn()) then
exit();
MoveMouse(467, 401);
Wait(350);
ClickMouse(467, 401, 1);
Wait(350);
MoveMouse(604, 338);
Wait(350);
ClickMouse(604, 338, 1);
Wait(350);
end;
begin
setupSRL;
declarePlayers;
repeat //repeat until is your loop
if not isLoggedIn() then //After it exits the alch procedure its going to re-loop and this is where it checks if you are logged in.
players[currentPlayer].login(); // If your not logged in then it will log your current player back in.
Alch;
until (false)
end.
2014-05-29 09:11:28
From: hackingislol133
I'm looking at my memory footprint and it seems that it gradually increases, while loading a DTM I'm guessing.
I've freed them in every procedure they need to be freed at but the memory usage still increases.
Are there any common memory leak traps I should be aware of?
2014-05-29 16:10:29