Results 1 to 10 of 10

Thread: EXP getter

  1. #1
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default EXP getter

    Does SRL have an inbuild function to get the experiance of a certian level (thieving)?
    And then save it into a variabe.

    Thanks
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    The function GetXP in GameTab.scar should be what you're looking for.
    :-)

  3. #3
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So it would be

    EXP:= GetXP('Thieving')
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  4. #4
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    heres an example:
    SCAR Code:
    Players[CurrentPlayer].integers[2] := GetSkillInfo('prayer', False);
     writeln('Players Prayer level is ' + IntToStr(Players[CurrentPlayer].integers[2]));

    Edit: sorry thats for the level..if you want it.

  5. #5
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Then i get

    Failed when compiling
    Line 854: [Error] (1971:14): Unknown identifier 'Volume' in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/GameTab.scar
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  6. #6
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 05hartor View Post
    Then i get
    you probly hear it alot but are you up to date?

  7. #7
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;
    {.include srl/srl.scar}
    Var
     Exp : Integer;

    begin
    Exp:=GetXP('thieving');
    end.

    That should work.

  8. #8
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dont i need the gametab include?

    Quote Originally Posted by d1s3l View Post
    you probly hear it alot but are you up to date?
    Should be, 3.15b, 28 rev
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  9. #9
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nope, gametab is included with SRL.scar.

  10. #10
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Did you remember to put SetupSRL; as the first line of your script?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Charm getter(request)
    By weequ in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 01-24-2008, 10:03 PM
  2. World 1 Getter!
    By Lalaji in forum RS3 Outdated / Broken Scripts
    Replies: 4
    Last Post: 06-07-2007, 07:20 PM

Posting Permissions

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