Oh, hahaha, I'm sorry, I should've been more clear in my initial post.
Anyway, what I'm trying to explain is the following:
Snippet from let's say Altar.java:
Combat combat; public int onLoop() { try { useItemsonAltar(); activateAltar(); combat.killCow(); } catch (InterruptedException e) { log("nope werkt ni!"); e.printStackTrace(); } return 1; }
The method it's refering to in Combat.java:
public void killCow() throws InterruptedException { sleep(3000); unicow = closestNPC(UNICOW_ID); if (unicow != null && !unicow.isUnderAttack()) unicow.interact("Attack",true,true); while (client.getClient().getMyPlayer().isUnderAttack()) { log("currently under attack: " + Boolean.toString(client.getClient().getMyPlayer().isUnderAttack())); sleep(5000); } lootHorns(); }
It seems that it has trouble trying to call that method from another class, even though I tried a fake constructor, or anything amongst the sorts.
My IDE doesn't show up any errors, let alone that I think I made a mistake, OsBot itself just won't execute the killCow method, and will skip it to repeat the onLoop().