Results 1 to 4 of 4

Thread: Per hour proggy

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Per hour proggy

    How would I go about putting exp per hour, and tanned hides per hour in my proggy? This is my proggy so far.
    Simba Code:
    Procedure Proggy;
    begin
      Writeln('********************************');
      Writeln('Time running = ' + (TimeRunning));
      Writeln('We have Tanned ' + IntToStr(Hides_Tanned));
      Writeln('We have earned ' + IntToStr(Profit_per_hide * Hides_Tanned));
    end;
    Thanks in advance!
    Footy
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Simple math But there are many ways to arrange the math, all a matter of preference.

    Here is how I do it in all of my scripts: round(3600000 * 1.0 / GetTimeRunning * xp)

    Don't forget to add the 'round' because otherwise you will have some hectic long decimal on the end of that number.

  3. #3
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Awesome! Thanks Ping!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  4. #4
    Join Date
    Jun 2012
    Posts
    219
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    There was a discussion about htis just a day ago, here is the link

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
  •