SRL Archive - Research & Development Lounge

Detecting worlds 85-86 with reflection?


Xenobitz

2014-04-03 14:17:59

Jagex is reconnecting bots to worlds 85 and 86. Is there a variable I can check using reflection to know what world I'm on so that I can hop?

Just need to know the variable, I'll write the antiban func myself :)

Frement

2014-04-03 14:39:30

function R_GetWorld: Integer;
begin
Result := SmartGetFieldInt(SmartCurrentTarget, 0, 'client.l') * -681835181;
end;

Will break when hooks change. (Just updated today so should take a while)

Xenobitz

2014-04-03 15:37:42

 function R_areWeFlagged: Boolean;
var
currentWorld : Integer;
begin
currentWorld : SmartGetFieldInt(SmartCurrentTarget, 0, 'client.l') * -681835181;
Result := if ((currentWorld = 385) or (currentWorld = 386));
end;

Yeah?

Turpinator

2014-04-03 16:11:20

From: Xenobitz
 function R_areWeFlagged: Boolean;
var
currentWorld : Integer;
begin
currentWorld : SmartGetFieldInt(SmartCurrentTarget, 0, 'client.l') * -681835181;
Result := if ((currentWorld = 385) or (currentWorld = 386));
end;

Yeah?


function R_areWeFlagged: Boolean;
var
currentWorld : Integer;
begin
currentWorld : SmartGetFieldInt(SmartCurrentTarget, 0, 'client.l') * -681835181;
Result := (currentWorld = 385) or (currentWorld = 386);
end;

Close.

Frement

2014-04-03 17:14:54

function R_Flagged: Boolean;
begin
Result := ((SmartGetFieldInt(SmartCurrentTarget, 0, 'client.l') * -681835181) - 384) > 0;
end;

Close.

@Turpinator;

Turpinator

2014-04-03 21:30:01

From: Frement
function R_Flagged: Boolean;
begin
Result := ((SmartGetFieldInt(SmartCurrentTarget, 0, 'client.l') * -681835181) - 384) > 0;
end;

Close.

@Turpinator;



err. are there no worlds greater than 86? well then thatd be better.

Frement

2014-04-04 03:53:35

From: Turpinator
err. are there no worlds greater than 86? well then thatd be better.


Yeah there aren't, also if they decide to add more of these worlds where bots are transferred, then the function should detect those too.