public boolean onBegin() { threadId = 412; UberPaint p = new UberPaint("ArteFalconry", threadId, getClass().getAnnotation(Manifest.class).version()); p.skills.add(new Skill(Skills.HUNTER)); p.skills.add(new Skill(Skills.PRAYER)); strategies.add(new ReGetFalcon()); strategies.add(new DropJunk()); strategies.add(new CatchKebbit()); strategies.add(new TakeFalcon()); Options.add("spotted", Skills.getRealLevel(Skills.HUNTER) <= 69); Options.add("dark", Skills.getRealLevel(Skills.HUNTER) >= 57); Options.add("dashing", Skills.getRealLevel(Skills.HUNTER) >= 69); p.infoColumnValues = new String[] {"Status:", "Kebbits caught:", "Run time:"}; p.addFrame("options"); p.getFrame("options") .addComponent( new PCheckBox(8, 356, "Hunt spotted: ", Options.getBoolean("spotted"), 65) { public void onPress() { if (Options.getBoolean("dashing") || Options.getBoolean("dark")) { Options.flip("spotted"); setKebbits(); } } }); p.getFrame("options") .addComponent( new PCheckBox(8, 371, "Hunt dark: ", Options.getBoolean("dark"), 74) { public void onPress() { if (Options.getBoolean("spotted") || Options.getBoolean("dashing")) { Options.flip("dark"); setKebbits(); } } }); p.getFrame("options") .addComponent( new PCheckBox(8, 387, "Hunt dashing: ", Options.getBoolean("dashing"), 18) { public void onPress() { if (Options.getBoolean("spotted") || Options.getBoolean("dark")) { Options.flip("dashing"); setKebbits(); } } }); setKebbits(); ReGetFalcon.oldSetting = Settings.get(334); paintType = p; return true; }
/** * Constructs a new Skill * * @param skillInt the index of the Skill */ public Skill(int skillInt) { startime = System.currentTimeMillis(); startxp = Skills.getCurrentExp(skillInt); startLevel = UberSkills.getRealLevel(skillInt); skillint = skillInt; lastxp = startxp; lastLevel = startLevel; name = Skills.SKILL_NAMES[skillint].substring(0, 1).toUpperCase() + Skills.SKILL_NAMES[skillint].substring(1); shortName = getShortName(); }
public int curXP() { return Skills.getCurrentExp(skillint); }
public int xpGained() { return Skills.getCurrentExp(skillint) - startxp; }