This is a hackish solution thrown together quickly to band-aid the problem - a better snippet will be edited in soon. If it doesn't work on your first try, stop the script and press play again.
Today's update broke SRL-6's getParameters. ogLib scripts still function correctly. Until an official patch is made to SRL-6, simply paste the following code into your script:
Simba Code:
function tIntegerArray.contains(funcID: int32): boolean;
var
funcIndex: int32;
begin
for funcIndex to high(self) do
if self[funcIndex] = funcID then
begin
result := true;
break;
end;
exit(result);
end;
function smartGetParameters(out params: tStringArray): boolean; override;
var
funcAttempts, funcIndex, funcRandom, funcResultIndex: int32;
funcExcludeList: tIntegerArray = [13, 47, 55, 75, 90, 93, 94, 95, 101, 102, 107, 109, 110, 111, 112, 113, 118, 121, 122, 125, 126, 127, 128, 129, 130, 131, 132, 133];
funcPage: string;
funcPageExplode: tStringArray;
begin
for 0 to 10 do
begin
while true do
if not funcExcludeList.contains(funcRandom := random(1, 150)) then
break;
funcPage := getPage('http://world' + toStr(funcRandom) + '.runescape.com/jav_config_beta.ws');
if pos('404 - Page not found', funcPage) = 0 then
begin
setLength(params, length(funcPageExplode := explode(#10, funcPage)));
for funcIndex to high(funcPageExplode) do
if execRegExpr('^(codebase|param)=(.+)', funcPageExplode[funcIndex]) then
begin
params[funcResultIndex] := replaceRegExpr('^(codebase|param)=(.+)', funcPageExplode[funcIndex], '$2', true);
funcResultIndex += 1;
end;
break;
end;
end;
setLength(params, funcResultIndex);
exit(true);
end;
Picture of SRL-6 SMART working: