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.

#26 2016-11-24 17:16:09, last edited by MartenM (2016-11-24 17:20:55)

MartenM
Member
From: The Netherlands
Joined: 2016-03-31
Posts: 978
Website

Re: A lot of unknown errors

//as a happy reminder: Do not show password or email for anti-hacks

using System;
using PlayerIOClient;
using System.Threading;

namespace DeathMark
{
    class MainClass
    {
        public static Connection con;
        static Client client;

        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Deathmark");
            try
            {
                client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "haha, almost posted my login data", "CanYouGuessMyCode?", null);
                con = client.Multiplayer.JoinRoom("PWoeeqnQSMb0I", null);
            }
            catch (Exception i)
            {
                Console.WriteLine(i.ToString());
            }

            con.OnMessage += OnMessage;
            con.Send("init");
            //Thread.Sleep(-1);
        }

        private static void OnMessage(object sender, Message e)
        {
            switch (e.Type)
            {
                case "init":
                    con.Send("init2");
                    break;
                case "init2":
                    Console.ForegroundColor = ConsoleColor.Cyan;
                    Console.WriteLine("Connected! I am EEANATOLY's bot.");
                    con.Send("say", "This is DeathMark. I am EEANATOLY's bot.");
                    break;
            }
        }
    }
}

Added Thread.Sleep(-1); To keep the consol open. Code seems pretty fine.
This was in visual studio though. I used the latest NuGet packet for the .dll

Edit: Almost posted the account info of my alt. Lol


lm3hgg8.jpg

Ingame: marten22        My steam: MartenM

Offline

#27 2016-11-24 17:19:50

Anatoly
Guest

Re: A lot of unknown errors

MartenM wrote:

//as a happy reminder: Do not show password or email for anti-hacks using System; using PlayerIOClient; using System.Threading; namespace DeathMark { class MainClass { public static Connection con; static Client client; static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Deathmark"); try { client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "haha, almost posted my login data", "CanYouGuessMyCode?", null); con = client.Multiplayer.JoinRoom("PWoeeqnQSMb0I", null); } catch (Exception i) { Console.WriteLine(i.ToString()); } con.OnMessage += OnMessage; con.Send("init"); //Thread.Sleep(-1); } private static void OnMessage(object sender, Message e) { switch (e.Type) { case "init": con.Send("init2"); break; case "init2": Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine("Connected! I am EEANATOLY's bot."); con.Send("say", "This is DeathMark. I am EEANATOLY's bot."); break; } } } }

Does not seem to work for me.

#28 2016-11-24 17:29:35

Anatoly
Guest

Re: A lot of unknown errors

I CAN NOW CONNECT //forums.everybodyedits.com/img/smilies/big_smile!!

Anatoly1480004975636347

Board footer

Powered by FluxBB

[ Started around 1732413684.6267 - Generated in 0.032 seconds, 12 queries executed - Memory usage: 1.38 MiB (Peak: 1.47 MiB) ]