Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //skeleton by Indaface/part of script
- import java.awt.Graphics;
- import org.rsbot.event.events.ServerMessageEvent;
- import org.rsbot.event.listeners.PaintListener;
- import org.rsbot.event.listeners.ServerMessageListener;
- public class WillowChopper implements PaintListener {
- public int willow = {x, x, x} //change the x's to the ID's add mroe if needed
- public int axe = {x, x, x} //change the x's to the ID's add more if needed
- public enum state {chopping, dropping, findingTree};
- public boolean chopping() {
- //make ur method may want to add states under these for your paint.. all the booleans
- }
- public boolean dropping() {
- //make ur method here
- }
- public boolean findTree() {
- //IDK if u will need/want this method...should be useful IDK will make it better...
- }
- public int loop() {
- switch (boolean) {
- /// ^^IDK what goes here :) make something for it I just made that part up...
- chopping();
- break;
- if(isInventoryFull){
- dropping();
- break;
- }
- findTree();
- break;
- }
- }
- @Override
- public void onRepaint(Graphics render) {
- // TODO Auto-generated method stub
- }
- }
Add Comment
Please, Sign In to add comment