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.
if (e.GetString(1).StartsWith("wins"))
{
if (e.GetString(1).Split(' ').Length >= 1)//aka wins username
{
string username = e.GetString(1).Split(' ')[1];//wins[0] ewoke[1]
//commandsay("/pm " + username + " Wins of this user: " + checkWins(username));
}
else//just wins
{
//commandsay("/pm " + username + " Wins: " + checkWins(username));
}
}
if you can read this....good for you
Offline
What I'd do (see how I put everything in a single if-statement? that's just a personal preference with certain reasons, don't have to do that yourself):
// Check if wins command is used, mind that you have to check for the prefix (the dot (.)) too
if (msg.StartsWith(".wins"))
{
// check if command was used on yourself (so no username given)
if (msg == ".wins") // Here you can also see that you don't have to use the .Equals function in C#
{
commandsay("/pm " + username + " Wins: " + checkWins(username));
}
else // A username is specified after the command
{
// Get the username for which the amoutn of wins have been requisted
string requistedUsername = msg.Substring(6);
commandsay("/pm " + username + " Wins of this user: " + checkWins(requisterUsername));
}
}
PS: I coded it in here, so I could have a syntax error.
EDIT: Oops, didn't see Ewoke already gave an answer.
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]
this viedos are all blocked in Germany, use next time not more this SME music, i need a YT unblocker for watch this viedos
Tutorial 15 How to make an admin list/Tutorial 18: Connection [Voice Over] is blocked in the USA too
http://image.prntscr.com/image/d0a24641 … 3e3bf3.png
5 sec laterhttp://image.prntscr.com/image/77c2d65b … 59b785.png
_________________________________________________________________________________________
blocked in USA toohttp://image.prntscr.com/image/07d72c4c … 58eb2e.png
If you want help with some of the tutorials. Just ask.
It's blocked for me too. I don't see a reason to upload with music.
Offline
Those were the first things i've uploaded to youtube and i didn't really care about the music. And i think it's very tedious to attempt to re-upload all of them considering the lack of involvement i have in the community now. But maybe someday i can make better versions and just redo it.
If you would like me to make a bot for you, go here.
Offline
ok, and i can watching blocked viedos, i have ProxTube for this, no problem
but, is a viedo blocked in USA = i can not watch this
ok, and i can watching blocked viedos, i have ProxTube for this, no problem
but, is a viedo blocked in USA = i can not watch this
Also you have said this already. We know.
Do you need help with bots, or do you want to look at a finished code and use that?
Offline
yes, i don't know
GermanPower68 wrote:ok, and i can watching blocked viedos, i have ProxTube for this, no problem
but, is a viedo blocked in USA = i can not watch thisAlso you have said this already. We know.
Do you need help with bots, or do you want to look at a finished code and use that?
yes, how to make this kind if sign, who say your names?
yes, i don't know
capasha wrote:GermanPower68 wrote:ok, and i can watching blocked viedos, i have ProxTube for this, no problem
but, is a viedo blocked in USA = i can not watch thisAlso you have said this already. We know.
Do you need help with bots, or do you want to look at a finished code and use that?yes, how to make this kind if sign, who say your names?
http://image.prntscr.com/image/03855769 … 5196e1.png
%levelname% - Writes the name of the level
%username% - Writes the username of the player
%deaths% - Writes the amount of deaths of the player
%coins% - Writes how many golden coins the player has
%bcoins% - Writes how many blue coins the player has
\n - Writes a new line
Write these in the sign.
Offline
GermanPower68 wrote:yes, i don't know
capasha wrote:GermanPower68 wrote:ok, and i can watching blocked viedos, i have ProxTube for this, no problem
but, is a viedo blocked in USA = i can not watch thisAlso you have said this already. We know.
Do you need help with bots, or do you want to look at a finished code and use that?yes, how to make this kind if sign, who say your names?
http://image.prntscr.com/image/03855769 … 5196e1.png%levelname% - Writes the name of the level
%username% - Writes the username of the player
%deaths% - Writes the amount of deaths of the player
%coins% - Writes how many golden coins the player has
%bcoins% - Writes how many blue coins the player has
\n - Writes a new lineWrite these in the sign.
though that's not really relevant to bot tutorials german m8
those variables are really quite wonderful. My eyes really get tired of having to look up at the display where it says the level name, coins, and death count. Saves me lots of ache.
Offline
Hello, I got a problem for the tutorial 2 :
It says : The ArgumentNullException exception was unhandled by user code
The chain of reference not set to an instance of a chain .
Parameter name: s
Offline
You no longer use bldatam.
con.Send("b", layer, x, y, blockID);
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
That is in the wrong void.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Hello, I need help.
I am trying to do Tutorial 1 and got a problem. I run the program (while logged in and in my world) and click Connect but nothing happens.
I can't post links but the code is on pastebin.
/kqQgWWe2
Offline
Hello, I need help.
I am trying to do Tutorial 1 and got a problem. I run the program (while logged in and in my world) and click Connect but nothing happens.
I can't post links but the code is on pastebin.
/kqQgWWe2
Use this instead. Basic connection for bots:
http://pastebin.com/aqsT0uxh
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Hello again. I did as you said but I have the same problem.
I changed the "email" "pw" and "worldID to email_TextBox.Text, password_TextBox.Text and worldId_TextBox.Text, ran the program again but nothing.
The edited code is in the same place and thanks for the help.
Offline
Do you have any errors? If so, what are they?
I copied your code and pasted it onto a new project and it works fine.
Make sure the worldID starts with PW
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Really?
I don't have any errors. The worldId also starts with PW. I am going to try a new project.
Edit:
Made a new project and nothing. Is it possible is the editor I am using? I am not using Visual C# 2010 Express, I am using Visual Studio Community 2013.
Offline
I, Myself don't code very well and still need to learn a lot of things about programming.
But, the following code below uses your hard drive when you try to add experience.
Which is wears your hard drive out and tears it up.
I need to use arrays to add experience instead of my hard drive. Can someone help me?
public IniFile stats = new IniFile(Environment.CurrentDirectory + @"/stats");
public Dictionary<int, string> stat = new Dictionary<int, string>();
public Dictionary<string, List<string>> Inventory = new Dictionary<string, List<string>>();
public void getInv(string username)
{
Inventory[username] = stats.IniReadValue("Inventory", username).Split(' ').ToList<string>();
}
// Later in the listen part there's this code.
if (msg == "test")
{
addxp(user, 5);
}
The code:
addxp(user, 5);
Needs to use the hard drive to update the current experience.
I, Myself would rather use an array and just save the array to the document / hard drive before i close the bot.
So I don't destroy / burn out my hard drive.
Such as, big gaming systems do with their stats and et cetera.
If you could help or like write example code and try to explain it to me, I'd be more than happy to learn it.
I've looked online and even tried to get help from my dad whom did college for 3 years for programming.
I just need some help...
Offline
Hey goku do you have an overzealous antivirus or firewall? If the configuration runs properly for frog, you've got configuration/network issues.
Italkalot, you basically want a cache for the stats instead of constant read/write to the drive? Now that you mention it, it's surprising the tutorial didn't go that route.
You'll want a variable/array in a scope outside of a regular function… keep in mind you differentiate by user ID, but then users themselves in the long run by their playerio object key. I've always implemented two separate dictionaries; one for user ID/username lookup, then username/bot data lookup. Perhaps that should be user key. You can't really get free code without more information anyway. Good luck.
Oops edit:
So are these tutorials still up to date? Need we make more?!?!?!
Offline
So are these tutorials still up to date? Need we make more?!?!?!
They aren't up to date and I don't think jaba will make any so yes we need more.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
I have Panda Antivirus Pro 2014. I turned it off but still nothing. I tried using Internet Explorer and Google Chrome instead of Mozilla Firefox but still nothing.
More tutorials would be great!
Offline
Hello again. I did as you said but I have the same problem.
I changed the "email" "pw" and "worldID to email_TextBox.Text, password_TextBox.Text and worldId_TextBox.Text, ran the program again but nothing.
The edited code is in the same place and thanks for the help.
Can you give us the code that doesn't work? Paste the code on pastebin.com.
Don't forget to remove any login information, if it's added into the code.
Offline
i already have is in my first post and Xfrogman43 said it worked.
Repost:
I can't post links but the code is on pastebin.
/kqQgWWe2
Offline
i already have is in my first post and Xfrogman43 said it worked.
Repost:
I can't post links but the code is on pastebin.
/kqQgWWe2
I think there is an error. You don't check for errors.
You should also add ondisconnect, to see what happens.
Offline
[ Started around 1732857337.9479 - Generated in 0.130 seconds, 15 queries executed - Memory usage: 1.73 MiB (Peak: 1.99 MiB) ]