Thank you RSBot and Tenac

Discussion in 'RuneScape 3 Cheating' started by fatman101, Feb 17, 2009.

Thank you RSBot and Tenac
  1. Unread #1 - Feb 17, 2009 at 4:02 PM
  2. fatman101
    Joined:
    Mar 26, 2008
    Posts:
    167
    Referrals:
    0
    Sythe Gold:
    0

    fatman101 Active Member

    Thank you RSBot and Tenac

    Yes this account might have crap wc, but it's a start >_<

    [​IMG]

    I am hopefully gunna get 75 wc to hit the gold ;) (gettin kacey to do jad for me, that will be 4.5m goin outta ma RS wallet.)
     
  3. Unread #2 - Feb 17, 2009 at 4:05 PM
  4. enj0y
    Joined:
    Feb 5, 2009
    Posts:
    71
    Referrals:
    0
    Sythe Gold:
    0

    enj0y Member

    Thank you RSBot and Tenac

    lucky u can actually bot and grats on 60 wc :)
     
  5. Unread #3 - Feb 17, 2009 at 4:08 PM
  6. fatman101
    Joined:
    Mar 26, 2008
    Posts:
    167
    Referrals:
    0
    Sythe Gold:
    0

    fatman101 Active Member

    Thank you RSBot and Tenac

    I take it RSBot isnt working for you?
     
  7. Unread #4 - Feb 17, 2009 at 4:09 PM
  8. enj0y
    Joined:
    Feb 5, 2009
    Posts:
    71
    Referrals:
    0
    Sythe Gold:
    0

    enj0y Member

    Thank you RSBot and Tenac

    u seen my post already..linux+big fucking logn error of doom Dx
     
  9. Unread #5 - Feb 17, 2009 at 4:22 PM
  10. fatman101
    Joined:
    Mar 26, 2008
    Posts:
    167
    Referrals:
    0
    Sythe Gold:
    0

    fatman101 Active Member

    Thank you RSBot and Tenac

    oh god ya, im so stupid at times....
    why dont you dual boot windows on your comp?
    add my msn and i'll talk to you.... unless you're a linux fanboy.
    But u have to partition your hard drive...forgot to say that
     
  11. Unread #6 - Feb 17, 2009 at 4:36 PM
  12. enj0y
    Joined:
    Feb 5, 2009
    Posts:
    71
    Referrals:
    0
    Sythe Gold:
    0

    enj0y Member

    Thank you RSBot and Tenac

    added and im not fanboy..my s2pid bro wanted to use an UCE to hack gunbound so he installed linux and used same partition as window so now its gone ROFL
     
  13. Unread #7 - Feb 17, 2009 at 4:38 PM
  14. fatman101
    Joined:
    Mar 26, 2008
    Posts:
    167
    Referrals:
    0
    Sythe Gold:
    0

    fatman101 Active Member

    Thank you RSBot and Tenac

    ooooo unlucky....
     
  15. Unread #8 - Feb 17, 2009 at 4:39 PM
  16. d4rkk0
    Joined:
    Dec 11, 2008
    Posts:
    447
    Referrals:
    1
    Sythe Gold:
    0

    d4rkk0 Forum Addict

    Thank you RSBot and Tenac

    gratz bro :D
     
  17. Unread #9 - Feb 17, 2009 at 4:39 PM
  18. Eluveitie
    Joined:
    Dec 15, 2008
    Posts:
    2,177
    Referrals:
    2
    Sythe Gold:
    0

    Eluveitie Grand Master
    Banned

    Thank you RSBot and Tenac

    Grats, but don't bot too much or you'll get banned really fast.
     
  19. Unread #10 - Feb 17, 2009 at 4:47 PM
  20. boboboy7
    Joined:
    Feb 12, 2009
    Posts:
    45
    Referrals:
    0
    Sythe Gold:
    0

    boboboy7 Member

    Thank you RSBot and Tenac

    hi mate can u post the codes for TenacsDraynorWillowChopper script? thx =)
     
  21. Unread #11 - Feb 17, 2009 at 5:12 PM
  22. fatman101
    Joined:
    Mar 26, 2008
    Posts:
    167
    Referrals:
    0
    Sythe Gold:
    0

    fatman101 Active Member

    Thank you RSBot and Tenac

    yeah sure... jeez its a long post.

    import java.awt.*;
    import java.util.*;

    import com.speljohan.rsbot.bot.Bot;
    import com.speljohan.rsbot.script.*;
    import com.speljohan.rsbot.script.wrappers.*;
    import com.speljohan.rsbot.accessors.*;
    import com.speljohan.rsbot.event.listeners.PaintListener;

    public class TenacWillowChopper extends Script implements PaintListener {

    public int[] willowTreeID = { 1308, 5551, 5552, 5553 };
    public int[] banker1ID = { 494 };
    public int[] banker2ID = { 495 };
    public int[] bankBoothID = { 2213 };
    public int[] depositBoxID = { 9398 };
    public int willowLogID = 1519;

    public int[] axeID = { 1351, 1349, 1353, 1355, 1357, 1359, 6739 };
    public int[] brokenAxeID = { 494, 496, 498, 502, 504, 506, 6741 };
    //gems uncut, gems cut, beer, kebab,
    public int[] otherItems = { 1623, 1621, 1619, 1617, 1607, 1605, 1603, 1601, 1917, 1971 };
    public int goldPiecesID = 995;

    public RSTile willowTile1 = new RSTile(3087, 3235);
    public RSTile willowTile2 = new RSTile(3088, 3230);
    public RSTile bankTile = new RSTile(3093, 3243);
    public RSTile lumbridgeTile = new RSTile(3221, 3218);

    public RSTile[] walkBackPath = { new RSTile(3232, 3219), new RSTile(3232, 3230), new RSTile(3221, 3237),
    new RSTile(3216, 3247), new RSTile(3203, 3247), new RSTile(3189, 3246),
    new RSTile(3175, 3242), new RSTile(3161, 3240), new RSTile(3148, 3235),
    new RSTile(3134, 3229), new RSTile(3119, 3228), new RSTile(3106, 3234),
    new RSTile(3095, 3242) };

    public long startTime = System.currentTimeMillis();
    public int logsBanked = 0;
    public int logsDropped = 0;
    public int ranAwayFromCombat = 0;
    public int startingLevel = 0;
    public int startingExperience = 0;
    public int priceOfWillowLog = 18;
    public int entsAvoided = 0;
    public int numObjects = 0;
    public double xpPerWillow = 67.5;
    public boolean powerChopping = false;
    public int invCountToDrop = random(10, 29);
    public boolean dropping = false;

    public boolean lost = false;
    public boolean lumbridge = false;

    public double getVersion() {
    return 1.3;
    }

    public String getName() {
    return "Draynor Willow Chopper";
    }

    public String getAuthor() {
    return "Tenac";
    }

    public String getScriptCategory() {
    return "Woodcutting";
    }

    public String getScriptDescription( ) {
    String html = "";

    html += "<html>\n";
    html += "<body>\n";

    html += "<font size=\"6\">";
    html += "<center><h2>" + getName() + "</h2></center>\n";
    html += "</font>";

    html += "<b>Author:</b>" + getAuthor() + "<br/>";
    html += "<b>Version:</b>" + getVersion() + "<br/><br>";

    html += "Chops and banks willow logs in Draynor bank.<br>\n<br>";

    html += "<input type=\"checkbox\" name=\"powerchop\" value=\"yes\">Drop logs?\n";

    html += "</body>\n";
    html += "</html\n";

    return html;
    }

    public boolean onStart(Map<String, String> args) {
    startTime = System.currentTimeMillis();
    if(isLoggedIn()) {
    startingLevel = skills.getCurrentSkillLevel(STAT_WOODCUTTING);
    startingExperience = skills.getCurrentSkillExp(STAT_WOODCUTTING);
    setCameraAltitude(true);
    setCameraRotation(random(1, 359));
    setRun(true);
    }

    if(args.get("powerchop") != null)
    powerChopping = true;

    Bot.getEventManager().addListener(PaintListener.class, this);
    return true;
    }

    public void onFinish() {
    Bot.getEventManager().removeListener(PaintListener.class, this);
    }

    public void onRepaint(Graphics g) {
    if(isLoggedIn()) {
    if(startTime == 0)
    startTime = System.currentTimeMillis();

    if(startingLevel == 0 || startingExperience == 0) {
    startingLevel = skills.getCurrentSkillLevel(STAT_WOODCUTTING);
    startingExperience = skills.getCurrentSkillExp(STAT_WOODCUTTING);
    }

    long millis = System.currentTimeMillis() - startTime;
    long hours = millis / (1000 * 60 * 60);
    millis -= hours * (1000 * 60 * 60);
    long minutes = millis / (1000 * 60);
    millis -= minutes * (1000 * 60);
    long seconds = millis / 1000;

    g.setColor(new Color(33, 46, 207, 100));
    //window is (0, 0) (337, 515)
    //my box is (515 - 260, 0) (337, 200)
    int x = 515 - 230;
    int y = 4;
    g.fillRoundRect(x, y, 230, 155, 20, 20);
    g.setColor(new Color(26, 36, 162, 255));
    g.drawRoundRect(x, y, 230, 155, 20, 20);

    g.setColor(new Color(255, 255, 255, 255));
    g.drawString(getAuthor() + "'s " + getName() + " v" + getVersion(), x + 10, y += 15);
    g.drawString("Running for " + hours + ":" + minutes + ":" + seconds, x + 10, y += 15);
    if(powerChopping)
    g.drawString("Dropped " + logsDropped + " willow logs", x + 10, y += 15);
    else
    g.drawString("Banked " + logsBanked + " willow logs", x + 10, y += 15);
    g.drawString("Gained " + (logsBanked * priceOfWillowLog) + "gp", x + 10, y += 15);
    g.drawString("Currently level " + skills.getCurrentSkillLevel(STAT_WOODCUTTING) + " and " + skills.getPercentToNextLevel(STAT_WOODCUTTING) + "% to next level", x + 10, y += 15);
    g.drawString("Gained " + (skills.getCurrentSkillLevel(STAT_WOODCUTTING) - startingLevel) + " levels", x + 10, y += 15);
    g.drawString("Gained " + (skills.getCurrentSkillExp(STAT_WOODCUTTING) - startingExperience) + " experience", x + 10, y += 15);
    g.drawString("Ran from combat " + ranAwayFromCombat + " times", x + 10, y += 15);
    g.drawString("Avoided " + entsAvoided + " ents", x + 10, y += 15);
    g.drawString("" + (int)(skills.getXPToNextLevel(STAT_WOODCUTTING) / xpPerWillow + 1) + " more logs until next level", x + 10, y += 15);
    /*
    XpPerMin = skills.getCurrentSkillExp(WOODCUTTING_STAT) - startingExperience / (Minutes here);
    skills.getXPToNextLevel(WOODCUTTING_STAT) / XpPerMin
    */
    }
    }

    public void printProgressReport() {
    long millis = System.currentTimeMillis() - startTime;
    long hours = millis / (1000 * 60 * 60);
    millis -= hours * (1000 * 60 * 60);
    long minutes = millis / (1000 * 60);
    millis -= minutes * (1000 * 60);
    long seconds = millis / 1000;

    log(getAuthor() + "'s " + getName() + " v" + getVersion());
    log("Running for " + hours + ":" + minutes + ":" + seconds);
    if(powerChopping)
    log("Dropped " + logsDropped + " willow logs");
    else
    log("Banked " + logsBanked + " willow logs");
    log("Gained " + (logsBanked * priceOfWillowLog) + "gp");
    log("Currently level " + skills.getCurrentSkillLevel(STAT_WOODCUTTING) + " and " + skills.getPercentToNextLevel(STAT_WOODCUTTING) + "% to next level");
    log("Gained " + (skills.getCurrentSkillLevel(STAT_WOODCUTTING) - startingLevel) + " levels");
    log("Gained " + (skills.getCurrentSkillExp(STAT_WOODCUTTING) - startingExperience) + " experience");
    log("Ran from combat " + ranAwayFromCombat + " times");
    log("Avoided " + entsAvoided + " ents");
    log("" + (int)(skills.getXPToNextLevel(STAT_WOODCUTTING) / xpPerWillow + 1) + " more logs until next level");
    }

    public int loop() {
    if(!isLoggedIn())
    return random(200, 400);

    if(getMyPlayer().isInCombat())
    return runAway();

    if(checkForEnt())
    return random(100, 200);

    if(distanceTo(lumbridgeTile) <= 17) {
    lumbridge = true;
    lost = false;
    }

    if(!lumbridge && distanceTo(willowTile1) > 17 && distanceTo(willowTile2) > 17 && distanceTo(bankTile) > 17)
    lost = true;

    if(lost)
    return teleportToLumbridge();

    if(lumbridge) {
    if(myWalkPath(walkBackPath, 1)) {
    lumbridge = false;
    }
    return random(50, 200);
    }

    //if(isCarryingItem(brokenAxeID) || !isCarryingItem(axeID)) //broken for some reason
    if(isCarryingItem(brokenAxeID))
    return getNewAxe();

    if(powerChopping && (getInventoryCount() >= invCountToDrop || isInventoryFull()))
    dropping = true;

    if(dropping)
    return dropLogs();

    if(isInventoryFull() && !powerChopping)
    return depositInventory();

    return chopWillow();
    }

    public boolean checkForEnt() {
    //taken and modified from dontpanic
    if(getMyPlayer().getInteracting() != null) {
    int count = Bot.getClient().getNPCCount();
    NPC[] npcs = Bot.getClient().getNPCArray();
    int[] ints = Bot.getClient().getNPCIndexArray();
    for (int i = 0; i < count; i++) {
    RSNPC npc = new RSNPC(npcs[ints]);
    if(getMyPlayer().getInteracting().equals(npc) && Arrays.asList("Willow").contains(npc.getName())) {
    atTile(getMyPlayer().getLocation(), "alk here");
    entsAvoided++;
    return true;
    }
    }
    }
    return false;
    }

    public int runAway() {
    setRun(true);
    RSTile curentTile = getMyPlayer().getLocation();
    int xRand = random(-16, 16);
    int yRand = 16 - xRand;
    RSTile runawayTile = new RSTile(curentTile.getX() + xRand, curentTile.getY() + yRand);
    myWalkTile(runawayTile, 0);
    waitUntilNotMoving();
    wait(random(2200, 3800));
    myWalkTile(curentTile, 1);
    wait(random(50, 400));
    moveMouse(random(0, 515), random(0, 337));
    waitUntilNearTile(curentTile, 1);
    ranAwayFromCombat++;
    return random(50, 100);
    }

    public int getNumObjectAroundPlayer(int... ids) {
    int num = 0;
    for(int y = 1; y >= -1; y--) {
    for(int x = -1; x <= 1; x++) {
    RSObject obj = getObjectAt(getMyPlayer().getLocation().getX() + x, getMyPlayer().getLocation().getY() + y);
    if(obj != null) {
    for(int i = 0; i < ids.length; i++) {
    if(obj.getID() == ids) {
    num++;
    break;
    }
    }
    }
    }
    }
    return num;
    }

    public boolean atTree(int[] ids, String action) {
    RSObject obj = findObject(ids);
    if(obj == null)
    return false;
    /*
    0 1
    2 3
    */
    Point[] point = new Point[4];
    RSObject[] objs = new RSObject[4];
    for(int i = 0; i < 4; i++) {
    point = Calculations.tileToScreen(obj.getLocation());
    objs = obj;
    }
    boolean done = false;
    for(int y = 1; y >= -2; y--) {
    for(int x = -1; x <= 2; x++) {
    objs[0] = getObjectAt(obj.getLocation().getX() + x, obj.getLocation().getY() + y);
    objs[1] = getObjectAt(obj.getLocation().getX() + x + 1, obj.getLocation().getY() + y);
    objs[2] = getObjectAt(obj.getLocation().getX() + x, obj.getLocation().getY() + y - 1);
    objs[3] = getObjectAt(obj.getLocation().getX() + x + 1, obj.getLocation().getY() + y - 1);
    if(objs[0] != null && objs[1] != null && objs[2] != null && objs[3] != null) {
    if(objs[0].getID() == obj.getID() && objs[1].getID() == obj.getID() &&
    objs[2].getID() == obj.getID() && objs[3].getID() == obj.getID()) {
    point[0] = Calculations.tileToScreen(new RSTile(obj.getLocation().getX() + x, obj.getLocation().getY() + y));
    point[1] = Calculations.tileToScreen(new RSTile(obj.getLocation().getX() + x + 1, obj.getLocation().getY() + y));
    point[2] = Calculations.tileToScreen(new RSTile(obj.getLocation().getX() + x, obj.getLocation().getY() + y - 1));
    point[3] = Calculations.tileToScreen(new RSTile(obj.getLocation().getX() + x + 1, obj.getLocation().getY() + y - 1));
    done = true;
    break;
    }
    }
    }
    if(done)
    break;
    }
    for(int i = 0; i < 4; i++)
    if(point.x == -1 || point.y == -1)
    point = Calculations.tileToScreen(obj.getLocation());

    //find all the midpoints
    Point one = new Point((point[0].x + point[3].x) / 2, (point[0].y + point[3].y) / 2);
    Point two = new Point((point[1].x + point[2].x) / 2, (point[1].y + point[2].y) / 2);
    Point finalPoint = new Point((one.x + two.x) / 2, (one.y + two.y) / 2);
    finalPoint.y -= random(21, 27);

    moveMouse(finalPoint, 4, 4);
    if(getMenuItems().get(0).toLowerCase().contains(action.toLowerCase())) {
    clickMouse(true);
    waitUntilNotMoving();
    numObjects = getNumObjectAroundPlayer(willowTreeID);
    return true;
    } else {
    clickMouse(false);
    if(atMenu(action)) {
    numObjects = getNumObjectAroundPlayer(willowTreeID);
    return true;
    }
    setCameraRotation(random(1, 359));
    setCameraAltitude(true);
    }
    waitUntilNotMoving();
    return true;
    }

    public int chopWillow() {
    if(distanceTo(bankTile) < 6) {
    myWalkTile(willowTile1, 2);
    wait(random(50, 400));
    moveMouse(random(0, 515), random(0, 337));
    if(random(0, 2) == 0)
    setRun(true);
    waitUntilNotMoving();
    return random(25, 75);
    }
    //is the nearest tree is visible on the screen?
    RSObject obj = findObject(willowTreeID);
    if(obj != null) {
    if(!Calculations.onScreen(Calculations.tileToScreen(obj.getLocation()))) {
    if(distanceTo(willowTile1) < distanceTo(willowTile2))
    myWalkTile(willowTile2, 1);
    else
    myWalkTile(willowTile1, 1);
    wait(random(50, 400));
    moveMouse(random(0, 515), random(0, 337));
    waitUntilNotMoving();
    return random(500, 150);
    }
    }
    wait(random(80, 100));
    if(numObjects < getNumObjectAroundPlayer(willowTreeID)) {
    numObjects = getNumObjectAroundPlayer(willowTreeID);
    int r = random(0, 3);
    if(r == 0 || r == 1)
    atTree(willowTreeID, "own Will");
    return random(200, 400);
    }

    if(getMyPlayer().getAnimation() != -1) {
    return antiBan();
    }
    if(atTree(willowTreeID, "own Will")) {
    return random(200, 400);
    }
    return random(30, 60);
    }

    public int antiBan() {
    switch(random(0, 400)) {
    case 0: setCameraRotation(random(1, 359)); break;
    case 1: setCameraRotation(random(1, 359)); break;
    case 2: setCameraRotation(random(1, 359)); break;
    case 3: setCameraRotation(random(1, 359)); break;
    case 4: setCameraRotation(random(1, 359)); break;
    case 5: setCameraRotation(random(1, 359)); break;

    case 6: setCameraAltitude(true); break;
    case 7: setCameraAltitude(true); break;

    case 8: setRun(true); break;

    case 9: moveMouse(random(0, 515), random(0, 337)); break;
    case 10: moveMouse(random(0, 515), random(0, 337)); break;
    case 11: moveMouse(random(0, 515), random(0, 337)); break;
    case 12: moveMouse(random(0, 515), random(0, 337)); break;
    case 13: moveMouse(random(0, 515), random(0, 337)); break;
    case 14: moveMouse(random(0, 515), random(0, 337)); break;
    case 15: moveMouse(random(0, 764), random(0, 502)); break;
    case 16: moveMouse(random(0, 764), random(0, 502)); break;
    case 17: moveMouse(random(0, 764), random(0, 502)); break;

    case 18: openTab(TAB_INVENTORY); break;
    case 19: openTab(TAB_INVENTORY); break;
    case 20: openTab(TAB_STATS); break;
    case 21: openTab(TAB_STATS); break;
    case 22: openTab(random(0, 13)); break;
    case 23: openTab(random(0, 13)); break;
    case 24: openTab(random(0, 13)); break;

    case 25: atTree(willowTreeID, "own Will"); break;

    default: break;

    }
    return random(300, 500);
    }

    public int dropLogs() {
    if(!inventoryContainsOneOf(willowLogID) && !inventoryContainsOneOf(otherItems)) {
    RSItem item = getInventoryItemByID(goldPiecesID);
    if(item == null) {
    dropping = false;
    invCountToDrop = random(10, 29);
    return random(50, 75);
    }
    if(item != null) {
    if(item.getStackSize() > 5000) {
    dropping = false;
    invCountToDrop = random(10, 29);
    return random(50, 75);
    }
    }
    }
    if(atInventoryItem(willowLogID, "Drop")) {
    logsDropped++;
    wait(random(500, 700));
    return random(50, 75);
    }
    for(int i = 0; i < otherItems.length; i++) {
    if(inventoryContainsOneOf(otherItems)) {
    if(atInventoryItem(otherItems, "Drop")) {
    wait(random(500, 700));
    return random(50, 75);
    }
    }
    }
    RSItem item = getInventoryItemByID(goldPiecesID);
    if(item != null) {
    if(item.getStackSize() <= 5000) {
    atInventoryItem(goldPiecesID, "Drop");
    wait(random(500, 700));
    }
    }
    return random(50, 75);
    }

    public int depositInventory() {
    if(distanceTo(bankTile) > 17) {
    myWalkTile(willowTile1, 1);
    waitUntilNearTile(willowTile1, 2);
    return random(10, 50);
    }
    if(distanceTo(bankTile) > 6) {
    myWalkTile(bankTile, 1);
    wait(random(50, 300));
    if(random(0, 2) == 0)
    setRun(true);
    wait(random(50, 300));
    moveMouse(random(0, 515), random(0, 337));
    waitUntilNotMoving();
    return random(10, 50);
    }
    if(!RSInterface.getInterface(INTERFACE_BANK).isValid()) {
    switch(random(0, 2)) {
    case 0: atObject(findObject(bankBoothID), "uickl"); break;
    case 1: if(random(0, 2) == 0)
    atNPC(getNearestNPCByID(banker1ID), "ank Ba");
    else
    atNPC(getNearestNPCByID(banker2ID), "ank Ba");
    break;
    //case 2: atObject(findObject(depositBoxID), "sit Ban"); break;
    default: atObject(findObject(bankBoothID), "uickl"); break;
    }
    waitUntilNotMoving();
    return random(600, 150);
    }
    if(RSInterface.getInterface(INTERFACE_BANK).isValid()) {
    logsBanked += getInventoryCount(willowLogID);
    bank.depositAllExcept(axeID);
    if(random(0, 5) == 0)
    bank.close();
    }
    return random(50, 100);
    }

    public void unequipWeapon() {
    openTab(TAB_EQUIPMENT);
    RSInterface equip = RSInterface.getInterface(INTERFACE_TAB_EQUIPMENT);
    RSInterfaceChild weapon = equip.getChild(16);
    atInterface(weapon);
    wait(random(400, 800));
    openTab(TAB_INVENTORY);
    }

    public int getNewAxe() {
    if(equipmentContains(brokenAxeID)) {
    unequipWeapon();
    return random(50, 150);
    }
    if(distanceTo(bankTile) > 17) {
    myWalkTile(willowTile1, 2);
    waitUntilNotMoving();
    return random(50, 150);
    }
    if(distanceTo(bankTile) > 6) {
    myWalkTile(bankTile, 1);
    wait(random(50, 400));
    moveMouse(random(0, 515), random(0, 337));
    waitUntilNotMoving();
    return random(50, 150);
    }
    if(!RSInterface.getInterface(INTERFACE_BANK).isValid()) {
    switch(random(0, 2)) {
    case 0: atObject(findObject(bankBoothID), "uickl"); break;
    case 1: if(random(0, 2) == 0)
    atNPC(getNearestNPCByID(banker1ID), "ank Ba");
    else
    atNPC(getNearestNPCByID(banker2ID), "ank Ba");
    break;
    //case 2: atObject(findObject(depositBoxID), "sit Ban"); break;
    default: atObject(findObject(bankBoothID), "uickl"); break;
    }
    return random(300, 600);
    }
    waitUntilNotMoving();
    wait(random(500, 800));
    if(RSInterface.getInterface(INTERFACE_BANK).isValid()) {
    logsBanked += getInventoryCount(willowLogID);
    bank.depositAll();

    //broken since the bank methods are broken
    /*
    bank.setWithdrawModeToItem();
    int skillWC = skills.getCurrentSkillLevel(STAT_WOODCUTTING);
    for(int i = axeID.length - 1; i >= 0; i--) {
    if((skillWC >= 61 && i == 6) ||
    (skillWC >= 41 && i == 5) ||
    (skillWC >= 31 && i == 4) ||
    (skillWC >= 21 && i == 3) ||
    (skillWC >= 6 && i == 2) ||
    (skillWC >= 1 && i == 1) ||
    (skillWC >= 1 && i == 0)) {
    bank.atItem(axeID, "hdraw 1");
    break;
    }
    }
    wait(random(400, 900));
    if(skills.getCurrentSkillLevel(STAT_ATTACK) >= 61 && inventoryContainsOneOf(axeID[6]))
    atInventoryItem(axeID[5], "ield");
    else if(skills.getCurrentSkillLevel(STAT_ATTACK) >= 41 && inventoryContainsOneOf(axeID[5]))
    atInventoryItem(axeID[5], "ield");
    else if(skills.getCurrentSkillLevel(STAT_ATTACK) >= 31 && inventoryContainsOneOf(axeID[4]))
    atInventoryItem(axeID[4], "ield");
    else if(skills.getCurrentSkillLevel(STAT_ATTACK) >= 21 && inventoryContainsOneOf(axeID[3]))
    atInventoryItem(axeID[3], "ield");
    else if(skills.getCurrentSkillLevel(STAT_ATTACK) >= 6 && inventoryContainsOneOf(axeID[2]))
    atInventoryItem(axeID[2], "ield");
    else if(skills.getCurrentSkillLevel(STAT_ATTACK) >= 1 && inventoryContainsOneOf(axeID[1]))
    atInventoryItem(axeID[1], "ield");
    else if(skills.getCurrentSkillLevel(STAT_ATTACK) >= 1 && inventoryContainsOneOf(axeID[0]))
    atInventoryItem(axeID[0], "ield");
    */
    bank.close();
    }
    log("No useable woodcutting axe, ending script =(");
    printProgressReport();
    stopAllScripts();
    return random(200, 400);

    }

    int tries = 0;
    public int teleportToLumbridge() {
    if(distanceTo(lumbridgeTile) > 17) {
    openTab(Script.TAB_MAGIC);
    castSpell(1);
    wait(random(1500, 2400));
    if(getMyPlayer().getAnimation() != -1) {
    wait(random(12500,14000));
    lost = false;
    lumbridge = true;
    } else {
    tries++;
    if(tries >= 4) {
    log("Unable to teleport home, stopping script");
    printProgressReport();
    stopAllScripts();
    }
    }
    }
    myWalkTile(lumbridgeTile, 1);
    setRun(true);
    waitUntilNearTile(lumbridgeTile, 2);
    return random(100, 600);
    }

    public void waitUntilNotMoving() {
    wait(random(600, 700));
    while(getMyPlayer().isMoving())
    wait(random(25, 100));
    }

    public void waitUntilNearTile(RSTile tile, int dist) {
    wait(random(600, 700));
    while(distanceTo(tile) > dist && getMyPlayer().isMoving())
    wait(random(25, 100));
    }

    public boolean myWalkTile(RSTile theTile, int randomness) {
    if((distanceTo(theTile)) <= 17) {
    RSTile newTile;
    if(randomness == 0)
    newTile = new RSTile(theTile.getX(), theTile.getY());
    else
    newTile = new RSTile(theTile.getX() + random(-randomness, randomness), theTile.getY() + random(-randomness, randomness));

    if(random(0, 4) == 0)
    turnToTile(newTile, 15);

    if(tileOnScreen(newTile) && random(0, 8) == 0) {
    if(!atTile(newTile, "Walk")) {
    if(!walkTileMM(newTile)) {
    log("Failed walking to tile: (" + theTile.getX() + ", " + theTile.getY() + ")");
    return false;
    } else {
    return true;
    }
    } else {
    return true;
    }
    } else {
    if(!walkTileMM(newTile)) {
    log("Failed walking to tile: (" + theTile.getX() + ", " + theTile.getY() + ")");
    return false;
    } else {
    return true;
    }
    }
    } else {
    log("Tile out of reach: (" + theTile.getX() + ", " + theTile.getY() + ")");
    return false;
    }
    }

    public RSTile myGetNextTile(RSTile[] path) {
    for(int i = path.length - 1; i >= 0; i--) {
    if(distanceTo(path) <= 17) {
    return path;
    }
    }
    return null;
    }

    public boolean myWalkPath(RSTile[] path, int randomness) {
    if(distanceTo(path[path.length - 1]) <= 4) {
    return true;
    } else {
    RSTile theTile = myGetNextTile(path);
    if(theTile != null) {
    myWalkTile(theTile, randomness);
    waitUntilNearTile(theTile, 2);
    }
    return false;
    }
    }
    }
     
  23. Unread #12 - Feb 17, 2009 at 5:32 PM
  24. boboboy7
    Joined:
    Feb 12, 2009
    Posts:
    45
    Referrals:
    0
    Sythe Gold:
    0

    boboboy7 Member

    Thank you RSBot and Tenac

    thx =)
     
  25. Unread #13 - Feb 17, 2009 at 5:49 PM
  26. +Love+
    Joined:
    Nov 27, 2008
    Posts:
    1,870
    Referrals:
    1
    Sythe Gold:
    0

    +Love+ Guru
    Banned

    Thank you RSBot and Tenac

    i love tenac's scripts there near flawless i modified the guild miner a bit im working on 85 mining on another account now :)
     
  27. Unread #14 - Feb 17, 2009 at 5:53 PM
  28. boboboy7
    Joined:
    Feb 12, 2009
    Posts:
    45
    Referrals:
    0
    Sythe Gold:
    0

    boboboy7 Member

    Thank you RSBot and Tenac

    LOVE!!! can i try your modified tenacsmining scrript? =)
     
  29. Unread #15 - Feb 18, 2009 at 3:59 AM
  30. fatman101
    Joined:
    Mar 26, 2008
    Posts:
    167
    Referrals:
    0
    Sythe Gold:
    0

    fatman101 Active Member

    Thank you RSBot and Tenac

    Good luck ;) Btw i forgot to say congrats on your 99 mining thread, so yeah, Congrats!:nuts:
     
  31. Unread #16 - Feb 18, 2009 at 7:15 AM
  32. stuffs
    Joined:
    Nov 19, 2008
    Posts:
    1,778
    Referrals:
    3
    Sythe Gold:
    3

    stuffs Guru

    Thank you RSBot and Tenac

    Gratz on 60 wc, but.. Learn to post a picture, thumbnails are annoying as hell. And if someone asks for a script, PM it to them instead of making everyone scroll down past the script to see the rest of the topic.
     
  33. Unread #17 - Feb 18, 2009 at 10:03 AM
  34. fatman101
    Joined:
    Mar 26, 2008
    Posts:
    167
    Referrals:
    0
    Sythe Gold:
    0

    fatman101 Active Member

    Thank you RSBot and Tenac

    Right i'll keep those in mind for the next thread i make.
     
< How to compile? | World Map Closer. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site