Official Everybody Edits Forums

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.

#101 2016-05-19 15:36:10

ewoke
Member
Joined: 2015-02-20
Posts: 412

Re: [Tutorial] TUTORIALS

 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

Wooted by: (2)

#102 2016-05-19 15:41:25, last edited by den3107 (2016-05-19 15:42:04)

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Tutorial] TUTORIALS

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

Wooted by: (2)

#103 2016-05-31 21:03:25

Myst
Guest

Re: [Tutorial] TUTORIALS

this viedos are all blocked in Germany, use next time not more this SME music, i need a YT unblocker for watch this viedos //forums.everybodyedits.com/img/smilies/tongue

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

#104 2016-05-31 21:33:59

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Tutorial] TUTORIALS

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

#105 2016-05-31 22:25:55

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

Re: [Tutorial] TUTORIALS

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

#106 2016-06-01 12:12:35, last edited by Myst (2016-06-01 12:13:07)

Myst
Guest

Re: [Tutorial] TUTORIALS

ok, and i can watching blocked viedos, i have ProxTube for this, no problem //forums.everybodyedits.com/img/smilies/smile
vvcap%20gif%202016-06-01-13-10-28_zpsvoeplfed.gif?t=1464693128
but, is a viedo blocked in USA = i can not watch this

#107 2016-06-01 13:04:49

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Tutorial] TUTORIALS

GermanPower68 wrote:

ok, and i can watching blocked viedos, i have ProxTube for this, no problem //forums.everybodyedits.com/img/smilies/smile
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

#108 2016-06-01 15:07:56, last edited by Myst (2016-06-01 15:08:59)

Myst
Guest

Re: [Tutorial] TUTORIALS

yes, i don't know

capasha wrote:
GermanPower68 wrote:

ok, and i can watching blocked viedos, i have ProxTube for this, no problem //forums.everybodyedits.com/img/smilies/smile
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?

yes, how to make this kind if sign, who say your names?
03855769d8234708ad406a96415196e1.png

#109 2016-06-01 15:26:45

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Tutorial] TUTORIALS

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 //forums.everybodyedits.com/img/smilies/smile
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?

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

Wooted by: (2)

#110 2016-06-01 16:40:47

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: [Tutorial] TUTORIALS

capasha wrote:
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 //forums.everybodyedits.com/img/smilies/smile
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?

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.

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

#111 2016-07-22 20:49:51, last edited by Blackmask (2016-07-22 20:50:34)

Blackmask
Member
From: France
Joined: 2016-06-27
Posts: 199

Re: [Tutorial] TUTORIALS

Hello, I got a problem for the tutorial 2 : slg4Akd.png

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

#112 2016-07-22 21:21:56

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Tutorial] TUTORIALS

You no longer use bldatam.
con.Send("b", layer, x, y, blockID);


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#113 2016-07-23 20:41:01

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Tutorial] TUTORIALS

That is in the wrong void.


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#114 2016-07-30 00:02:09, last edited by Gokublack (2016-07-30 00:03:47)

Gokublack
Member
Joined: 2016-07-29
Posts: 9

Re: [Tutorial] TUTORIALS

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

#115 2016-07-30 00:41:24

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Tutorial] TUTORIALS

Gokublack wrote:

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


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#116 2016-07-30 01:38:06

Gokublack
Member
Joined: 2016-07-29
Posts: 9

Re: [Tutorial] TUTORIALS

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

#117 2016-07-30 02:21:10

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Tutorial] TUTORIALS

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


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#118 2016-07-30 02:48:32, last edited by Gokublack (2016-07-30 03:36:36)

Gokublack
Member
Joined: 2016-07-29
Posts: 9

Re: [Tutorial] TUTORIALS

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

#119 2016-07-30 03:10:32, last edited by italkalotfromee (2016-07-30 03:12:08)

italkalotfromee
Member
Joined: 2015-05-08
Posts: 117

Re: [Tutorial] TUTORIALS

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...


FluxBB bbcode test

Offline

#120 2016-07-30 04:52:43, last edited by hummerz5 (2016-07-30 04:53:15)

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: [Tutorial] TUTORIALS

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

Wooted by:

#121 2016-07-30 05:02:31

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Tutorial] TUTORIALS

hummerz5 wrote:

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.


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#122 2016-07-30 05:35:56, last edited by Gokublack (2016-07-30 05:45:40)

Gokublack
Member
Joined: 2016-07-29
Posts: 9

Re: [Tutorial] TUTORIALS

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

#123 2016-07-30 06:43:15

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Tutorial] TUTORIALS

Gokublack wrote:

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

#124 2016-07-30 06:52:43

Gokublack
Member
Joined: 2016-07-29
Posts: 9

Re: [Tutorial] TUTORIALS

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

#125 2016-07-30 07:12:58

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Tutorial] TUTORIALS

Gokublack wrote:

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

John1501101454669737

Board footer

Powered by FluxBB

[ Started around 1713615529.4505 - Generated in 0.131 seconds, 12 queries executed - Memory usage: 1.73 MiB (Peak: 1.99 MiB) ]