Results 1 to 7 of 7

Thread: Progress report.

  1. #1
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default Progress report.

    Can anyone show good and easy tut about progress reports. or show simple how to do. I quick understood it. don't need very intermediate example.

    code for exampe.

    SCAR Code:
    program FM;
    {.include SRL/SRL/Misc/Smart.scar}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/skill/Firemaking.scar}
    {.include SRL/SRL/misc/Reports.scar}

    Procedure DeclarePlayers;
    begin
     HowManyPlayers := 1;
     CurrentPlayer := 0;
     NumberOfPlayers(HowManyPlayers);
     Players[0].Name := 'Yxxxx';     //Username
     Players[0].Pass := 'ssss';    //Password
     Players[0].Nick := 'xxxx';   //sern
     Players[0].Active := true; //leave it
     Players[0].BoxRewards   := ['XP', 'ostume', 'oins', 're']; //reward from randoms
    end;

    Procedure forExampleBankFind;
    var x, y: integer;
    begin
      if FindSymbol(x, y, 'bank') then
      begin
       Mouse(X, Y, 5, 5, True);
       FFlag(0)
      end;
    end;

    Procedure Proggy;
    begin
    ClearDebug;
    WriteLn('Bank symbols finds: ' + bankfinds); // or something like that.
    WriteLn('Worked for: ' + Hours + ':' + Minutes + ':' + Seconds + '.')
    end;
    Procedure MainLoop;
    begin
    ForexampleBankFind;
    Proggy;
    end;
    Begin
    SetupSRL;
    DeclarePlayers;
    LoginPlayer;
    ClearDebug;
    MainLoop;
    end.

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

    Default

    SCAR Code:
    procedure Proggy;
    begin
      ClearDebug;
      WriteLn('//////////////////////////|\\\\\\\\\\\\\\\\\\\\\\\\\\');
      WriteLn('Laimonas171''s Bank Symbol Finder');
      WriteLn('Found ' + IntToStr(BankFinds) + ' bank symbols');
      WriteLn('Worked for ' + TimeRunning);
    end;

    Something like that?

    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.

  3. #3
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Tutorial Island -> Newly Added to SRL -> Reports.scar

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  4. #4
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by R1ch View Post
    SCAR Code:
    procedure Proggy;
    begin
      ClearDebug;
      WriteLn('//////////////////////////|\\\\\\\\\\\\\\\\\\\\\\\\\\');
      WriteLn('Laimonas171''s Bank Symbol Finder');
      WriteLn('Found ' + IntToStr(BankFinds) + ' bank symbols');
      WriteLn('Worked for ' + TimeRunning);
    end;

    Something like that?

    Richard.
    Yes just i dont know how to increase numbers.

    EDIT: i am sure what need to make variables and add then after procedures then use them on proggy somehow. can you edit my code in first post and add simple time and symbols finds ?

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

    Default

    Ok, have a variable called BankFinds
    SCAR Code:
    var
      BankFinds : Integer;

    When it finds a bank symbol, you want to increase that by one. There are two ways of doing this.

    SCAR Code:
    procedure ForExampleBankFind;
    var
      X, Y : Integer;

    begin
      if FindSymbol(X, Y, 'bank') then
      begin
        BankFinds:= BankFinds + 1;   //This is the first way
        Mouse(X, Y, 5, 5, True);
        FFlag(3);
      end;
    end;

    Or this:

    SCAR Code:
    procedure ForExampleBankFind;
    var
      X, Y : Integer;

    begin
      if FindSymbol(X, Y, 'bank') then
      begin
        Inc(BankFinds);       //And this is the seconds way of increasing BankFinds by 1
        Mouse(X, Y, 5, 5, True);
        FFlag(3);
      end;
    end;

    Hope I helped,
    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.

  6. #6
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    yes you do ty vm. Rep++

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

    Default

    Oooo, thanks. If you need any more help with anything, feel free to PM me and I'll see what I can do.
    <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.

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
  •