use of org.powerbot.bot.rt6.client.PlayerFacade in project powerbot by powerbot.
the class Skills method experiences.
public int[] experiences() {
final Client client = ctx.client();
if (client == null) {
return new int[0];
}
final PlayerFacade info = client.getPlayerFacade();
final Skill[] skills;
if (info == null || (skills = info.getSkills()) == null) {
return new int[0];
}
final int[] levels = new int[skills.length];
for (int i = 0; i < skills.length; i++) {
final Skill s = skills[i];
if (!s.isNull()) {
levels[i] = s.getExperience();
}
}
return levels;
}
use of org.powerbot.bot.rt6.client.PlayerFacade in project powerbot by powerbot.
the class Skills method levels.
public int[] levels() {
final Client client = ctx.client();
if (client == null) {
return new int[0];
}
final PlayerFacade info = client.getPlayerFacade();
final Skill[] skills;
if (info == null || (skills = info.getSkills()) == null) {
return new int[0];
}
final int[] levels = new int[skills.length];
for (int i = 0; i < skills.length; i++) {
final Skill s = skills[i];
if (!s.isNull()) {
levels[i] = s.getEffectiveLevel();
}
}
return levels;
}
Aggregations