Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //aioWcer version 0.1
- //future updates will include-more places, better paint,
- //& a better gui
- ///////IMPORTS///////
- import java.awt.*;
- import java.awt.event.*;
- import javax.swing.*;
- import javax.swing.event.*;
- import java.awt.BasicStroke;
- import java.awt.Point;
- import java.util.Map;
- import java.awt.Color;
- import java.awt.Font;
- import java.awt.Graphics;
- import java.awt.Graphics2D;
- import java.awt.Rectangle;
- import java.awt.event.*;
- import java.util.logging.Level;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.bot.Bot;
- import org.rsbot.script.wrappers.RSObject;
- import org.rsbot.script.wrappers.RSTile;
- import org.rsbot.event.listeners.PaintListener;
- import org.rsbot.script.Script;
- import org.rsbot.script.Calculations;
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- @ScriptManifest(authors = { "Indaface" }, category = "Woodcutting", name = "DraynorWillowRapist", version = 0.1, description = "<html>\n<head></head>\n<body>\n<center><h2>DraynorWillowRapist</h2><b>Author:</b> Indaface <b>aioWcer</b>,</b><br /><b>Version:</b> 0.1<br /></center></body>\n</html>")
- public class aioWcer extends Script implements PaintListener {
- public long startTime = System.currentTimeMillis();
- int[] axes = {1349, 1351, 1353, 1355, 1357, 1359, 1361, 6739};
- public int startExp;
- public int cut = 0;
- public boolean isNPC = false;
- public double x1;
- public int[] treeID;
- public String state = "Starting...";
- public int nestzFound = 0;
- public int banker;
- private final int[] nestIds = { 5070, 5071, 5072, 5073, 5074, 5075, 7413 };
- public int profit = 0;
- public RSTile[] toBank;
- public RSTile[] toTrees;
- public int wcanimation = 867;
- public int price = 0;
- public String getName(){
- return "aioWcer";
- }
- public String getAuthor(){
- return "Indaface";
- }
- public String getScriptCategory(){
- return "Woodcutting";
- }
- public double getVersion(){
- return 0.1;
- }
- public String getScriptDescription() {
- String html = "<html>";
- html += "<body>";
- html += "<center>";
- html += "<b><font size=\"5\" color=\"red\">" + getName() + " v" + getVersion() + "</font></b>";
- html += "<br></br>";
- html += "<font size=\"4\" color=\"black\">by Indaface<br></b></font>";
- html += "<br></br>";
- html += "<font size=\"3\" color=\"black\"><b> </b>Select Tree And Location:</b></font>";
- html += "<hr></hr>";
- html += "<select name='cut'>";
- html += "<option>WestVarrock RegularLogs<option>EastVarrock Oaks<option>Draynor Willows<option>Draynor Oaks</select>";
- html += "<hr></hr>";
- html += "<tr><td colspan=2><b><font size=\"3\">   Enjoy. </font></b></td><td colspan=\"2\" align=right>"
- + getVersion() + "   </td></tr></table>";
- html += "</center></body>";
- html += "</html>";
- return (html);
- }
- ///////////LOCATIONS///////////////
- public boolean onStart(Map<String, String> args) {
- MyPanel gui = new MyPanel();
- MyPanel.main(null);
- log("aioWcer Initialized!");
- if (args.get("cut").equals("WestVarrock RegularLogs")) {
- banker = 11402;
- price = 36;
- treeID = new int[] {1278};
- toTrees = new RSTile[] {
- new RSTile(3184, 3444), new RSTile(3173, 3456),
- new RSTile(3157, 3459)
- };
- toBank = reversePath(toTrees);
- }
- if (args.get("cut").equals("EastVarrock Oaks")) {
- banker = 11402;
- price = 48;
- treeID = new int[] {1281};
- toTrees = new RSTile[] {
- new RSTile(3253, 3420), new RSTile(3265, 3428),
- new RSTile(3279, 3429)
- };
- toBank = reversePath(toTrees);
- }
- if (args.get("cut").equals("Draynor Willows")) {
- banker = 2213;
- price = 8;
- treeID = new int[] {5551, 5552, 5553};
- toTrees = new RSTile[] {
- new RSTile(3092, 3245), new RSTile(3086, 3240),
- new RSTile(3087, 3235)
- };
- toBank = reversePath(toTrees);
- }
- return true;
- }
- ///////LOOP/////////
- public int loop() {
- if (getMyPlayer().isMoving()){
- return 500;
- }
- if (getMyPlayer().isInCombat()) {
- log("OSHI! We're in a fight");
- return 200;
- }
- if(isInventoryFull()){
- if(!bank.isOpen()){
- openBank();
- }
- if(bank.isOpen()){
- depositLogs();
- return 400;
- }
- return 400;
- }
- if(getMyPlayer().getAnimation() == wcanimation){
- return 400;
- }
- RSObject tree = findObject(treeID);
- if(tree == null) return 400;
- atTree(tree, "Chop");
- return 100;
- boolean openBank;
- {
- walkPathMM(toBank);
- RSObject bank = findObject(bankID);
- if(bank == null) return false;
- atObject(bank, "Use-quickly");
- return true;
- }
- boolean depositLogs;
- {
- bank.depositAllExcept(axe);
- bank.close();
- walkPathMM(toTrees);
- return true;
- }
- }
- ////////////END OF LOOP//////////////////
Add Comment
Please, Sign In to add comment