Coder Social home page Coder Social logo

darkbot's People

Contributors

ash-breeze avatar darkstorm652 avatar harrygallagher4 avatar lflare avatar phanaticd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

darkbot's Issues

Change behavior and configurability of farming task.

When farming, if there are no blocks available to farm, the bot will take a default behavior to use /home to return to its home location on servers with /home support. This should not be default behavior.

sometimes when farming it just goes to spawn

Open-to-lan client servers send chat in a different format.

Normal servers send chat messages as {"text":" message"}. Servers on open-to-lan clients send them as {"translate":"chat.type.text","using":["username","message"]}, resulting in the bot (protocol 74) being unable to handle the message.

False alarm

Just to put it out there to those who are busy hoping for an update from the creator. I have bad news for all of you. Dark, also known as Robbin was part of a fatal car accident. He will be forever remembered by his family and friends. The culprit is still at large.

Fix method ChestInventory.selectItemAtWithShift

Bug: Method ChestInventory.selectItemAtWithShift crashes every time you call it with slot >= 54.

Fix:

@Override
public synchronized void selectItemAtWithShift(int slot) {
    delay();
    ItemStack item = getItemAt(slot);
    int rangeStart, rangeEnd;
    if(item == null)
        return;
    if(slot < items.length) {
        rangeStart = items.length;
        rangeEnd = items.length + inventory.length;
    } else {
        rangeStart = 0;
        rangeEnd = items.length;
    }
    boolean slotFound = false;
    for(int i = rangeStart; i < rangeEnd; i++) {
        if((slot < items.length ? inventory[i - items.length] : items[i]) == null) {
            if(slot < items.length) {
                items[slot] = null;
                inventory[i - items.length] = item;
            } else {
                items[i] = item;
                inventory[slot - items.length] = null;
            }
            slotFound = true;
            break;
        }
    }
    if(!slotFound)
        return;
    bot.getEventBus().fire(new InventoryChangeEvent(this, slot, 0, (short) 0, item, true));
}

I tried making a PR but i failed. My GitHub skills are just terrible, so I'm posting this as an issue with proposed fix.

Kick messages are cut off.

I left my bot online 24 hours on a drug server farming for "weed" but I found out that after about 2 hours in-game, it clipped into a block multiple times and then disconnected with "bad packet". It could be NCP but can there be a fix so when the bot gets kicked, it can display the reason?

Argument Help

So sorry for posting it here. I'm running Mac OS X and I compiled it correctly. However, I can't seen to get the args right. Also it says something about a new line token?

Any help? Thanks

BlockChangeEvent fired with coordinates of block within chunk

In some cases the BlockChangeEvent is fired with wrong coordinates. In many cases these coordinates appear to be block coordinates within chunks. It happened in these cases:

  • When a block with other block attached to it is destroyed both of these block fire BlockChangeEvent with chunk coordinates.
  • When interacting with blocks that are close to the player.

Inventory interactions are not functional on all protocols

Inventory interactions were broken by the transition to external protocol handling. All attempts to move things in inventory via packet 102 result in transactions (via packet 106) to be not accepted.
(Edited by DarkStorm for actual bug causing previously reported issue below)

Sorry if this is too much but can the inventory management be improved to match nocheat's standard? When farming, my bot can't store the items in the chest because it's clicking too fast. Also, it is next to impossible for the bot to equip armor, drop items and drop inventory because of that.

If you don't have any idea of what I'm talking about, I mean something like WeepCraft's dropping mechanic where there is a slight delay between each item stack.

Annoying Bot Owner bug.

while botting a random server for fun some random person was able to do commands to the bots without being owner how is basically very easy you say the owners name and then a command ex Notch is the owner and a random player named popcorn can command bots by saying this in chat: " Notch !say HI" they bots will then say hi without notch doing a command and fooling the bots that Notch gave them a command.

What is the problem?

Hello !!, sorr for my bad english ;)
I have error when connect the server the server is v 1.7.2
ERRORS:
[BOT] Connecting... [BOT] Error: Unable to connect (java.lang.NullPointerException)
This is of DarkBotMC Launcher and when use in cmd my console have millions errors
Pls i need help ;(

GUI uses outdated login handler.

If I run through command line or through the GUI, I keep getting "java.net.UnknownHostException: login.minecraft.net". Did the login code break?

Teams

DarkBot should have the ability to retrieve scoreboard teams

Minecraft source example:

public String getTeam(GuiPlayerInfo playerInfo) {
    ScorePlayerTeam playerTeam = getWorld().getScoreboard().getPlayersTeam(playerInfo.name);
    return ScorePlayerTeam.formatPlayerName(playerTeam, playerInfo.name);
}

Mac: Bot disconnects on every server I join.

Whenever I attempt to join a server, I receive the following error:

at java.lang.Thread.run(Thread.java:744) [UnemployedWalrus] Disconnected: Read error: java.io.IOException: End of stream

When I connect with my normal account, I receive no error.

Extra information:

  • Running Mac OSX
  • Compiled with Eclipse Build 20140224-0627
  • The DarkBot branch in Eclipse has caution triangles on /src/main/java and > src.

Any help is appreciated, and I would be happy to supply more information if necessary.

Thank you,
Will Minnis

Update protocol to 1.7

Currently protocol is only for 1.5 and 1.6 versions of Minecraft. Update would be really nice, even though you didn't commit anything to this project for 4 months...

Compiling doesn't work?

When I compile with the new gradle method I just get a emtpy 1kb jar file with "gradle build" Is it not fully set up yet or am I doing something wrong?

Notcheatplus stops bots from falling correctly

For some reason when a bot falls it is slower than normal player fall speed so servers with no cheat plus will think the bot is flying, if it falls from 6 blocks or higher it will die from constantly get fall damage when getting teleported up and hitting the ground and die. If the fall is higher the bot will get kicked for flying You should if you have anytime add a new parameter like --nocheatplus or --nocheat i find this a bit annoying but everything else is nice.

Suggestion: If you could add something to stop the bot from attacking the owner or a player when !attackall is being used that would be nice too.

-Glitch

Proxy dont work!

I have 4k proxies servers. But i can't register bots on server, beacouse I can register only 1 acount per 1 IP. PROXY DONT WORK!

EOFException

When I try to run DarkBot I get the following error message and I don't know how to solve it / interpret it^^

C:\Users\Luca\DarkBot\DarkBotMaster>java -jar DarkBot.jar -t bot -o Mike_Dillon
-u <my email address> -p <my password> -s 127.0.0.1
[JackDawn] YggdrasilSession{username=JackDawn,password=<my password>,accessToken=<some random letters>,clientToken=<more letters>,selectedProfile=YggdrasilSession.Profile{id=<again more letters>,name=JackDawn},availableProfiles=[YggdrasilSession.Profile{id=<and some letters the last time>,name=JackDawn}]}
java.io.EOFException
        at java.io.DataInputStream.readInt(Unknown Source)
        at org.darkstorm.darkbot.minecraftbot.protocol.AbstractProtocol.readHeader(Unknown Source)
        at org.darkstorm.darkbot.minecraftbot.protocol.SocketConnectionHandler$ReadTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[JackDawn] Disconnected: Read error: java.io.EOFException

EDIT: I have a localhost server with version 1.7.9 vanilla running where I try to connect to.

Random Enhancements & Bugs

List of Stuff + I found 404

The destroy command acts very weird the bot will say Destroying! and wont do anything unless you break blocks all around it and break the block its trying to break.

Bots will be kicked on join if standing afk for 10 seconds

Weird reactions to Skeletons randomly crouches until skeleton kills bot

when bots are Mining in !Mine Gravel makes them spaz out

Enhancements:

When handling a command that has a x y z in it you could add support for the ~ sysmbol like in minecraft commands ex: /setblock ~3 ~-1 ~4 Dirt

commands through console Like in a minecraft server in the console you could type normal chat commands without the !

!derp !twerk on spambot

A !sprint command?

!mine on spambot or !destroy? maby like make all bots mass mine?

a --mute parameter or something to stop bots from talking completely

Thanks for reading my Suggestions & Bugs :D

Also i noticed the --tor parameter is that not fully added yet or is there some way i can use it?

Fix resource collection and drop pickup in various tasks.

The mining task will miss adjacent ores in veins and ore drops as a result of the implementation (or lack thereof), and the tree chopping task can have log cutting improved.

There needs to be a way to make it pick up drops within like 3-4 blocks when mineing or choping trees because it misses lots of blocks

Add ability to disconnect if a player is online.

Disconnects as soon as a player joins a server.

Example being running a bot on a server for 24/7, getting the bot to automatically disconnect if a player comes online like the staff. It would be handy to be able to input a list of players for the bot to watch out for and if they are online, the bot automatically disconnects.

Error connecting: java.lang.NullPointerException

I compiled darkbot from this fork:
https://github.com/DarkStorm652/DarkBot/tree/8a7234b136e8d24d910c0d96c3f4b1fbd5691847

After compiling I tried to run it but with no success.

I get This error message:
[Bot0] Error connecting: java.lang.NullPointerException
[Bot4] Error connecting: java.lang.NullPointerException
[Bot8] Error connecting: java.lang.NullPointerException
[Bot3] Error connecting: java.lang.NullPointerException
[Bot6] Error connecting: java.lang.NullPointerException
[Bot2] Error connecting: java.lang.NullPointerException
[Bot1] Error connecting: java.lang.NullPointerException
[Bot7] Error connecting: java.lang.NullPointerException
[Bot7] Error connecting: java.lang.NullPointerException
[Bot1] Error connecting: java.lang.NullPointerException
[Bot2] Error connecting: java.lang.NullPointerException
[Bot6] Error connecting: java.lang.NullPointerException
[Bot3] Error connecting: java.lang.NullPointerException
[Bot8] Error connecting: java.lang.NullPointerException
...

Startup line:
java -jar DarkBot.jar -t spambot -O -a --tor -b 10 -s 69.69.69.69:1337 -o LosTigeros --protocol 4 -d 0

IP <3

._.

Payment

Hey DarkStorm652,

Since you finally started re-coding DarkBot, can I have your PayPal email? I'll drop you funds for a coffee :)

PLEASE, HELP!

When I try to join a server i have:
[vvmapmcwpqljkvl] Done! (1)
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.protocol.AbstractProtocol.readHead
er(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.protocol.SocketConnectionHandler$R
eadTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[vvmapmcwpqljkvl] Disconnected: Read error: java.io.EOFException

Protocol support

Protocols does not work for me.

"No protocol support for v4/5/etc. found"

What should I do?

Spambot on Non offline servers

Well first off, when using the Spambot on non offline servers with account list and proxy list a lot of @$!% happens a REALLY lot of spam and a lot of "account failed" I'm not talking about proxy's not working or alts not working i have 40 accounts logged in but when i press join only 2 join the server!?! with the delay at 5000 and most of the joins give me "account failed" Not that the username or password is wrong.
The main reason im posting this is this spam bot called "Apocalypse Bot" does not even use proxy's "they don't work" and it has premium accounts join very fast on servers without connection throttled "you can just change the throttle delay to 6000 on Apocalypse Bot" now I'm not here to say darkbot sucks and this other bot thing is better its just that this other spam bot Apocalypse Bot can join servers without http proxy's or socks at a fast speed and darkbot requires proxy's.... I'm just a bit confused on how apocalypse Bot is working with out getting you blacklisted from mojang login for 30 mins.....
Im going to include the program "ApocalypseBot.jar" if you would like to scan the program and see what it does and maby use its methods in darkbot the only reason me wanting this to be in darkbot is so i can have 50 bots following me around and bypassing the "you cannot chat until you move!" thing..
I hope you found this interesting if this could be added or copied into darkbot that would be wonderful!

download link to Apocalypse bot (made by Klintos) GUI only
https://dl.dropboxusercontent.com/s/ba05dyv9rgr1fvk/ApocalypseBot.jar

No support for protocol v338

[Bot] Error connecting: org.darkstorm.darkbot.minecraftbot.protocol.UnsupportedProtocolException: No protocol support for v338 found.
org.darkstorm.darkbot.minecraftbot.protocol.UnsupportedProtocolException: No protocol support for v338 found.
        at org.darkstorm.darkbot.minecraftbot.MinecraftBot.<init>(Unknown Source)
        at org.darkstorm.darkbot.minecraftbot.MinecraftBot.<init>(Unknown Source)
        at org.darkstorm.darkbot.minecraftbot.MinecraftBot$Builder.build(Unknown Source)
        at org.darkstorm.darkbot.mcwrapper.cli.CLIBotWrapper.createBot(Unknown Source)
        at org.darkstorm.darkbot.mcwrapper.cli.CLIBotWrapper.main(Unknown Source)
        at org.darkstorm.darkbot.mcwrapper.Main.main(Unknown Source)

own nicks?

darkstorm, you can add own nicks? (nicks.txt)

Disconnected: Read error: java.io.EOFException

I can not connect to any server:
[ATOM] Disconnected: Read error: java.io.EOFException
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.protocol.AbstractProtocol.readHeader(AbstractProtocol.java:43)
at org.darkstorm.darkbot.minecraftbot.protocol.SocketConnectionHandler$ReadTask.run(SocketConnectionHandler.java:263)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

On the server:
java.io.IOExeption: Bad packet id 84
at ey.a(SourceFile:185)
at co.i(SourceFile:249)
at co.c(SourceFile:17)
at cp.run(SourceFile:94)
Disconnecting /127.0.0.1:52799: Protocol error
/127.0.0.1:52799 lost connection

Startup line:
java -jar DarkBot.jar --type bot --protocol 78 --offline --username ATOM --owner OXAYAZA --server localhost:25565

Drops

There needs to be a way to make it pick up drops within like 3-4 blocks when mineing or choping trees because it misses lots of blocks

Example Code

Hello DarkStorm652,

for beginners, it's very difficult to use your library. Couldn't you add an example code which makes a player join or something like that? It would be very helpful!

Greetings, xTACTIXzZ.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.