SRL Archive - OSR Help

SMART closes


TsterT

2012-02-10 19:48:27

Every time I stop, and then restart my script while SMART is still opens, it closes after starting the script again, and launches a new one. It causes Simba to crash often.

I'm assuming it has to do with the loop and all, so here's this:

begin
SetupSRL;
DeclarePlayers;
LogInPlayer;
ClearDebug;
DeclareVars;
players[CurrentPlayer].loc := 'Walking to Bank';
proggy(players[CurrentPlayer].loc);
repeat
NextStep;
AntiBan;
if PrayerPoints < 150 then
Eat('Prayer');
if HPPercent < 50 then
Eat('Food');
until(false);
end.

YoHoJo

2012-02-10 19:50:04

Yeah I'm familiar with that happen, all you need to do is put
Smart_Server := 30;
SMART_Signed:=True;
SMART_Members:=False;

BEFORE SetupSRL; and problem solved!
Don't worry it doesn't load server 30 actually, just the lowest ping server for you.

TsterT

2012-02-10 20:01:10

Well that was a simple fix. Thanks!