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.

#1 2015-05-31 01:34:53, last edited by SirJosh3917 (2015-05-31 03:03:52)

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

[Help] Bot Creating Accounts?

is there a way to make a bot... create an account?
private void MakeAccount(string screen_name, string email, string password)
{
    PlayerIOClient.MakeAccount(screen_name, email, password);
}

?
The code above DOES NOT WORK, so i wondered if this is possible... Is it?

Edit:
Thanks to BuzzerBee for the code, but however it does not make the player join...
I edited it to make it function-compatible

//Requires private Connection con and private Client client
		private void MakeAccount(string screen_name, string email, string password)
		{
			client = PlayerIO.QuickConnect.SimpleRegister("everybody-edits-su9rn58o40itdbnw69plyw", screen_name, password, email, "", "", null, null, null);
			con = client.Multiplayer.CreateJoinRoom(client.ConnectUserId, "Lobby" + client.BigDB.Load("config", "config")["version"], true, null, null);
			con.AddOnMessage((object sender2, PlayerIOClient.Message m) =>
			{
				if (m.Type == "error")
				{
					MessageBox.Show(m.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
				}
				else
				{
					try
					{
						con.Send("setUsername", screen_name);
						con.Send("acceptTerms", true);
					}
					catch { MessageBox.Show(m.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }
				}
			});
		}

If somebody could figure out how to make it join.

Offline

#2 2015-05-31 01:48:29

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

Re: [Help] Bot Creating Accounts?

Someone said it wasn't possible to make accounts with bots anymore.
I have an account creator somewhere. I can always look in the sourcecode.

Offline

#3 2015-05-31 02:11:23, last edited by BuzzerBee (2015-05-31 02:11:35)

BuzzerBee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,571

Re: [Help] Bot Creating Accounts?

I have an account creator, too. I'll check as well.


TdQRyz3.png
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#4 2015-05-31 02:22:32

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

Re: [Help] Bot Creating Accounts?

Damn, my external harddrive doesn't start when i plug it in. //forums.everybodyedits.com/img/smilies/sad

Offline

#5 2015-05-31 02:26:15, last edited by BuzzerBee (2015-05-31 02:30:27)

BuzzerBee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,571

Re: [Help] Bot Creating Accounts?

Mine creates the account but when you try to join a level it gives you this error:

kbHibrt.png
Account (email, pass):
[email protected] test

Here's the code I use, though:

client = PlayerIO.QuickConnect.SimpleRegister("everybody-edits-su9rn58o40itdbnw69plyw", username.Text, pass.Text, email.Text, "", "", null, null);
con = client.Multiplayer.CreateJoinRoom(client.ConnectUserId, "Lobby" + client.BigDB.Load("config", "config")["version"], true, null, null);
con.AddOnMessage((object sender2, PlayerIOClient.Message m) =>
{
    if (m.Type == "error")
    {
        MessageBox.Show(m.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    }
    else
    {
        con.Send("setUsername", username.Text);
        con.Send("acceptTerms", true);
    }
});

TdQRyz3.png
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#6 2015-06-01 09:49:26

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [Help] Bot Creating Accounts?

So does it work after adding the "setUsername"?
I tried registering accs and then setting their usernames from the flash client and it worked.
A bit slow when dealing with 10+ accs though.

Offline

#7 2015-06-01 10:23:21

BuzzerBee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,571

Re: [Help] Bot Creating Accounts?

DarkDragon4900 wrote:

So does it work after adding the "setUsername"?
I tried registering accs and then setting their usernames from the flash client and it worked.
A bit slow when dealing with 10+ accs though.

Like I said, it works and does set their username, but either something is missing or something gets corrupted. I looked through the source a bit but have yet to figure it out.


TdQRyz3.png
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#8 2015-06-01 10:55:33

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [Help] Bot Creating Accounts?

BuzzerBee wrote:
DarkDragon4900 wrote:

So does it work after adding the "setUsername"?
I tried registering accs and then setting their usernames from the flash client and it worked.
A bit slow when dealing with 10+ accs though.

Like I said, it works and does set their username, but either something is missing or something gets corrupted. I looked through the source a bit but have yet to figure it out.

They must've changed the serverside code to prevent spam.

Offline

DarkDragon49001433152533509043

Board footer

Powered by FluxBB

[ Started around 1715187124.4736 - Generated in 0.043 seconds, 10 queries executed - Memory usage: 1.47 MiB (Peak: 1.62 MiB) ]