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.
Pages: 1
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
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
I have an account creator, too. I'll check as well.
Offline
Damn, my external harddrive doesn't start when i plug it in.
Offline
Mine creates the account but when you try to join a level it gives you this error:
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);
}
});
Offline
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
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.
Offline
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
Pages: 1
[ Started around 1732476467.2391 - Generated in 0.064 seconds, 12 queries executed - Memory usage: 1.48 MiB (Peak: 1.63 MiB) ]