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-03-15 20:56:23, last edited by ParadoxInTheVoid (2015-03-15 21:09:58)

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

[Solved] Some Help

This code worked before but now my bot doesn't even connect. It doesn't throw an error or anything.

public static Connection conn;
		public static Client client;
		public static List<string> names = new List<string>();
		public static string worldKey = "";

		public static void Main (string[] args)
		{


			client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password, null);
			conn = client.Multiplayer.JoinRoom("PWYKcYsvCxbkI", null);
			conn.OnMessage += OnMessage;
		
			Console.Read();

		}

		static void OnMessage(object sender, PlayerIOClient.Message m) //your onmessage goes here
		{
			switch (m.Type) {
			case "init":
				conn.Send ("init2");
				worldKey = derot(m.GetString(5));
				conn.Send (worldKey + "k");
				return;
			}
		}

signature.png

Offline

#2 2015-03-15 21:03:18, last edited by Zumza (2015-03-15 21:03:37)

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,645

Re: [Solved] Some Help

public static Connection conn;
		public static Client client;
		public static List<string> names = new List<string>();
		public static string worldKey = "";

		public static void Main (string[] args)
		{


			client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, password, null);
			conn = client.Multiplayer.JoinRoom("PWYKcYsvCxbkI", null);
			conn.OnMessage += OnMessage;
	                conn.Send("init");
			Console.Read();

		}

		static void OnMessage(object sender, PlayerIOClient.Message m) //your onmessage goes here
		{
			switch (m.Type) {
			case "init":
				conn.Send ("init2");
				worldKey = derot(m.GetString(5));
				conn.Send (worldKey + "k");
				return;
			}
		}

You forgot: conn.Send("init");


Everybody edits, but some edit more than others

Offline

#3 2015-03-15 21:06:23

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Solved] Some Help

No I didn't... it is after conn.OnMessage += OnMessage;


signature.png

Offline

#4 2015-03-15 21:07:11, last edited by Xfrogman43 (2015-03-15 21:07:33)

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

Re: [Solved] Some Help

ParadoxInTheVoid wrote:

No I didn't... it is after conn.OnMessage += OnMessage;

I don't see it in your post.
but it is in zumzas


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#5 2015-03-15 21:08:26

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Solved] Some Help

https://wiki.everybodyedits.com/images/c/c0/069_LOL My apologies, I was looking at your not mine. //forums.everybodyedits.com/img/smilies/smile


signature.png

Offline

#6 2015-03-15 21:09:15

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Solved] Some Help

Thank you. //forums.everybodyedits.com/img/smilies/big_smile


signature.png

Offline

ParadoxInTheVoid1426450155483319

Board footer

Powered by FluxBB

[ Started around 1714973576.4441 - Generated in 0.030 seconds, 10 queries executed - Memory usage: 1.41 MiB (Peak: 1.52 MiB) ]