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
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.
You should checkout the OSR include.
and there is also:(*
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
*)
(*
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));
There are currently 1 users browsing this thread. (0 members and 1 guests)