You would use an event, dunno what event system you have, but I'll post an event manager one since it's the only one i remember by memory:
Code:private static void chopTree(final Client c, final int objectX, final int objectY) { EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer ec) { if (c.getItems().freeSlots() <= 0) //if player has no available slots stop the event. ec.stop();//stops the event. else c.startAnimation(1000); //if player has enough inventory space do stuff every 1800 ms (3 ticks) here, in this case an anim. } }, 1800); //time in milliseconds, 600 ms = 1 tick, 1800 = 3 tick, etc. }



