Results 1 to 5 of 5

Thread: Adding Xp/h to a script.

  1. #1
    Join Date
    Feb 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default Adding Xp/h to a script.

    Hi,

    I am wanting to add xp/h in combat stats to one of my autofighters. Just finished adding looting which I am pretty proud of.

    This is my first script I am working on.

    Anyone give me some tips or snippets?

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    For eoc or oldschool?

    U can use xpbar in eoc. XPGain := CurrentXP - GetXPBarTotal

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Feb 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    For eoc or oldschool?

    U can use xpbar in eoc. XPGain := CurrentXP - GetXPBarTotal
    Old school.

  4. #4
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Only way I see it is getting xp of the monster and use Inc(KillXP)

    Creds to DannyRS for this wonderful sig!

  5. #5
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Here is my xp/hr and ores/hr procedure for mining:

    Simba Code:
    procedure WriteProgress;
    begin
      Seconds := (1 + ((Getsystemtime - StartTime) / 1000));
      XpPerHour := (3600 * XPGained) / (Seconds);
      OresPerHour := (3600 * OresMined) / Seconds;
      ClearDebug;
      Writeln('*****************************');
      Writeln('Status:' + Status + '');
      writeln('Mining XP: ' + IntToStr(XPGained));
      writeLn('Mining XP/H: ' + IntToStr(XpPerHour));
      writeLn('Ores Mined: ' + IntToStr(OresMined));
      writeLn('Ores Per Hour: ' + IntToStr(OresPerHour));
      Writeln('*****************************');
    end;

    Hope that helps

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
  •