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'm not sure you need to be doing anything in the Program.cs -- but there's no particular reason why not.
Variables cease to exist outside of their function blocks. Garbage collectors (usually?) pick them up. So yes, they'll have to be outside of that scope.
If your bot has class MyInstance and public static bool Derp, you can write this in the main:
MyInstance.Derp = false;
Some notes:
Your Main and MyInstance (aka Form1) need to be in the same namespace. Otherwise, add the MyInstance namespace.
If your class isn't in the same namespace, it needs "Public". (Not for certain?)
Creating the static variable means it stays the same between instances of the class. If it isn't static, you have to create the instance.
Public allows code outside the class to work with the variable.
That's a great deal of info.
But, to actually answer your question: yes. Also, if you want to be especially confused about the keyword "global", check this. But, it'll help straighten things out, too.
Offline
Yes, but they'd have to be declared in your CLASS, not your method.
There's no such thing as public or private variables in methods as far as I know.
Offline
The first I see in the new connection tutorial is "CheckForIllegalCrossThreadCalls"..
People shouldn't use it at all. And isn't hard to do it this way either. this.Invoke((MethodInvoker)delegate { connect.Text = "Disconnect"; });
Offline
I love you guys!
Thank you so much!
-spinastar
Offline
I can make more tutorials if you guys want, i am mainly away from ee though
If you would like me to make a bot for you, go here.
Offline
I did a tutorial how to get the metro theme on the form/gui.
The same theme that jesse used for his shopbot
Offline
add ", null" at the end.
So it becomes:
client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email_TextBox.Text, password_TextBox.Text, null);
Offline
i was wondering. how do you make a bot PM someone in game? i understand say("message") but i don't know to to private message a specific player.
color = #1E1E1E
Offline
i was wondering. how do you make a bot PM someone in game? i understand say("message") but i don't know to to private message a specific player.
You can just do con.Send("say", "/pm " + username + " Hello!") To PM somebody. There is also many other ways to do this if you do not want large connecting text.
"Description: Description: is definitely orginal!" ~ Fastmapler The
Offline
Just one more question. is it possible to to have a chat that has multiple lines.
Like when you type /help in normal ee it has a list of commands.
can you do that with a bot the same way.
color = #1E1E1E
Offline
No, you can't do that. It was once possible but no.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
For Tutorial 4 Getting map data. i keep getting a problem.
InvalidCastException was unhandled by user code
Value at index:12 is not System.Int32. It's a System.String
around
public void getMapData(PlayerIOClient.Message m)
{
int w = m.GetInt(12);
int h = m.GetInt(13);
uint c = m.Count;
uint kc = 17;
while (kc < m.Count)
it forms a green box around
int w = m.GetInt(12);
because that is where the problem is.
The problem only happens when i connect to a world.
after pressing connect the bot enters the world and visual c# 2010 will pop up with the problem.
if i press the debug button again (the green play button) the bot will continue with no problems.
Is there a way to make this stop?
color = #1E1E1E
Offline
For Tutorial 4 Getting map data. i keep getting a problem.
InvalidCastException was unhandled by user code Value at index:12 is not System.Int32. It's a System.String
around
public void getMapData(PlayerIOClient.Message m) { int w = m.GetInt(12); int h = m.GetInt(13); uint c = m.Count; uint kc = 17; while (kc < m.Count)
it forms a green box around
int w = m.GetInt(12);
because that is where the problem is.
The problem only happens when i connect to a world.
after pressing connect the bot enters the world and visual c# 2010 will pop up with the problem.
if i press the debug button again (the green play button) the bot will continue with no problems.
Is there a way to make this stop?
The init date got changed with the most recent update, it will have to be updated because the length and width are now different numbers
If you would like me to make a bot for you, go here.
Offline
For Tutorial 4 Getting map data. i keep getting a problem.
InvalidCastException was unhandled by user code Value at index:12 is not System.Int32. It's a System.String
around
public void getMapData(PlayerIOClient.Message m) { int w = m.GetInt(12); int h = m.GetInt(13); uint c = m.Count; uint kc = 17; while (kc < m.Count)
it forms a green box around
int w = m.GetInt(12);
because that is where the problem is.
The problem only happens when i connect to a world.
after pressing connect the bot enters the world and visual c# 2010 will pop up with the problem.
if i press the debug button again (the green play button) the bot will continue with no problems.
Is there a way to make this stop?
Using wrong numbers on width and height, is the issue. You need to add 17 and 18.
Also look at the init in http://capasha.com/eeinformation.php#init
Offline
ok
Offline
http://forums.everybodyedits.com/viewtopic.php?id=27255
Zumza wrote:its your code...
Create a successful "left" message tutorial.
shadowda wrote:wow. thanks for the links. also, after following you first tutorial i have gotten it down to one error. Error 1
"No overload for method 'SimpleConnect' takes 3 arguments"
it happens at
PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", Email_TextBox.Text, Password_TextBox.Text)
in the connect code. i got the bot to run once but i dont know how and when trying to debug it always says bot.exe is missing. what does this all mean? thanks
4th argument must be satisfied with null.
I have no idea what that means.
17 i think
Offline
I have no idea what that means.
PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", Email_TextBox.Text, Password_TextBox.Text, null)
// 1st argument 2nd argument 3rd argument 4th argument
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Thanks Xfrogman43. Though, I tried following the second tutorial of placing blocks, and I did everything right, but I keep getting this window pop up stopping me from opening my bot:
17 i think
Offline
"Reinstalling the application might fix this problem"
Try that.
Before you do that, though, you could try remaking a new project and seeing if that works at all.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
So i've been noticing many people wanting to know how to make bots in everybody edits, so i will be doing a series of tutorials based on requests from people. Many of these will go fast and not in depth what so ever but it will show you how to get things done. Enjoy and request how to make things in ee (Btw if anyone knows how to fix my cursor that would be helpful c: )
Tutorial 1 Connecting to Everybody Edits
Tutorial 2 How to place blocks in Everybody Edits
Tutorial 3 How to use Everybody Edits Info
Tutorial 4 Getting map data
Tutorial 5 How to make a digbot
Tutorial 6 How to get username
Tutorial 7 How to make commands
Tutorial 8 How to make wins
Tutorial 9 How to make a snake
Tutorial 10 How to make random blocks
Tutorial 11 How to make push blocks
Tutorial 12 How to make rain
Tutorial 13 How to make replace
Tutorial 14 How to use Processors worldata
Tutorial 15 How to make an admin list
Tutorial 16 How to make an Add/Left event
Tutorial 17 How to Save/Read Worlds
Tutorial 18: Connection [Voice Over]
After I do the Tutorial 18: Connection Voice Over, can I go on to any other tutorial that interest me or do I have to go to Tutorial 2 and do it in order?
17 i think
Offline
Jabatheblob1 wrote:So i've been noticing many people wanting to know how to make bots in everybody edits, so i will be doing a series of tutorials based on requests from people. Many of these will go fast and not in depth what so ever but it will show you how to get things done. Enjoy and request how to make things in ee (Btw if anyone knows how to fix my cursor that would be helpful c: )
Tutorial 1 Connecting to Everybody Edits
Tutorial 2 How to place blocks in Everybody Edits
Tutorial 3 How to use Everybody Edits Info
Tutorial 4 Getting map data
Tutorial 5 How to make a digbot
Tutorial 6 How to get username
Tutorial 7 How to make commands
Tutorial 8 How to make wins
Tutorial 9 How to make a snake
Tutorial 10 How to make random blocks
Tutorial 11 How to make push blocks
Tutorial 12 How to make rain
Tutorial 13 How to make replace
Tutorial 14 How to use Processors worldata
Tutorial 15 How to make an admin list
Tutorial 16 How to make an Add/Left event
Tutorial 17 How to Save/Read Worlds
Tutorial 18: Connection [Voice Over]After I do the Tutorial 18: Connection Voice Over, can I go on to any other tutorial that interest me or do I have to go to Tutorial 2 and do it in order?
Well, you should start in order, at least 1-4 if you want to do other stuff. Video 18 is just connecting to a world but he's talking.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
After I do the Tutorial 18: Connection Voice Over, can I go on to any other tutorial that interest me or do I have to go to Tutorial 2 and do it in order?
In order to do some of the others you need to know how to place blocks or how to get world data. Other than the basics you can jump from tutorial to tutorial. It is intended to be watched in order because that's the order i made them in. But it doesn't really matter.
If you would like me to make a bot for you, go here.
Offline
Does anyone know how to make a commands the quicker way, because every time I do it Jabatheblob1 way it always doesn't work
SHUT AND LISTEN!!!
Offline
Does anyone know how to make a commands the quicker way, because every time I do it Jabatheblob1 way it always doesn't work
You could use Botbits, its a pretty good api and allows you to make a command easily
Offline
Making commands is easiest thing ever, you don't even need botbits for it.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
[ Started around 1732769145.4056 - Generated in 0.109 seconds, 12 queries executed - Memory usage: 1.79 MiB (Peak: 2.06 MiB) ]