Page 1 of 13 12311 ... LastLast
Results 1 to 25 of 321

Thread: [OGL] interception v0.1

  1. #1
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [OGL] interception v0.1

    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)

    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:

    1. Close down SCAR and any instance of RS you have open (i.e. your browser).
    2. Start up RS (normal client, not SMART, but in IE/firefox) in HD mode. Wait for login screen to appear.
    3. Start up SCAR.
    4. Create a SCAR script, e.g. below.
    5. 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:
    SCAR Code:
    function FindModelByID(var x, y: integer; id: integer): boolean;
    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.


    Finding IDs of models:
    1. Press numpad 5 to enable overlays
    2. 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.
    3. If the ID of the model you want isn't displayed, try a different stride.


    Here's an example:

    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

  2. #2
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Awesome! Gotta test it asap!
    I assume it works with SMART too?
    Is figuring the IDs complicated?

    E: Unknown identifier 'FindModelByID'
    both dlls are in the plugins folder.
    Last edited by marpis; 01-23-2010 at 10:37 PM.

  3. #3
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I haven't tried it with SMART, but I assume it will. IDs are simple

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Sweet and awesome!
    Any way we ourselves can find IDs of npcs/objects? Like have numbers displayed on top of objects? Like, how did you find that banker ID, how can we find our own?
    Thanks so much, cant wait woo woo.

    Edit: MoveMoveSmooth is 'detectable' not sure if just using it once will get you banned, but better to .include srl.scar and use MMouse instead

  5. #5
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Any way we ourselves can find IDs of npcs/objects? Like have numbers displayed on top of objects? Like, how did you find that banker ID, how can we find our own?
    Here's what RS looks like when you log in:


    Hope this is self explanatory

    The overlay will be able to be toggled on and off in a future version.

  6. #6
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Sweet and awesome!
    Any way we ourselves can find IDs of npcs/objects? Like have numbers displayed on top of objects? Like, how did you find that banker ID, how can we find our own?
    Thanks so much, cant wait woo woo.

    Edit: MoveMoveSmooth is 'detectable' not sure if just using it once will get you banned, but better to .include srl.scar and use MMouse instead
    Yea, replace the testscript with this.

    E: Oh, I read the instructions now I'mma try it again.

    SCAR Code:
    program New;
    {.include srl/srl.scar}
    var
       x,y: integer;
    begin
       FindModelByID(x,y, 588752808);
       MMouse(x, y, 0, 0);
       Writeln('x=' + IntToStr(x) + ', y=' + IntToStr(y));
    end.

  7. #7
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Amazing
    How can we find our own ID's ?
    Edit: Should refresh page before posting :/

  8. #8
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Very nice! I'll test when I get a chance

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  9. #9
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by r!ch!e View Post
    Amazing
    How can we find our own ID's ?
    Edit: Should refresh page before posting :/
    Read 2? posts up.
    Apparently when you login, all IDs are displayed on top of the NPC's heads.

    SilentWolf, so bla bal talk about Jagex being able to see whats on our screen, is the ID 'painting' done on a layer above the actual runescape client?

  10. #10
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    E: Unknown identifier 'FindModelByID'
    both dlls are in the plugins folder.
    Are you using the SVN SCAR pre release version?

  11. #11
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    SilentWolf, so bla bal talk about Jagex being able to see whats on our screen, is the ID 'painting' done on a layer above the actual runescape client?
    Commands are effectively injected after RS has sent information to the GFX card. Jagex couldn't detect this. But I believe it would be possible to read back what has been drawn (i.e. similar to taking a screenshot).

  12. #12
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by silentwolf View Post
    Are you using the SVN SCAR pre release version?
    Yeah, v. 2.32. Although the error suggests that the name of the function is different in your plugin, or not correctly exported.

    I also moved the other plugin to Java folder, still doesn't work.

  13. #13
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    Yeah, v. 2.32. Although the error suggests that the name of the function is different in your plugin, or not correctly exported.

    I also moved the other plugin to Java folder, still doesn't work.
    v3.23

    This is a little odd. What version of windows do you have?

  14. #14
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by silentwolf View Post
    v3.23

    This is a little odd. What version of windows do you have?
    Vista. Are you sure the ogl_plugin2.dll has a function "FindModelByID"?
    And I also don't see anything drawn to my screen (the IDs)

  15. #15
    Join Date
    May 2007
    Location
    Sydney, Australia (Faggot Region)
    Posts
    1,465
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Post Source?


  16. #16
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    32bit? My SCAR plugin is massively hacky, but works for me. I'm not quite sure what to suggest at the moment. Does anyone else have it working?

    Out of interest, have you placed opengl32.dll in the java bin folder? Do overlays get drawn correctly?


    Quote Originally Posted by Simtoon View Post
    Post Source?
    Later. It's currently too buggy and messy to release, especially if people who read it aren't familiar with OGL hacks

  17. #17
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by silentwolf View Post
    32bit? My SCAR plugin is massively hacky, but works for me. I'm not quite sure what to suggest at the moment. Does anyone else have it working?

    Out of interest, have you placed opengl32.dll in the java bin folder? Do overlays get drawn correctly?



    Later. It's currently too buggy and messy to release, especially if people who read it aren't familiar with OGL hacks
    Yea, the opengl32.dll is in the Java/jre/bin/ or something like that.
    PM me the sauce if you don't want to publish it yet, I take a quick look to it if I find something wrong.

  18. #18
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    This will still work on 64bit systems, correct?

  19. #19
    Join Date
    Jan 2010
    Location
    UK
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I see no reason for it not to work in 64bit. SCAR is 32bit 'emulated' right?

    marpis, this is the code I'm using for the plugin: http://www.villavu.com/forum/showpos...&postcount=138

    Minus a bit to interface with the opengl plugin, which is irrelevant to the error your getting.

    Has anyone actually got it working yet?

  20. #20
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by silentwolf View Post
    I see no reason for it not to work in 64bit. SCAR is 32bit 'emulated' right?

    marpis, this is the code I'm using for the plugin: http://www.villavu.com/forum/showpos...&postcount=138

    Minus a bit to interface with the opengl plugin, which is irrelevant to the error your getting.

    Has anyone actually got it working yet?
    You'll learn fast that little testing happens in members :P. We're quite the lazy group

  21. #21
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    You'll learn fast that little testing happens in members :P. We're quite the lazy group
    Don't say that
    This is definitively something I'll test, even though I rarely do

  22. #22
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Set everything up. Im getting
    Unknown identifier 'FindModelByID'
    Meaning something's up with the plugin (for scar) most likely.

  23. #23
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Yeah, I get the error too
    I'll test when I wake up in ~7 hours

  24. #24
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This looks very good, glad you are a man of your word. Will take a look at this tomorrow

  25. #25
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    does the have to be used in HD?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

Page 1 of 13 12311 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •