• Log in or sign up for an account here: https://www.sythe.org/login

Request: Good yew Chopper (Not at G.E)

thegreatjz

Newcomer
Joined
Feb 25, 2008
Sythe Gold
0
Messages
11
Hey guys, im looking for a good yew chopper for Rsbot, but id rather it not be a varock chopper since i think it's more likely to be banned there. im looking for somewhere like catherby, or a working version of chopniak. It would be greatly appreciated if you could name one you recommend and send me it. thanks!:laugh:
 
Draggins Yew Cutter is a flawless script, Its a catherby cutter. I run it overnight all the time. Has Gotten me 20+mill so far.
 
draggins yews for p2p catherby

import java.awt.Color;
import java.awt.Graphics;
import java.util.Arrays;

import com.speljohan.rsbot.accessors.NPC;
import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.event.events.ServerMessageEvent;
import com.speljohan.rsbot.event.listeners.PaintListener;
import com.speljohan.rsbot.event.listeners.ServerMessageListener;
import com.speljohan.rsbot.script.Script;
import com.speljohan.rsbot.script.MouseHandler;
import com.speljohan.rsbot.script.wrappers.RSInterface;
import com.speljohan.rsbot.script.wrappers.RSItemTile;
import com.speljohan.rsbot.script.wrappers.RSNPC;
import com.speljohan.rsbot.script.wrappers.RSObject;
import com.speljohan.rsbot.script.wrappers.RSTile;
import com.speljohan.rsbot.script.wrappers.RSTilePath;

public class DragginYews extends Script implements PaintListener,
ServerMessageListener {

RSTile[] treeLocs = new RSTile[] { new RSTile(2758, 3434),
new RSTile(2760, 3428), new RSTile(2761, 3432),
new RSTile(2756, 3431), new RSTile(2755, 3434),
new RSTile(2766, 3428) };

private final int[] nestIds = { 5070, 5071, 5072, 5073, 5074, 5075, 5076,
7413, 11966 };

int[] axeID = new int[] { 1351, 1349, 1353, 1361, 1355, 1357, 1359, 6739,
13470 };
int[] yewTree = new int[] { 1309, 8503, 8504, 8505, 8506, 8507, 8508, 8509,
8510, 8511, 8512, 8513 };
int lastTreeIndex;
Color BG = new Color(0, 0, 0, 100);

RSTile[] deathPath = new RSTile[] { new RSTile(3222, 3216),
new RSTile(3227, 3234), new RSTile(3218, 3251),
new RSTile(3199, 3246), new RSTile(3162, 3240),
new RSTile(3143, 3234), new RSTile(3127, 3222),
new RSTile(3113, 3224), new RSTile(3102, 3240),
new RSTile(3103, 3259), new RSTile(3105, 3272),
new RSTile(3097, 3286), new RSTile(3078, 3282),
new RSTile(3062, 3275), new RSTile(3042, 3272),
new RSTile(3024, 3276), new RSTile(3010, 3281),
new RSTile(3007, 3294), new RSTile(3008, 3312),
new RSTile(3006, 3344), new RSTile(3001, 3356),
new RSTile(2998, 3363), new RSTile(2989, 3371),
new RSTile(2974, 3379), new RSTile(2965, 3394),
new RSTile(2961, 3410), new RSTile(2951, 3422),
new RSTile(2946, 3434), new RSTile(2939, 3451),
new RSTile(2924, 3449), new RSTile(2918, 3433),
new RSTile(2908, 3419), new RSTile(2891, 3422),
new RSTile(2875, 3429), new RSTile(2866, 3455),
new RSTile(2858, 3466), new RSTile(2856, 3480),
new RSTile(2862, 3494), new RSTile(2855, 3509),
new RSTile(2841, 3507), new RSTile(2851, 3496),
new RSTile(2848, 3479), new RSTile(2843, 3468),
new RSTile(2844, 3459), new RSTile(2853, 3445),
new RSTile(2842, 3432), new RSTile(2829, 3438),
new RSTile(2812, 3436), new RSTile(2797, 3433),
new RSTile(2784, 3442), new RSTile(2778, 3447),
new RSTile(2773, 3454), new RSTile(2763, 3466),
new RSTile(2759, 3471), new RSTile(2750, 3474),
new RSTile(2742, 3476), new RSTile(2727, 2484),
new RSTile(2725, 3491), new RSTile(2726, 3493) };
RSTilePath deathWalk = new RSTilePath(randomizePath(deathPath, 2, 2), this);

RSTile[] bankToTrees = new RSTile[] {
new RSTile(2809, 3441), new RSTile(2803, 3433), new RSTile(2788, 3432), new RSTile(2772, 3432), new RSTile(2759, 3430) };

RSTile[] treesToBank = reversePath(bankToTrees);
RSTilePath bank2Trees = new RSTilePath(randomizePath(bankToTrees, 2, 2), this);
RSTilePath trees2Bank = new RSTilePath(randomizePath(treesToBank, 2, 2), this);

long avoidedCombat;
int bankID = 2213;
int yewsCut;
long didAntiBan;
int waitAfterMoving = -1;
int failCount = 0;
int ENT = 0;
int Nest = 0;
int previousSpeed;
int treeID = 1309;
int lastExp;
int chopped;
int startingLevel = 0;
int startingExperience = 0;

RSNPC ent;

public long startTime = System.currentTimeMillis();

@Override
public double getVersion() {
return (8);
}

@Override
public String getName() {
return ("Draggin's Yew's with paint");
}

// some creds to pazzila
@Override
public String getAuthor() {
return ("Draggin");
}

@Override
public String getScriptCategory() {
return ("Draggin/Woodcutting");
}

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

html += "<html>\n";
html += "<head>";
html += "<style type=\"text/css\"> hr {color: blue} p {margin-left: 20px} body {background-image: url(\"http://i42.tinypic.com/16gzz2g.png\")}</style>";
html += "</head>";
html += "<body>";
html += "<h1><font size=\"4\" color=\"blue\" Draggin's Yews</h1><br>";

html += "<font size=\"4\" color=\"blue\"Chops Yew trees in Catherby and then banks them! :P<br><br>";
html += "<font size=\"4\" color=\"blue\"<ul><b>Features:</b>";
html += "<font size=\"4\" color=\"blue\"<li>Flawless ent detection! </li>";
html += "<font size=\"4\" color=\"blue\"<li>Fast tree switching!</li>";
html += "<font size=\"4\" color=\"blue\"<li>Flawless nest picking up!</li>";
html += "<font size=\"4\" color=\"blue\"<li>Use your own antiban</li>";
html += "<font size=\"4\" color=\"blue\"<li>Axe Can Be Equipped or In Inventory</li>";
html += "<font size=\"4\" color=\"blue\"<li>Handles Combat</li>";
html += "</ul>";
html += "</body>";
html += "</html>";

return (html);
}

@Override
public boolean onStart(final String[] args) {
try {
previousSpeed = MouseHandler.MouseSpeed;
MouseHandler.MouseSpeed = 6;
log("Draggin's Yew's");
log("----------------------------");
log("The future of Yew scripts!");
log("But behold, The Future is here");
log("Welcome to... Draggin's Yew's");
log("/--------------------------");

log("D");
wait(random(30, 60));
log("Dr");
wait(random(30, 60));
log("Dra");
wait(random(30, 60));
log("Drag");
wait(random(30, 60));
log("Dragg");
wait(random(30, 60));
log("Draggi");
wait(random(30, 60));
log("Draggin");
wait(random(30, 60));
log("Draggin Y");
wait(random(30, 60));
log("Draggin Ye");
wait(random(30, 60));
log("Draggin Yew");
wait(random(30, 60));
log("Draggin Yews");
wait(random(30, 60));
log("Draggin Yews H");
wait(random(30, 60));
log("Draggin Yews Ha");
wait(random(30, 60));
log("Draggin Yews Has");
wait(random(30, 60));
log("Draggin Yews Has N");
wait(random(30, 60));
log("Draggin Yews Has No");
wait(random(30, 60));
log("Draggin Yews Has Now");
wait(random(30, 60));
log("Draggin Yews Has Now B");
wait(random(30, 60));
log("Draggin Yews Has Now Be");
wait(random(30, 60));
log("Draggin Yews Has Now Bee");
wait(random(30, 60));
log("Draggin Yews Has Now Been");
wait(random(30, 60));
log("Draggin Yews Has Now Been I");
wait(random(30, 60));
log("Draggin Yews Has Now Been In");
wait(random(30, 60));
log("Draggin Yews Has Now Been Ini");
wait(random(30, 60));
log("Draggin Yews Has Now Been Init");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initi");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initia");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initial");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initiali");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initializ");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initialize");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initialized");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initialized,");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initialized, T");
wait(random(30, 60));
log("Draggin Yews Has Now Been Initialized, TY");
wait(random(30, 60));
log("Seagulls FTW!");
wait(random(30, 60));
}
catch ( Exception e ) {

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

return (true);
}

@Override
public void onFinish() {
MouseHandler.MouseSpeed = previousSpeed;
Bot.getEventManager().removeListener(ServerMessageListener.class, this);
}

public void serverMessageRecieved(final ServerMessageEvent e) {
if (e.getMessage().contains("You get some yew logs.")) {
yewsCut++;
}
}

public int closestTree(final RSTile[] tiles) {
int closest = -1;
for (int i = 0; i < tiles.length; i++) {
final RSTile tile = tiles;
if (getObjectAt(tile) != null) {
if (closest == -1 && isTree(getObjectAt(tile).getID())) {
closest = i;
continue;
}
if (closest == -1) {
continue;
}
if (isTree(getObjectAt(tile).getID())
&& distanceTo(getObjectAt(tile)) < distanceTo(getObjectAt(tiles[closest])))
closest = i;
}
}
return closest;
}

public boolean isTree(final int treeID) {
for (final int id : yewTree) {
if (id == treeID)
return true;
}
return false;
}

public boolean attackedByEnt() {
ent = null;
ENT++;
ent = getNearestNPCByName("Yew");
if (ent == null || getMyPlayer().getInteracting() == null) {
return false;
}
return getMyPlayer().getInteracting().equals(ent);
}

public boolean isWelcomeButton() {
final RSInterface welcomeInterface = RSInterface.getInterface(378);
if (welcomeInterface.getChild(45).getAbsoluteX() > 20
|| (!welcomeInterface.getChild(117).getText().equals(
"10.1120.190") && !welcomeInterface.getChild(117)
.getText().equals(""))) {
log("We still are in Welcome Screen");
return true;
} else {
return false;
}
}

public boolean checkForEnt() {
// taken and modified from dontpanic ( Taken from Tenac's willowcutter.)
if (getMyPlayer().getInteracting() != null) {
final int count = Bot.getClient().getNPCCount();
final NPC[] npcs = Bot.getClient().getNPCArray();
final int[] ints = Bot.getClient().getNPCIndexArray();
for (int i = 0; i < count; i++) {
final RSNPC npc = new RSNPC(npcs[ints]);
if (getMyPlayer().getInteracting().equals(npc)
&& Arrays.asList("Yew").contains(npc.getName())) {
atTile(getMyPlayer().getLocation(), "alk here");
ENT++;

return true;
}
}
}
return false;
}

public void checkEnt() {
ent = null;
ent = getNearestNPCByName("Yew");
if (getMyPlayer().getInteracting().equals(ent)) {
atTile(getMyPlayer().getLocation(), "alk here");
}

}

@Override
public int loop() {
try {
final RSObject bankBooth = findObject(bankID);
if (checkForEnt()) {
return random(100, 200);
}
setMaxAltitude();
nest();
if (getEnergy() > random(60, 100)) {
setRun(true);
}
if (getMyPlayer().isInCombat() && !getMyPlayer().isMoving())
{
log("In combat, attempting to run..");
runAway();
return random(400, 700);
}
if (!isInventoryFull()
&& distanceBetween(getMyPlayer().getLocation(), treeLocs[3]) > 15) {
try {
bank2Trees.walkToEnd();
} catch (final Exception e) {
}
}
if (isInventoryFull()
&& distanceBetween(getMyPlayer().getLocation(), new RSTile(
2809, 3440)) > 10) {
try {
trees2Bank.walkToEnd();

} catch (final Exception e) {
}
}

if (distanceBetween(getMyPlayer().getLocation(), new RSTile(2809,
3440)) <= 10) {
if (isInventoryFull()) {
if (tileOnScreen(bankBooth.getLocation())) {
atObject(bankBooth, "use-quickly");
wait(random(1000, 2000));
}
if (bank.getInterface().isValid()) {
try {
bank.depositAllExcept(axeID);
} catch (final Exception e) {
}
bank.close();
}
}
if (!isInventoryFull()) {
try {
bank2Trees.walkToEnd();
} catch (final Exception e) {
}
}
return random(200, 400);
}

if (distanceBetween(getMyPlayer().getLocation(), treeLocs[3]) <= 15) {
if (!isInventoryFull()) {
final int treeIndex = closestTree(treeLocs);
if (treeIndex != -1
&& distanceTo(treeLocs[treeIndex]) <= 14) {
if (inventoryContains(1511))
if (getMyPlayer().getAnimation() != -1
&& lastTreeIndex == treeIndex)
return random(100, 200);
lastTreeIndex = treeIndex;
if (tileOnScreen(treeLocs[treeIndex])
&& getMyPlayer().getAnimation() == -1) {
atTile(treeLocs[treeIndex], "chop");
return random(500, 1000);
}
if (getMyPlayer().getAnimation() == -1) {
walkTileMM(new RSTile(treeLocs[treeIndex].getX(), treeLocs[treeIndex].getY() - 1));
}
return random(350, 700);
}
}
if (isInventoryFull()) {
try {
trees2Bank.walkToEnd();
} catch (final Exception e) {
}
}
}
}
catch (final Exception e) {
}

return (random(500, 1000));
}

public void nest() {
final RSItemTile nest = getGroundItemByID(nestIds);
if (nest != null) {
log("Found nest");
atTile(nest, "Take");
Nest++;
}
}

public void setMaxAltitude() {
Bot.getInputManager().pressKey((char) 38);
wait(random(500, 1000));
Bot.getInputManager().releaseKey((char) 38);
}

public void runAway() {
RSTile drag, bar;
drag = getMyPlayer().getLocation();
setRun(true);

bar = new RSTile(drag.getX() + random(10, 12), drag.getY() + random(10, 12));

walkTileMM(bar);
while (getMyPlayer().isMoving()) {
wait(random(2000, 4000));
}
wait(random(3000, 5000));
walkTileMM(drag);
}


public void onRepaint(final Graphics g) {
if (isLoggedIn()) {
long millis = System.currentTimeMillis() - startTime;
if (lastExp == 0)
lastExp = skills.getCurrentSkillExp(STAT_WOODCUTTING);

if (skills.getCurrentSkillExp(STAT_WOODCUTTING) > lastExp) {
lastExp = skills.getCurrentSkillExp(STAT_WOODCUTTING);
chopped++;
}

if (startingLevel == 0 || startingExperience == 0) {
startingLevel = skills.getCurrentSkillLevel(STAT_WOODCUTTING);
startingExperience = skills
.getCurrentSkillExp(STAT_WOODCUTTING);
}
final long hours = millis / (1000 * 60 * 60);
millis -= hours * (1000 * 60 * 60);
final long minutes = millis / (1000 * 60);
millis -= minutes * (1000 * 60);
final long seconds = millis / 1000;
final int topX = 515 - 173, topY = 340 - 80, x = topX + 5;
int y = topY + 5;
g.setColor(BG);
g.fill3DRect(topX, topY, 515 - topX, 340 - topY, true);
g.setColor(Color.cyan);
g.drawString(getName(), x, y += 13);
g.drawString("Runtime: " + hours + "h " + minutes + "min "
+ seconds + "sec.", x, y += 13);
g.drawString("Yews chopped:: " + (yewsCut / 2), x, y += 13);
g
.drawString(
"Gained "
+ (skills
.getCurrentSkillLevel(STAT_WOODCUTTING) - startingLevel)
+ " levels", x, y += 13);
g.drawString(skills.getXPToNextLevel(STAT_WOODCUTTING)
+ " XP to next level.", x, y += 13);
}
}

}
 
Awesome thanks, I hope it works well because the version I use to used once syood iutside of catherby bank for 7 fucking hours-.-
 
hmm i tried compiling it to get the Class file of it but im getting an error.Any solution to this?
 
make sure you paste that code into notepad and save it as DragginYews.java (caps DO matter) then put the file into the scripts folder in rsbot, compile, and it should work
 
im sure that i named the file right but im still getting the errors when compiling.
 
Runescape Gamblingrunescape gambling
Back
Top