First, download the newest SRL-OSR include, rename it to SRL-OSR and place it in the Includes folder. In the end the directory will look like this: "C:/Simba/Includes/SRL-OSR/" and inside that will be a few folders like "doc, logs, SRL, tools" ect... That's for installing SRL-OSR.
Next, for a script to correct detect random events (and handle them if possible) 3 key factors are required. The first is using a nickname correct in your script. Inside DeclarePlayers you should have a nickname (usually 3-5 characters long) that is unique to your player name (although playername & password are not required for solving random events). For example, if your account name was "Woodcutter99" a good nickname to use would be "ter9", because "Woodcut[ter]" might be said a lot in the public chat, which would trigger SRL to find whoever used that text.
The second factor is correctly passing your nickname along to SRL. For this to be done right, DeclarePlayers must be called BEFORE SetupSRL; in the script. Example:
Simba Code:
Program SlayingYews;
{$i SRL-OSR/SRL.Simba}
Procedure declarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'Woodcutter99';
Pass := 'jacmobhasnoskill';
Nick := 'ter9';
Pin := '';
LampSkill := Skill_Woodcutting;
WorldInfo := [];
Member := True;
Active := True;
end;
end;
begin
declarePlayers; // Must come before...
SetupSRL;
end.
And last, the script must be constantly calling "FindNormalRandoms" as much as possible. In every loop that you have and after any place you tell the script to click or choose an option, call FindNormalRandoms.
I hope that helps.