Advertisement
Guest User

this doesnt work

a guest
Jan 28th, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. public State getState() {
  2.         if(gui.usefood || gui.usepotions || gui.useranged) {
  3.             return State.CHECKITEMS;
  4.         }
  5.         if(gui.usefood && getInventory().contains(food)) {
  6.             float percent = getSkills().getDynamic(Skill.HITPOINTS)*100/getSkills().getStatic(Skill.HITPOINTS);
  7.             if(Math.round(percent) <= gui.jSlider2.getValue()) {
  8.                 return State.EAT;
  9.             }
  10.         } else {
  11.             return State.TO_BANK;
  12.         }
  13.         if(handleatthillgiant.isAtHillGiants()) {
  14.             return State.FIGHT;
  15.         } else {
  16.             return State.TO_HILLGIANTS;
  17.         }
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement