Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
I recently noticed that there are no tutorials on the forum about how to make a bot. So I decompiled some of the more complicated bots and found how they work. (Moderators: If this is in the wrong section, feel free to move it )
Tutorial:
The first thing you have to do is put the player.io dll with your bot, so first download it (link coming soon) then open up visual c#. This tutorial will assume you already have c# programming experience and have created the form for your bot. Now right-click the references in the solution explorer, click add references, then go to to the Browse tab and navigate to the player.io dll and hit ok. Now go to the top part of your code and anywhere in the using statments type this in:
using PlayerIOClient;
Then, after
public partial class Form1 : Form {
Type in
public Client client; private bool connected = false; public Connection connection; private string[] username;
This code just sets all the variables for the bot, whenever you need a new variable just put it in that chunk of code. Make sure on your form you have at least a email, password, and world id text-boxes and a login button. Double-click the login button and type the following code:
try { this.connect(); this.connection.Send("init", new object[0]); this.connection.Send("init2", new object[0]); this.connected = true; } catch (Exception) { MessageBox.Show("Can't connect."); }
All this does is trys to connect and if it doesn't it pops up an error message. Now if you notice, c# gives you and error for the this.connect(); Thisis because its a custom function that we haven't defined yet. So, right after the connect button clicked function put:
private void connect() { this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text); this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>()); }
Now, replace the email.Text and the password.Text with the two names of your email and password text boxes plus .Text
If you run your application, it should run. Then type in your email, password, and world id(if its not your world use a diffrent account then yours) and hit connect. You should see that playe connect to the world!
Last edited by Assossa (Jun 20 2012 5:36:26 am)
thx
WOW! I use Visual Basic a bit but, I also have C# thank you SO MUCH. +rep
Thanks!
It helped me a lot!
+rep
The code have so many variables that is not needed... Are you a programmer or just a skid?
Offline
I'm a programmer, but I was copying this from my bot, so I will edit out the unused veriables for this tut.
Even the connection code looks bad in my eyes. I don't know why.
Maybe I like my code to use delegates and be more compact.
Offline
looks like the decompiled gbot on pastebin... :/
wer to put :
private void connect() { this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text); this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>()); }
wer to put :
private void connect() { this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text); this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>()); }
Somewhere in your project.
Offline
try { this.connect(); this.connection.Send("init", new object[0]); this.connection.Send("init2", new object[0]); this.connected = true; } catch (Exception) { MessageBox.Show("Can't connect."); }
Code: private void connect() { this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text); this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>()); }
^this code is only for connect...
Theach people how to put blocks snake or dig and I rep+ you...
Last edited by The Doctor (Jun 19 2012 9:31:56 am)
Warning!
This user has been found guilty by The Committee of Truth of using honesty, and reminding people of the past, without permission and outside of the allotted timeframes.
I’ve been asked if I’m ChatGPT5.
The answer is no.
I hope this helps! Let me know if you have any other questions.
Everybody edits, but some edit more than others
Offline
Assossa wrote:try { this.connect(); this.connection.Send("init", new object[0]); this.connection.Send("init2", new object[0]); this.connected = true; } catch (Exception) { MessageBox.Show("Can't connect."); }
Code: private void connect() { this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text); this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>()); }
^this code is only for connect...
Theach people how to put blocks snake or dig and I rep+ you...
The topic is about creating the basic bot, like how to connect to everybody edits.
Not to create snakes and all the worthless bots that are spreading all over the forum.
And that's what Assossa mentioned in his first post if you haven't read it.
Krock, I did decompile gbot myself and looked at the source code to learn how to make bots but, all this code is my own code. And I will add things on this tut like snakes, and placing blocks, and such...
Krock, I did decompile gbot myself and looked at the source code to learn how to make bots but, all this code is my own code. And I will add things on this tut like snakes, and placing blocks, and such...
Don't do that. Just let this be like it is. You are only feeding the C&P kids.
Offline
Ok, Doh I wont continue this tut
can i make bot with JAVA?
Not a really useful guide. It doesn't really tell you what every single code there does in detail. I'd suggest learning from another source if you're desperate.
Not a really useful guide. It doesn't really tell you what every single code there does in detail. I'd suggest learning from another source if you're desperate.
I know. I created one on a pastebin with some comments. But that code is on another forum.
Offline
Thanks. I never knew how to get my bot to connect to EE. Thanks for the help.
Offline
I have no idea what a bot is so...... CAN SOMEONE PLEASE EXPLAIN IT TO ME!!
I have no idea what a bot is so...... CAN SOMEONE PLEASE EXPLAIN IT TO ME!!
BmanGameFreaker wrote:I have no idea what a bot is so...... CAN SOMEONE PLEASE EXPLAIN IT TO ME!!
Totaly with you on that one Gamingguy
Its worthless unless you show how to send the Init message and decode with derot. Or else you cant do anything.
Player Since 2011. I used to make bots and stuff.
Offline
IMO this isn't enough to help you with making a bot. You're definitively going to really learn java/python/C++ etc. on your own, esspecially when coding/writing a program is pretty complicated.
[ Started around 1748114605.0272 - Generated in 0.079 seconds, 12 queries executed - Memory usage: 1.65 MiB (Peak: 1.87 MiB) ]