public class ExperienceTracker extends API
bank, bot, camera, chatbox, client, colorPicker, combat, configs, depositBox, dialogues, diaries, display, doorHandler, equipment, experienceTracker, favour, grandExchange, graphicObjects, groundItems, hintArrow, inventory, keyboard, logger, logoutTab, magic, map, menu, mouse, npcs, objects, players, prayer, projectiles, quests, settings, skills, store, tabs, trade, walking, widgets, worlds
Constructor and Description |
---|
ExperienceTracker()
Creates an instance of the ExperienceTracker to easily track gained experience.
|
Modifier and Type | Method and Description |
---|---|
MethodProvider |
exchangeContext(Bot bot)
This class and method can be used to create extensions to the API with
full direct access to the OSBot 2 API within your extensions.
|
long |
getElapsed(Skill skill)
Calculates the milliseconds since the tracker was started for the specified skill.
|
int |
getGainedLevels(Skill skill)
Will return the levels gained in the specified skill since you have called the
start method for that specific skill.
|
int |
getGainedXP(Skill skill)
Will return the experience gained in the specified skill since you have called the
start method for that specific skill.
|
int |
getGainedXPPerHour(Skill skill)
Will return the experience gained per hour in the specified skill since you have called the
start method for that specific skill.
|
long |
getTimeToLevel(Skill skill)
Will return the time that it will take until you reach the next level at
your current experience per hour rate.
|
void |
initializeModule() |
void |
start(Skill skill)
Starts keeping track of experience gained in the specified skill.
|
void |
startAll()
Starts keeping track of all experience gained in each skill.
|
execute, getBank, getBot, getCamera, getChatbox, getClient, getColorPicker, getCombat, getConfigs, getDepositBox, getDialogues, getDiaries, getDisplay, getDoorHandler, getEquipment, getExperienceTracker, getFavour, getGrandExchange, getGraphicObjects, getGroundItems, getHintArrow, getInventory, getKeyboard, getLogoutTab, getMagic, getMap, getMenuAPI, getMouse, getNpcs, getObjects, getPlayers, getPrayer, getProjectiles, getQuests, getSettings, getSkills, getStore, getTabs, getTrade, getWalking, getWidgets, getWorlds, gRandom, gRandom, gRandom, initializeContext, log, log, myPlayer, myPosition, random, random, sleep, stripFormatting, warn
public ExperienceTracker()
public MethodProvider exchangeContext(Bot bot)
exchangeContext
in class MethodProvider
bot
- The Bot
instance.public void startAll()
public void start(Skill skill)
skill
- The specific skill you want to track gained experience for.public long getElapsed(Skill skill)
skill
- The skill.public int getGainedXP(Skill skill)
skill
- The skill you want to obtain the gained experience for.public int getGainedXPPerHour(Skill skill)
skill
- The skill you want to obtain the gained experience for.public int getGainedLevels(Skill skill)
skill
- The skill you want to obtain the gained levels for.public long getTimeToLevel(Skill skill)
skill
- The skill you want to get the time to next level for.public void initializeModule()
initializeModule
in class API