Page 1 of 2 12 LastLast
Results 1 to 25 of 35

Thread: Adding SRL Stats To Your script.

  1. #1
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Adding SRL Stats To Your script.

    give time for the image to load

  2. #2
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,449
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    OMFG, Thank you so much. I always wondered how to do this.

  3. #3
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by c0de View Post
    Cool, next time try not to scatter images all around lol

    Good tut, it'll help people a lot.
    lol i wasn't on planning scattering the images all over the place, but when it came to those wide images, i didn't want to waste space.

    And thanks for all the comments =)

  4. #4
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    really nice tut!! nice and colourful! thats way cool!
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  5. #5
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for this was wondering how to do this!

  6. #6
    Join Date
    Dec 2006
    Location
    New York
    Posts
    473
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    a question: i register SRL Stats but i forgot my ID key. How can i recover it?

  7. #7
    Join Date
    Mar 2007
    Posts
    562
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ill try ask my friend if hell add srl stats for the monk killer

  8. #8
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by gamer716 View Post
    a question: i register SRL Stats but i forgot my ID key. How can i recover it?
    What I do when I forget it is click the members list, and click sort by name. Then just look for your name and look next to it for your ID.

    And awesome tut! May help me a bit if I can't figure out how to register my almost released script

  9. #9
    Join Date
    Feb 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so does this mean every time i increase one of the variables i need to cal SRLRandomsReport?

    "Impressive" - Star

  10. #10
    Join Date
    Oct 2006
    Location
    Texas,united states
    Posts
    100
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you so much rs moneky i always wanted to put this in one of my scripts but i never knew how.

  11. #11
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by gsquare567 View Post
    so does this mean every time i increase one of the variables i need to cal SRLRandomsReport?
    Just add SRLRandomsReport; right after your progress report.

  12. #12
    Join Date
    Feb 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok i did that, but its not working... http://www.stats.srl-forums.com/inde..._script&id=190
    SCAR Code:
    ReportVars[5] := ReportVars[5] + 1; // talks
    and after
    SCAR Code:
    SRLRandomsReport; // send ReportVars to SRL
    EDIT: when i try setupsrl.scar, for user ID i type gsquare567 and i get this error...
    SCAR Code:
    [Runtime Error] : Exception: Access violation at address 00000000. Read of address 00000000 in line 755 in script C:\Program Files\SCAR 3.06\includes\SRL\SetupSRL.scar
    am i using the right user id, if not, how do i get it if i have... misplaced it?
    edit again: i got this when i ran my script "Invalid Script ID"

    SCAR Code:
    SetupSRL;
      ScriptID := '190';

    "Impressive" - Star

  13. #13
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SRL ID # not SRL username on these forums. "p

    EDIT:
    I think the Rs Monkey forgot a few things.

    Here this is taken from my script.

    Code:
    SetupSRL;
        SRLID := dSRLID; //const
        SRLPassword:= dSRLPASS; //const
      for i:= 0 to 19 do //<---
        ReportVars[i]:= 0;
      ScriptID := '';
      SetUpSRLReport; // <---

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

    Default

    hey i get this Assignment expected in script after

    ScriptId :='192';
    SrlRandomsReport;
    ReportVars[0]= Varname1(Rocks);

    can anyone help me?

  15. #15
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hugolord View Post
    hey i get this Assignment expected in script after

    ScriptId :='192';
    SrlRandomsReport;
    ReportVars[0]= Varname1(Rocks);

    can anyone help me?
    It should be

    Code:
    ReportVars[0]:= ReportVars[0] + AnIntegerVariable;

  16. #16
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    ReportVars[0] := ReportVars[0] + CountItemBmpMaskTol(OreMask, 15);

    i stole this oremask from Wizzups VEM lol.
    hopefully he won't mind
    SCAR Code:
    OreMask := BitmapFromString(11, 11, 'z78DA73730301033070436' +
           '2238B60024C35B84CC0A5923C13F0BB937813F0EB22DE04CC5022' +
           'CF04CADD404CC890EA0BFCE2F85D4E4C6A212FF470998FCC0600F' +
           'B599CC1');

  17. #17
    Join Date
    Mar 2007
    Posts
    674
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Great tut but i think one of the like dosent open for me.

  18. #18
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help Please!!!!!!!??????????!!!!!!!!!!???????????

    Can Some One Please Add In The Thing That Updates Srl Stats For Me Every Time It Does Procedure ReportProgress;?

    P.S. This Is Just Some Of My Script You Might Need To Use To Add Stats &
    The Thing To Report To SRL Stats Is
    CoalMined

    SCAR Code:
    Procedure ReportProgress;
    Begin;
    ClearReport;
    AddToReport('Progress Report')
    AddToReport('Auto CoalMiner')
    AddToReport('By: Timer150')
    AddToReport('')
    AddToReport('Averaged Coal/Exp')
    AddToReport('Mined ' + inttostr(CoalMined) + ' Coal')
    AddToReport('Exp Gained ' + inttostr(CoalMined*50))
    End;

    Procedure AttackCheck;
    Begin
    If(Findcolor(x,y,Blood,201,113,327,220))Then
    RunFarAway;
    end;

    Procedure Drop_Coal(Color:Integer);
    var
      x, y, Drop:Integer;
    begin
      Drop:= DTMFromString('78DA63B4636260E064644006FFFFFF07D3305' +
         '1465BA01A5E5435300057E30A542344408D07500D0F01BBF48854' +
         'C346408D19A69B31D480FCCE875F0D00B9181450');
      while(FindColor(x,y,Color,548,168,761,496))do
      begin
        Mouse(x+5,y,1,1,false);
        Wait(900);
        if(FindDtm(Drop,x,y,548,168,761,496))then
        begin
          Mouse(x,y,1,1,true)
          Wait(450);
        end;
      end;
      FreeDtm(Drop);
    end;

    Var Z:integer;

    Procedure MineOre;
    Begin;
    Repeat;
    Mine_Coal;
    Attackcheck;
    Z:=z+1;
    CoalMined:=CoalMined+1;
    ReportProgress;
    Until(Z=Ore);
    End;

    Procedure DoItAll;
    Begin;
    MineOre;
    Speak('Droping')
    Say('Feel Free To Take ^.^')
    Drop_Coal(Coal2);
    End;

    Begin;
    SetupTimersInclude;
    ReportProgress;
    Setup;
    Setup2;
    SetupSRL;
    ScriptID := '199';
    Repeat;
    DoItAll;
    Until(CoalMined>OreToMine);
    End.

  19. #19
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help Please 2!!!!!!!??????????!!!!!!!!!!???????????

    Any 1 Here?

  20. #20
    Join Date
    Jun 2007
    Location
    Kentucky, United States of America
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't double post, suprisingly it'll probably take more than two minutes for someone to answer.

    And try doing it for yourself first. You didn't even make an attempt at it in your above script. If you can't do it, then you should ask for some help.

  21. #21
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what about this?

    SCAR Code:
    Procedure ReportProgress;
    Begin;
    ClearReport;
    AddToReport('Progress Report')
    AddToReport('Auto CoalMiner')
    AddToReport('By: Timer150')
    AddToReport('')
    AddToReport('Averaged Coal/Exp')
    AddToReport('Mined ' + inttostr(CoalMined) + ' Coal')
    AddToReport('Exp Gained ' + inttostr(CoalMined*50))
    SrlRandomsReport;
    End;
     
    Procedure AttackCheck;
    Begin
    If(Findcolor(x,y,Blood,201,113,327,220))Then
    RunFarAway;
    end;
     
    Procedure Drop_Coal(Color:Integer);
    var
      x, y, Drop:Integer;
    begin
      Drop:= DTMFromString('78DA63B4636260E064644006FFFFFF07D3305' +
         '1465BA01A5E5435300057E30A542344408D07500D0F01BBF48854' +
         'C346408D19A69B31D480FCCE875F0D00B9181450');
      while(FindColor(x,y,Color,548,168,761,496))do
      begin
        Mouse(x+5,y,1,1,false);
        Wait(900);
        if(FindDtm(Drop,x,y,548,168,761,496))then
        begin
          Mouse(x,y,1,1,true)
          Wait(450);
        end;
      end;
      FreeDtm(Drop);
    end;
     
    Var Z:integer;
     
    Procedure MineOre;
    Begin;
    Repeat;
    Mine_Coal;
    Attackcheck;
    Z:=z+1;
    CoalMined:=CoalMined+1;
    ReportVars[0] := ReportVars[0] + 1;
    ReportProgress;
    Until(Z=Ore);
    End;
     
    Procedure DoItAll;
    Begin;
    MineOre;
    Speak('Droping')
    Say('Feel Free To Take ^.^')
    Drop_Coal(Coal2);
    End;
     
    Begin;
    SetupTimersInclude;
    ReportProgress;
    Setup;
    Setup2;
    SetupSRL;
    ScriptID := '199';
    Repeat;
    DoItAll;
    Until(CoalMined>OreToMine);
    End.

  22. #22
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Hugolord, everytime you do something like that with vars, you need to have := there instead of only = because, the ":" is the assigner or whats it called


    Timer, what do you mean by that?

  23. #23
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Thanks

    Thanks Rs Monkey

  24. #24
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by WhiteShadow View Post
    Just add SRLRandomsReport; right after your progress report.
    is this the answer you were looking for?

    EDIT: so non-srl membs also can do that?
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

  25. #25
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does it record the time spent running automatically?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 07-14-2008, 03:58 AM
  2. Adding SRL Stats to Your Scriptz! [Pic-Tut]
    By Harry in forum Outdated Tutorials
    Replies: 10
    Last Post: 04-26-2008, 11:50 PM
  3. Adding Srl Stats
    By faster789 in forum OSR Help
    Replies: 1
    Last Post: 04-06-2008, 05:38 AM
  4. adding auto banking into a script
    By Xanek in forum OSR Help
    Replies: 6
    Last Post: 12-06-2007, 07:13 PM
  5. Adding Login to my script
    By BritishBunny in forum OSR Help
    Replies: 10
    Last Post: 07-05-2007, 04:58 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
  •