Results 1 to 11 of 11

Thread: Script stats :/

  1. #1
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default Script stats :/

    Hello, i dont think the script stats for my script are working..
    I have this:
    SCAR Code:
    begin
    SetUpSRL;
     ScriptID := '637';
    PlayerSetUp;
    SmartSetupEx(World, False, False);
    SetTargetDC(SmartGetDC);
    ActivateClient;
     repeat
     LoginPlayer;
     Repeat
    Repeat
     FindSpotAndFish;
      Randoms;
      AntiBan;
     Until(InvFull);
        Loads := Loads + 1;
        ReportVars[0] := + 1;
        Fish := Fish + 27;
        ReportVars[1] := + 27;
        Disguise('Done ' + IntToStr(Loads) + ' Loads, Done ' +IntToStr(Fish)+ ' Fishies');
     Status('Dropping');
    Drop;
    Until(Loads = LoadsToDo);
    Prog;
    Loads := 0;
    Fish := 0;
     NextPlayer(true);
     Until(false);
    end.

    In my sig is teh stat thing.. it just wont update.
    I dont mean the SRL stats sig, but the other one with 'Loads' and 'Fish'
    Ce ne sont que des gueux


  2. #2
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    At the end of the main loop do SRLRandomReports

  3. #3
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Done that, testing

    Btw, is that for the SRL script thing (where there is Level 1 : Ice Giant?)
    I meant the one(s) with the amount of loads+fish, and the 'worked for'
    Ce ne sont que des gueux


  4. #4
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SendSRLReport;

    You should call both though, since randoms report handles the randoms (duh >.>).
    Temporarily inactive.

  5. #5
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Oh, ty :P
    Ce ne sont que des gueux


  6. #6
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    haha forgot that completely, ahh well. Good luck with your script mate. Hope you get big numbers in those stats

    DR

  7. #7
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    So this works(?):

    SCAR Code:
    begin
    SetUpSRL;
     ScriptID := '637';
    PlayerSetUp;
    SmartSetupEx(World, False, False);
    SetTargetDC(SmartGetDC);
    ActivateClient;
     repeat
     LoginPlayer;
     Repeat
    Repeat
     FindSpotAndFish;
      Randoms;
      AntiBan;
     Until(InvFull);
        Loads := Loads + 1;
        ReportVars[0] := + 1;
        Fish := Fish + 27;
        ReportVars[1] := + 27;
        Disguise('Done ' + IntToStr(Loads) + ' Loads, Done ' +IntToStr(Fish)+ ' Fishies');
     Status('Dropping');
    Drop;
    Until(Loads = LoadsToDo);
     SRLRandomsReport;
     SendSRLReport;
    Prog;
    Loads := 0;
    Fish := 0;
     NextPlayer(true);
     Until(false);
    end.
    Ce ne sont que des gueux


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

    Default

    The problem also can be in your script elsewhere than the report sending - I can't see anything like "SRLID := TheSRLID;" in your mainloop - does your DeclarePlayers have the stats id declarations?

  9. #9
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Oh, so stupid of me :P doin it atm

    How long can it take for SRL to update it?
    Ce ne sont que des gueux


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

    Default

    The stats update when the scripts runtime >= 5 min and time from last report sent by the same scar is >= 5 min.

  11. #11
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also, ReportVars[0] := + 1; Should be ReportVars[0] := ReportVars[0] + 1;

    The same with ReportVars[1]...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SLR stats + script
    By elfenlyte in forum News and General
    Replies: 4
    Last Post: 01-14-2008, 11:01 PM
  2. How can i put srl stats into a script?
    By Dangerous Garden Tools in forum OSR Help
    Replies: 7
    Last Post: 09-27-2007, 04:23 AM
  3. Script Stats
    By Dankness in forum OSR Outdated Tutorials
    Replies: 6
    Last Post: 12-30-2006, 06:30 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
  •