Presenting: interception v0.1a
(Suggestions for a cooler name welcome. As opposed to reflection, which reflects RS client variables, interception intercepts data being sent to the graphics card)
This is some very rough proof of concept of code. This should not be used in a bot in it's current form.
Feedback wanted! Tell me if it crashes, breaks or doesn't work as expected. Tell me what (basic) features you'd like to see implemented.
Usage:
1. Set your gfx to the following: (After chaging these settings, you need to close down RS and start it again)
http://i49.tinypic.com/24v1rp2.png
Fog needs to be on! This is confirmed.
2. Install the plugins: (do this once)
- Place ogl_plugin2.dll in your SCAR plugins folder.
- Place opengl32.dll in "C:\Program Files\Java\jre6\bin" or equivalent.
3. Then, in this exact order:
- Close down SCAR and any instance of RS you have open (i.e. your browser).
- Start up RS (normal client, not SMART, but in IE/firefox) in HD mode. Wait for login screen to appear.
- Start up SCAR.
- Create a SCAR script, e.g. below.
- Run the script! If you try and start SCAR before RS has fully loaded it will probably crash out. This will be fixed later on.
Example SCAR script. Moves the mouse to a banker in East Varrock. Will probably work for other bankers too. IDs of each model is the number that floats above in game.
SCAR Code:program New;
{.include srl/srl.scar}
var
x,y: integer;
begin
SetupSRL;
if(FindModelByID(x,y, 588752808)) then
begin
MMouse(x, y, 0, 0);
Writeln('x=' + IntToStr(x) + ', y=' + IntToStr(y));
end else
begin
Writeln('Model not found.');
end;
end.
FindModelByID prototype:
Returns true if model with ID specified is found and false if not found. If found, x,y coords placed in x and y. Else contents of x,y should be ignored.SCAR Code:function FindModelByID(var x, y: integer; id: integer): boolean;
Finding IDs of models:
- Press numpad 5 to enable overlays
- Press numpad 7, 8, 9 and nine to choose different strides. Don't worry what a stride is, this just breaks the models up into groups so it's less cluttered on screen.
- If the ID of the model you want isn't displayed, try a different stride.
Here's an example:
http://i45.tinypic.com/27zf4g5.png
I pressed 5 to enable overlays, then pressed numpad 9 to find the ID of the bank booth (35240154) under stride 24.
Warning: The drawing of overlays could, at least in the future, be detectable. While I doubt this would currently be detected, especially at this time, it will be good practice to only draw overlays when you're on a character you don't mind getting banned!
Bugs/features to come:
- Returning coords of the centre of the model, not the first vertex
- Running multiple clients at once
- Finding ground and world models
- Function to return array of all models found, instead of just one
- Make it work without needing fog on
- Bringing up the world map and closing it breaks interception
Testers so far:
Working:
nielsie95
marpis
The Man
Infantry001
Iroki
Lancelot074
r!ch!e
mormonman
J_Pizzle
Home
bbri06
Runescape Pro
The Claw
Not working:
TRiLeZ
Smarter Child
Timer - SCAR plugin - function not found
Have fun :)

