@Gunman
case "MINING":
final Area MINING_AREA1 = new Area (2982,3233,2990,3242);
int ItemsMade = 0;
if (!getInventory().isFull()) {
if(MINING_AREA1.contains(myPosition()) && (getInventory().contains("Bronze pickaxe"))){
RS2Object ore = getObjects().closest(11362,11363);
if (ore != null) {
log ("Found ore");
if (!myPlayer().isAnimating()) {
if (!myPlayer().isMoving()) {
ore.interact("Mine");
antiban();
ItemsMade += 1;
log("Made an item");
if (ItemsMade == 5) {
log("Walking to Draynor");
getWalking().webWalk(Banks.DRAYNOR);
}
}
}
}
}
}
I did something like this, knows when the item is made cuz I see the log.
but it doesnt go to the draynor after 5 ''items are made''