Singod2
11-17-2007, 07:52 PM
This will chop Yew's in Edgeville and Bank them. Please report in a PM to me of any Bugs or glitches and I will try to sort this out. Save it as edgeYewBanker.java and put it in the Nexus iBot Scripts Folder, and click compile-regex to compile the script and you are now able to use this.
import impsoft.nexus.bots.color.ColorBot;
import impsoft.nexus.bots.color.scriptable.*;
import impsoft.nexus.bots.color.scriptable.components.*;
import impsoft.nexus.bots.color.scriptable.components.bot tom.*;
import impsoft.nexus.bots.color.scriptable.components.gam escreen.*;
import impsoft.nexus.bots.color.scriptable.components.min imap.*;
import impsoft.nexus.bots.color.scriptable.components.tab .*;
import impsoft.nexus.bots.color.scriptable.interfaces.*;
import impsoft.nexus.bots.color.scriptable.objects.*;
import impsoft.nexus.bots.color.structures.*;
import impsoft.nexus.bots.color.util.*;
import impsoft.nexus.bots.reflection.objects.*;
import impsoft.nexus.bots.reflection.scriptable.component s.*;
import impsoft.nexus.bots.reflection.structures.*;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
public class edgeYew extends ColorScript implements ChatListener, AutoPaint, AxeMissingNotifier
{
Â*Â*Â*Â*//commands to show up
Â*Â*Â*Â*public static String[] commands = new String[] { "EdgeYew" };
Â*Â*Â*Â*//author(s) of script
Â*Â*Â*Â*public static String author = "Singod2";
Â*Â*Â*Â*//Description of script
Â*Â*Â*Â*public static String description = "Cuts and banks yew's from the trees in Edge";
Â*Â*Â*Â*//Version of script
Â*Â*Â*Â*public static double version = 3.1;
Â*Â*Â*Â*//Tiles
Â*Â*Â*Â*AryanTile bankTile = new AryanTile(3093, 3493);
Â*Â*Â*Â*AryanTile treeTile = new AryanTile(3086, 3476);
Â*Â*Â*Â*AryanTile deathTile = new AryanTile(3222, 3218);
Â*Â*Â*Â*//RGBS
Â*Â*Â*Â*RGB[] regTree = new RGB[]{new RGB(68, 79, 612), new RGB(101, 111, 33), new RGB(35, 44, 22)};
Â*Â*Â*Â*TreeWithTreantCheck yewTree = new TreeWithTreantCheck(regTree, "Yew",Â*Â*this);
Â*Â*Â*Â*//Strings
Â*Â*Â*Â*public String status = "";
Â*Â*Â*Â*//booleans
Â*Â*Â*Â*public boolean missingAxe = false;
Â*Â*Â*Â*public boolean isCutting = false;
Â*Â*Â*Â*//Ints
Â*Â*Â*Â*public int logCount = 0;
Â*Â*Â*Â*public int axesLost = 0;
Â*Â*Â*Â*public int bankCount = 0;
Â*Â*Â*Â*public int deathCount = 0;
Â*Â*Â*Â*//colors
Â*Â*Â*Â*//final Color red = new Color(0, 255, 255, 255);
Â*Â*Â*Â*public void AxeMissing() throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*missingAxe = true;
Â*Â*Â*Â*}
Â*Â*Â*Â*public void chat(String message) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(message.contains("logs")) {
Â*Â*Â*Â*Â*Â*Â*Â*logCount++;
Â*Â*Â*Â*Â*Â*Â*Â*}else if(message.contains("level to use")) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*missingAxe = true;
Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*}
Â*Â*Â*Â*public void paint(Graphics g) {
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.GREEN);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("EdgeYew Version " + version + " by Fiori", 4, 40);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.GREEN);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("Logs cut: " + logCount, 4, 60);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.BLUE);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("Bank Trips: " + bankCount, 4, 80);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.YELLOW);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("Axes Lost: " + axesLost, 4, 100);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.ORANGE);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("You died " + deathCount + " times", 4, 120);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.RED);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("Current Status: " + status, 4, 140);
Â*Â*Â*Â*}
Â*Â*Â*Â*public edgeYew(ColorBot b, String cmd, String args[])Â*Â*{
Â*Â*Â*Â*Â*Â*Â*Â*super(b, false);
Â*Â*Â*Â*}
Â*Â*Â*Â*//main loop
Â*Â*Â*Â*public void script()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*startAllRandoms();
Â*Â*Â*Â*Â*Â*Â*Â*yewTree.setSortingFromCenter(true) ;
Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*while(true) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*walkToTree();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(theTabs.Inventory.isFul l() && !isDead()) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*status = "Banking";
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*bankCount++;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*walkToBank();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*doBank();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*walkToTree();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(missingAxe == true) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*status = "Lost you're axe, getting a new one";
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*getNewAxe();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*missingAxe = false;Â*Â*
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(isDead()) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*status = "Died, walking back";
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*deathCount++;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*walkToTree();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(yewTree.chop() && !yewTree.isTreantVisible()) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*status = "Cutting tree";
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*isCutting = true;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Timer t = new Timer(25000);
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*do {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(yewTree .isTreantVisible()) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*wa lkToTree();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*sl eep(random(20000, 30000));
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*is Cutting = false;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(theTabs .InventoryV3.count("Broken axe") > 0) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*mi ssingAxe = true;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*is Cutting = false;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(t.isUp( )) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*is Cutting = false;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}while(isCutting);
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*}
Â*Â*Â*Â*public void walkToBank()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*theWorldMap.walkTo(bankTile);
Â*Â*Â*Â*}
Â*Â*Â*Â*public void walkToTree()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*theWorldMap.walkTo(treeTile);
Â*Â*Â*Â*}
Â*Â*Â*Â*public void doBank()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*theBank.doDepositAllButAxe();
Â*Â*Â*Â*Â*Â*Â*Â*sleep(random(2000,3000));
Â*Â*Â*Â*}
Â*Â*Â*Â*public void getNewAxe()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*axesLost++;
Â*Â*Â*Â*Â*Â*Â*Â*walkToBank();
Â*Â*Â*Â*Â*Â*Â*Â*theBank.doDepositAll();
Â*Â*Â*Â*Â*Â*Â*Â*theBank.doWithDraw1("Axe");
Â*Â*Â*Â*Â*Â*Â*Â*walkToTree();
Â*Â*Â*Â*}
Â*Â*Â*Â*public void setCam()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*theCamera.setCameraUp();
Â*Â*Â*Â*Â*Â*Â*Â*theCompass.setEast();
Â*Â*Â*Â*}
Â*Â*Â*Â*public boolean isDead()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*if(getLocation().distanceTo(deathT ile) <= 15) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*return true;
Â*Â*Â*Â*Â*Â*Â*Â*} else {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*return false;
Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*}
}
CopyRight©2007 Singod2
[Singod2]
import impsoft.nexus.bots.color.ColorBot;
import impsoft.nexus.bots.color.scriptable.*;
import impsoft.nexus.bots.color.scriptable.components.*;
import impsoft.nexus.bots.color.scriptable.components.bot tom.*;
import impsoft.nexus.bots.color.scriptable.components.gam escreen.*;
import impsoft.nexus.bots.color.scriptable.components.min imap.*;
import impsoft.nexus.bots.color.scriptable.components.tab .*;
import impsoft.nexus.bots.color.scriptable.interfaces.*;
import impsoft.nexus.bots.color.scriptable.objects.*;
import impsoft.nexus.bots.color.structures.*;
import impsoft.nexus.bots.color.util.*;
import impsoft.nexus.bots.reflection.objects.*;
import impsoft.nexus.bots.reflection.scriptable.component s.*;
import impsoft.nexus.bots.reflection.structures.*;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
public class edgeYew extends ColorScript implements ChatListener, AutoPaint, AxeMissingNotifier
{
Â*Â*Â*Â*//commands to show up
Â*Â*Â*Â*public static String[] commands = new String[] { "EdgeYew" };
Â*Â*Â*Â*//author(s) of script
Â*Â*Â*Â*public static String author = "Singod2";
Â*Â*Â*Â*//Description of script
Â*Â*Â*Â*public static String description = "Cuts and banks yew's from the trees in Edge";
Â*Â*Â*Â*//Version of script
Â*Â*Â*Â*public static double version = 3.1;
Â*Â*Â*Â*//Tiles
Â*Â*Â*Â*AryanTile bankTile = new AryanTile(3093, 3493);
Â*Â*Â*Â*AryanTile treeTile = new AryanTile(3086, 3476);
Â*Â*Â*Â*AryanTile deathTile = new AryanTile(3222, 3218);
Â*Â*Â*Â*//RGBS
Â*Â*Â*Â*RGB[] regTree = new RGB[]{new RGB(68, 79, 612), new RGB(101, 111, 33), new RGB(35, 44, 22)};
Â*Â*Â*Â*TreeWithTreantCheck yewTree = new TreeWithTreantCheck(regTree, "Yew",Â*Â*this);
Â*Â*Â*Â*//Strings
Â*Â*Â*Â*public String status = "";
Â*Â*Â*Â*//booleans
Â*Â*Â*Â*public boolean missingAxe = false;
Â*Â*Â*Â*public boolean isCutting = false;
Â*Â*Â*Â*//Ints
Â*Â*Â*Â*public int logCount = 0;
Â*Â*Â*Â*public int axesLost = 0;
Â*Â*Â*Â*public int bankCount = 0;
Â*Â*Â*Â*public int deathCount = 0;
Â*Â*Â*Â*//colors
Â*Â*Â*Â*//final Color red = new Color(0, 255, 255, 255);
Â*Â*Â*Â*public void AxeMissing() throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*missingAxe = true;
Â*Â*Â*Â*}
Â*Â*Â*Â*public void chat(String message) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(message.contains("logs")) {
Â*Â*Â*Â*Â*Â*Â*Â*logCount++;
Â*Â*Â*Â*Â*Â*Â*Â*}else if(message.contains("level to use")) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*missingAxe = true;
Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*}
Â*Â*Â*Â*public void paint(Graphics g) {
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.GREEN);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("EdgeYew Version " + version + " by Fiori", 4, 40);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.GREEN);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("Logs cut: " + logCount, 4, 60);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.BLUE);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("Bank Trips: " + bankCount, 4, 80);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.YELLOW);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("Axes Lost: " + axesLost, 4, 100);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.ORANGE);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("You died " + deathCount + " times", 4, 120);
Â*Â*Â*Â*Â*Â*Â*Â*g.setColor(Color.RED);
Â*Â*Â*Â*Â*Â*Â*Â*g.drawString("Current Status: " + status, 4, 140);
Â*Â*Â*Â*}
Â*Â*Â*Â*public edgeYew(ColorBot b, String cmd, String args[])Â*Â*{
Â*Â*Â*Â*Â*Â*Â*Â*super(b, false);
Â*Â*Â*Â*}
Â*Â*Â*Â*//main loop
Â*Â*Â*Â*public void script()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*startAllRandoms();
Â*Â*Â*Â*Â*Â*Â*Â*yewTree.setSortingFromCenter(true) ;
Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*while(true) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*walkToTree();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(theTabs.Inventory.isFul l() && !isDead()) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*status = "Banking";
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*bankCount++;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*walkToBank();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*doBank();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*walkToTree();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(missingAxe == true) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*status = "Lost you're axe, getting a new one";
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*getNewAxe();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*missingAxe = false;Â*Â*
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(isDead()) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*status = "Died, walking back";
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*deathCount++;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*walkToTree();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(yewTree.chop() && !yewTree.isTreantVisible()) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*status = "Cutting tree";
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*isCutting = true;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Timer t = new Timer(25000);
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*do {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*setCam();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(yewTree .isTreantVisible()) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*wa lkToTree();
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*sl eep(random(20000, 30000));
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*is Cutting = false;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(theTabs .InventoryV3.count("Broken axe") > 0) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*mi ssingAxe = true;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*is Cutting = false;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*if(t.isUp( )) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*is Cutting = false;
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}while(isCutting);
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*}
Â*Â*Â*Â*public void walkToBank()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*theWorldMap.walkTo(bankTile);
Â*Â*Â*Â*}
Â*Â*Â*Â*public void walkToTree()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*theWorldMap.walkTo(treeTile);
Â*Â*Â*Â*}
Â*Â*Â*Â*public void doBank()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*theBank.doDepositAllButAxe();
Â*Â*Â*Â*Â*Â*Â*Â*sleep(random(2000,3000));
Â*Â*Â*Â*}
Â*Â*Â*Â*public void getNewAxe()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*axesLost++;
Â*Â*Â*Â*Â*Â*Â*Â*walkToBank();
Â*Â*Â*Â*Â*Â*Â*Â*theBank.doDepositAll();
Â*Â*Â*Â*Â*Â*Â*Â*theBank.doWithDraw1("Axe");
Â*Â*Â*Â*Â*Â*Â*Â*walkToTree();
Â*Â*Â*Â*}
Â*Â*Â*Â*public void setCam()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*theCamera.setCameraUp();
Â*Â*Â*Â*Â*Â*Â*Â*theCompass.setEast();
Â*Â*Â*Â*}
Â*Â*Â*Â*public boolean isDead()throws InterruptedException {
Â*Â*Â*Â*Â*Â*Â*Â*if(getLocation().distanceTo(deathT ile) <= 15) {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*return true;
Â*Â*Â*Â*Â*Â*Â*Â*} else {
Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*return false;
Â*Â*Â*Â*Â*Â*Â*Â*}
Â*Â*Â*Â*}
}
CopyRight©2007 Singod2
[Singod2]