Results 1 to 3 of 3

Thread: Progress report for private server

  1. #1
    Join Date
    Mar 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Progress report for private server

    Hey I was just wondering is it possible to make a progress report like the scripts do for runescape

    IE: status like, Kills: Exp: Ect....


    I tried using this simple progress report on soulsplit, but it seems not to show or do anything am I missing somthing or does it not work?

    Code:
    procedure Proggy;
    begin
    Writeln('THE HELLA DANK YAK BOT');
    Writeln('********************************');
    Writeln('We have killed: ' + IntToStr(kill) + ' yaks!');
     Writeln('********************************');
     Writeln('SMOKE WEED ER DAY GET BOTS ER DAY');
     end;
    feedback would be nice

    Thanks
    Stealth,

  2. #2
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    I think there are a few tutorial threads on progress reports, but I'll give you a little overview of how they work.

    If you want to track kills (attacks would be easier, I think) you need to first declare the var. I'll use "Attacked" in this because that is what I would use.

    Simba Code:
    var
      Attacked: Integer;

    Then whenever you attack a yak in your script, add "Inc(Attacked)" right afterwards:

    Simba Code:
    if AttackYak then
      Inc(Attacked);

    The Inc() procedure will add a value of 1 to the var that you use as a parameter. So essentially, every time you successfully find and click a yak, the "Attacked" var will increase by one. To add XP to this, all you have to do is multiply the times attacked by the amount of XP killing a yak gives.

    Simba Code:
    Writeln('We have killed: ' + IntToStr(Attacked) + ' yaks!');
    Writeln('We have gained: ' + IntToStr(Attacked * 400) + ' xp!');
    {Replace 400 with however much xp you gain}

    Hope that helps

  3. #3
    Join Date
    Mar 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, that helped out a lot!

    Stealth,

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
  •