Results 1 to 15 of 15

Thread: Skill Scanning

  1. #1
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Skill Scanning

    Hello! Hope i've posted this in the right section.

    I need some help with "skill scanning", since i am in the makeing of a bot that can "scan" what skills you have, and PostHttp (make it scan it, and ship it to my website) in order to make a control panel for my 20 VM's :P (like heartbeats)
    I know that SRL have some funktions which are able to read skills, so i don't have to bitmap 99 runescape numbers :S and change it everytime they make a small adjustment.

    Thank you!

  2. #2
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    GetSkillLevels might be exactly what you're looking for
    I made a new script, check it out!.

  3. #3
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cool is that an SRL funktion? or this "reflection"? i've heard alittle about it, but not intirely sure.
    And how do i use it? (sorry for being alittle nooby, but if you could link some guide it would be nice!)

  4. #4
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    It's in SRL, and not Reflection. Check out the GameTab.scar for more functions, such as GetSkillInfo, GetXP, and, GetAllLevels.

    Richard.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  5. #5
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    If you're looking for something that can find out every skill level in fraction of a second and upload it, better choice would be to use reflection as it simply accesses memory instead of doing a human-like search.

  6. #6
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    If he wants to use it right this second, he's going to need colour..

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  7. #7
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Doese anyone of them tend to fail, or get the WRONG numbers on anyhow?

    I've tried it out with a simple one:

    program GetPrayer;
    {.include SRL/SRL.scar}
    begin
    GetSkillLevel('prayer');
    end.

    it just moves the mouse to the top, and holds it there for about 30 seconds?
    /thanks for the answers!

    ------------------------------
    another thing, is it posible to "scan" questes and banks too?
    Last edited by Cartmann; 09-10-2009 at 09:49 PM.

  8. #8
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    You didn't call SetupSRL.

    SCAR Code:
    program GetPrayer;
     {.include SRL/SRL.scar}

     begin
      SetupSRL;
      WriteLn(IntToStr(GetSkillLevel('prayer'));
     end.

    Also, using the script you posted would not show if it worked or not, so I added a WriteLn.

    Richard.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  9. #9
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oki, i've tried it out. There seems to be abit of trouble thouge :S?
    I used this script to test it out with:

    program GetPrayer;
    {.include SRL/SRL.scar}
    begin
    SetupSRL;
    WriteLn(IntToStr(GetSkillLevel('Attack')));
    WriteLn(IntToStr(GetSkillLevel('Strength')));
    WriteLn(IntToStr(GetSkillLevel('Defence')));
    WriteLn(IntToStr(GetSkillLevel('Hitpoints')));
    end.
    First of all it was VERY slow, it dind't remove the SCAR tab as ursually, but after around 30-40 seconds, it started to move the mouse quick towards the right, and back left, and write the "skill lvl" down in my debug, this was done with around 10-15 sec. in between.
    The major problem wasn't the speed, but it got all 4 numbers wrong , here's the debug

    New client targeted
    Successfully compiled (2055 ms)
    SRL Compiled in 15 msec
    0
    0
    0
    0
    Successfully executed
    The answers should have been "13, 22, 1, 18"

    /Thanks!

  10. #10
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    I can't see why that won't work Just try this instead:

    SCAR Code:
    program GetPrayer;
     {.include SRL/SRL.scar}

    var
      S : TIntegerArray;
      I : Integer;

    begin
      SetupSRL;
      SetLength(S, 4);
      S[0]:= (GetSkillLevel('Attack'));
      S[1]:= (GetSkillLevel('Strength'));
      S[2]:= (GetSkillLevel('Defence'));
      S[3]:= (GetSkillLevel('Hitpoints'));
      for I:= 0 to 3 do
        WriteLn(IntToStr(S[i]));
    end.

    Richard.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  11. #11
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've tried that version instead, it's now much faster to obtain the numbers, even thouge i have to manually remove the tab. But it's still showing some wrong numbers,
    3 - should have been 13
    22 - right on!
    1 - right on!
    8 - should have been 18
    /thanks

  12. #12
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Have you got the latest version of SCAR and SRL? I think the problem is down to the text fonts changing.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  13. #13
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    By the way, after reflection is updated, check Reflection's gametab.scar since its probably much better. There are a lot of great function's in reflection such as:

    SCAR Code:
    {*******************************************************************************
    function IsQuestCompleted(s: string): Boolean;
    By: lordsaturn
    Description: Returns true if the first quest containing the given string is completed.
    *******************************************************************************}

    function IsQuestCompleted(s: string): Boolean;
    begin
      Result := GetQuest(s).Completed;
    end;

    SCAR Code:
    {*******************************************************************************
    function GetMySkill(Skill: Integer; Level: Boolean): Integer;
    By: Nava2
    Description: Dependant on Level, will return the Top level if true, or the xp
                 if false. Will return the skill number Skill.
    *******************************************************************************}

    function GetMySkill(Skill: Integer; Level: Boolean) : Integer;

    begin
      if (not InRange(Skill, 0, 23)) or not R_LoggedIn then
      begin
        SRL_Warn('GetMySkill', 'Wrongly inputted integer in skill, or not logged in.', Warn_AllVersions);
        Result := -1;
        Exit;
      end;
      if Level then
        Result := SmartGetFieldArrayInt(0, MaxLevels, Skill)
      else
        Result := SmartGetFieldArrayInt(0, Experiences, Skill);
    end;

    Note: For GetMySkill, it doesn't have to switch gametabs, since reflection reads the client

    Good Luck

  14. #14
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Awesome, thanks, i will try this out when i´ve read the tut on reflection, and post my result here

    btw, im useing Scar 2.21 downloaded from frank1990 website, and it's auto downloading the newest SRL.

    /thanks

  15. #15
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Cartmann View Post
    Awesome, thanks, i will try this out when i´ve read the tut on reflection, and post my result here

    btw, im useing Scar 2.21 downloaded from frank1990 website, and it's auto downloading the newest SRL.

    /thanks
    Get 3.22 Alpha and use the SRL OpenDev

    For more information, see this tutorial
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

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
  •