Jump to content

Joseph

Trade With Caution
  • Posts

    4692
  • Joined

  • Last visited

  • Feedback

    91.3%

Everything posted by Joseph

  1. so it should look something like this then public void onStart() throws InterruptedException { if (client.getInventory().contains(ectophial) &&!client.getMyPlayer().isInArea(EctoArea)) { client.getInventory().interactWithId(ectophial, "Empty"); if (myPlayer().getAnimation()== 714) { while (myPlayer().getAnimation()== 714) { sleep(1000); } } state = State.WALKTOECTOHERB; } } i try this out then Eclipse is having a sissy fit, it say you remove the exception.
  2. can someone explain to me this \/ catch try {...................} catch (interruptedException e) // TODO Auto-generated catch block e.printStackTrace(); } im trying to create a farming script, and on the onStart() i want it to do more then one action. But i don't fully understand the (catch............). do i only need one (Catch..........), or more then one, if my onStart() has more then one action. public void onStart(){ if (client.getInventory().contains(ectophial) && !EctoArea.contains(myPlayer())){ try { this.client.getInventory().interactWithId(ectophial, "Empty"); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } if (myPlayer().getAnimation()== 714) { while(myPlayer().getAnimation()== 714) { try { sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } state = State.WALKTOECTOHERB; } } }
  3. how would i declare an Area, Path, and how would i make my player follow the path to the new area.
×
×
  • Create New...