Results 1 to 2 of 2

Thread: Getting XP

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

    Default Getting XP

    I'd like to be able to get the current XP of a certain skill.
    I'm still learning the API but I'm fluent in Java and powerbot's API so it shouldn't be too hard.

    How would I go about doing this?

    EDIT: Using the 07 client
    Last edited by dousty45; 03-27-2013 at 01:34 PM.

  2. #2
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by dousty45 View Post
    I'd like to be able to get the current XP of a certain skill.
    I'm still learning the API but I'm fluent in Java and powerbot's API so it shouldn't be too hard.

    How would I go about doing this?

    EDIT: Using the 07 client
    You should checkout the OSR include.

    (*
    GetXP
    ~~~~~

    .. code-block:: pascal

    function GetXP(Skill: Variant): Integer;

    Returns current xp for a skill. Returns -1 if failed.

    .. note::

    by DannyRS, based off original by Nielsie95
    Last Modified: Feb. 28th, 2013 by DannyRS

    Example:

    .. code-block:: pascal
    *)
    and there is also:


    (*
    XPTillNextLevel
    ~~~~~~~~~~~~~~~

    .. code-block:: pascal

    function XpTillNextLevel(Skill: Variant): Integer;

    Returns current xp until you level up in a skill.
    Returns -1 if failed.

    .. note::

    by DannyRS
    Last Modified: Feb. 28th, 2013 by DannyRS

    Example:

    .. code-block:: pascal
    *)

    So in your script you would go something like:

    Simba Code:
    XPTL := XPTillNextLevel('mining');
    WriteLn('Xp until level: ' + IntToStr(XPTL));

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
  •