Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Map;
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.RSObject;
- import java.awt.Graphics;
- import java.awt.Color;
- import org.rsbot.event.listeners.PaintListener;
- import org.rsbot.script.Constants;
- @ScriptManifest(authors = { "WtfClawed" }, category = "Woodcutting", name = "WtfWillows", version = 1.00, description = "<html><head><body><h2>" + "Rapes Logs")
- public class WtfWillows extends Script{
- public int[] Willow = {5551,5552};
- public int WoodcuttingAnimation = 867; //
- public int[] Hatchet = {1351, 1353, 1355, 1357, 1359}; //
- public int loop() {
- if(getMyPlayer().isMoving()){
- return 800;
- }
- if(getMyPlayer().isMoving()){
- return 800;
- }
- if(getMyPlayer().getAnimation() == WoodcuttingAnimation){
- return 800;
- }
- //If the loop has gotten this far, we know we are not already
- //Woodcutting Willows and We know we are not moving, therefore
- //it is safe to Woodcut
- if(isInventoryFull()){
- dropAllExcept(Hatchet);
- return 800;
- }
- //if we have gotten here, this means all of the above comments,
- //and our inventory is not full. This means it's perfect to
- //Woodcut.
- RSObject WillowTree = findObject(Willow);
- if(WillowTree == null){
- return 800;
- }
- atObject(WillowTree, "Chop down");
- return 300;
- }
- }
Add Comment
Please, Sign In to add comment