Results 1 to 7 of 7

Thread: Progress Report Prayer

  1. #1
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Progress Report Prayer

    i need a progress report for the xp/hour for gilded altar prayer script

  2. #2
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Simba Code:
    procedure XPPerHour;
     Begin
      XPPH := Round((XP * 3600) / (GetTimeRunning / 1000));
    end;
    Remember to add something to add to your XP variable, I forgot to do that mysrlf.

  3. #3
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Simba Code:
    function XPPerHour : integer;
     Begin
      Result := Round((XP * 3600) / (GetTimeRunning / 1000));
    end;

    This would be better, no need for the variable then


    Then just something like:

    Simba Code:
    WriteLn('--------------------------------')
    WriteLn('|      My Script                        ')
    WriteLn('--------------------------------')
    WriteLn('XP Per Hour: '+IntToStr(XPPerHour))
    Last edited by putonajonny; 03-23-2012 at 06:57 PM.

  4. #4
    Join Date
    Mar 2012
    Location
    Canada
    Posts
    870
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by putonajonny View Post
    Simba Code:
    function XPPerHour : integer;
     Begin
      Result := Round((XP * 3600) / (GetTimeRunning / 1000));
    end;

    This would be better, no need for the variable then


    Then just something like:

    Simba Code:
    WriteLn('--------------------------------')
    WriteLn('|      My Script                        ')
    WriteLn('--------------------------------')
    WriteLn('XP Per Hour: '+IntToStr(XPPerHour))

    This will overflow with only 596k XP. So after a few hour your XP/hour will be broken and display negative values.

    Instead do this:
    Simba Code:
    function XPPerHour : integer;
    Begin
      Result:= Round((XP / (GetTimeRunning / 1000)) * 3600);
    end;
    Last edited by eska; 03-24-2012 at 12:53 AM.
    My scripts:
    Advanced Barb Agility Course(outdated), MonkeyThieverV0.11, MahoganyTableV0.4(outdated)
    Questions? I bet that for 98% of those, you'll find answer HERE

  5. #5
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    how i do the var?
    sorry im learning this stuff

  6. #6
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Simba Code:
    var
      XPhour:Integer;

  7. #7
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Check my guide here

    That should explain everything.

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
  •