From: Nufineek
Thanks! Alright here's my setup
Procedure Setup
var
bmp, time: integer;
t: TTimeMarker;
begin
clearDebug();
initPlayerForm();
runPlayerForm();
if (not playerForm.isScriptReady) then
terminatescript;
declarePlayers();
smartEnableDrawing := true;
SRL_Events[EVENT_ANTIBAN] := @antiban;
setupSRL();
if DIRECT_X then
smartPlugins := ['d3d9.dll'];
if not isLoggedIn() then
begin
players[currentPlayer].loginToLobby();
t.start;
time := 50000;
repeat
if players[currentPlayer].loginToLobby() then
break;
wait(5000);
writeln('Waiting for lobby');
until false;
if lobby.quickSelectWorld(96) then
begin
t.start;
time := 50000;
repeat
if isLoggedIn then
begin
conversationBox.continue(true, true);
terminateScript;
end;
wait(4000);
writeln('waiting to login');
until false;
end else
terminateScript;
end;
minimap.clickCompass();
mainScreen.setAngle(MS_ANGLE_HIGH);
tabBackpack.Open;
findNormalrandoms;
bir := 30;
bfr := 7;
W := (players[currentPlayer].integers[0] * 60000);
X := (players[currentPlayer].integers[1] * 60000);
Y := randomRange(-BIR * 60000, BIR * 60000);
Z := randomRange(-BFR * 60000, BFR * 60000);
disableSRLDebug := true;
bmp := bitmapFromClient(0, 0, getClientBounds().x2 -1, getClientBounds().y2 -1);
clickedPot := DTMFromString('mlwAAAHicY2dgYJjKxMDQD8S9QNwNxDOAeC4QzwZidiDmB2IJIFYEYlUglgZiPiD+//8/TowPMOLBUAAA1LIZvw==');
clickedHerb := DTMFromString('mlwAAAHicY2dgYDBjYmDQB2J1ILYEYj0gdgJiZyDezsjAsAuIDwHxeSA+DcQngHg3EP///x8nxgcY8WAoAABsWBvX');
freeBitmap(bmp);
addOnTerminate('__freeMinimapMask');
addOnTerminate('freeDTMz');
end;
Hmm I'm not seeing anything out of the ordinary. DeclarePlayers is before SetupSRL() like I do in my scripts, and the form is before both of those like it should be. Is this "player inactive" error happening at the very start of the script? If so, then I'm not sure exactly what is causing it.
If it's happening during runtime, it could be a couple things. It could be the script is setting the player to inactive due to a bug that happened and then it can't log in because there's no active players. It could also be that the logging in portion is messing up, you mentioned putting user and pass on the same line. That would set your player to inactive, because the login couldn't work. If you have a laggy computer, it's possible that it's causing either of these bugs.
Is this your script and/or how old is it? Just off-hand, I see a lot of functions which aren't even required, like findNormalRandoms. I know that SRL automatically picks worlds now too if you have Players
.world set in the declarePlayers portion. It seems like a lot of old practices.
If this is a currently supported script I'd suggest posting in the relevant thread and asking for help and the script owner might have more idea of what's happening in the script. If it's your script I'd suggest looking through to make sure you aren't getting set inactive for whatever reason during runtime.