Results 1 to 9 of 9

Thread: XP / hour function

  1. #1
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default XP / hour function

    this should be really easy, but im horrible at makeing up formulas.

    is it xp/hour ratio: ((GainedXP * 60 * 60 * 1000) / GetTimeRunning) ?

    thanks :]
    Lance. Da. Pants.

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    i think it would be something without the / gettimerunning =o

    im horible at this stuff too
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wouldnt it be something like GainedXp / (TimeRunning / 60)? Never tried that before :S

    Edit: maybe just GainedXp / TimeRunning?

    50000exp / 4hrs = 12500XP/ hr
    Last edited by D1zl3; 07-27-2009 at 08:58 AM.

  4. #4
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by D1zl3 View Post
    wouldnt it be something like GainedXp / (TimeRunning / 60)? Never tried that before :S

    Edit: maybe just GainedXp / TimeRunning?

    50000exp / 4hrs = 12500XP/ hr
    No, TimeRunning returns a formatted string. And GetTimeRunning returns the amount in milliseconds. Lemme whip up something real quick.

    Edit: What you have in the first post should work.
    Last edited by senrath; 07-27-2009 at 09:03 AM.

  5. #5
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh k, im supprized i had it right x] lol
    Lance. Da. Pants.

  6. #6
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    No, TimeRunning returns a formatted string. And GetTimeRunning returns the amount in milliseconds. Lemme whip up something real quick.

    Edit: What you have in the first post should work.
    yeah after i posted i was wondering if it was in milliseconds, that would make sense for the *60

  7. #7
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You have reached that exp in a specific time, thus:
    Time := 12 mins
    Exp := 12000
    Exp/(For hours calculate the time into hours like 0,2(Correct?)|Mins = 12 | seconds = 12*60)
    ~Hermen

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

    Default

    TotalXP*1000*60*60 / GetTimeRunning

    ~RM

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

  9. #9
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    This is how i do it

    Sec := GetTimeRunning div 1000 + 1;
    Writeln('Xp / Hour : ' + IntToStr(Round(3600 * XP / Sec)));

    ~Home

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
  •