SHARE
TWEET

some bot

capasha Jul 30th, 2016 (edited) 144 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using PlayerIOClient;
  7. namespace SimpleBot
  8. {
  9.     class Program
  10.     {
  11.         public static Client _client;
  12.         public static Connection _connection;
  13.         static void Main(string[] args)
  14.         {
  15.             connect("guest", "guest", "PW01");
  16.             Console.ReadKey();
  17.         }
  18.         public static void connect(string email,string pass,string roomid)
  19.         {
  20.             PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email, pass, null,
  21.                 delegate (Client client)
  22.                 {
  23.                     _client = client;
  24.                     Console.WriteLine("Logged in");
  25.                     client.Multiplayer.CreateJoinRoom(roomid, roomid.StartsWith("BW") ? "Beta" : "Everybodyedits" + client.BigDB.Load("config", "config")["version"], true, null, null,
  26.                         delegate (Connection con)
  27.                         {
  28.                             _connection = con;
  29.                             con.Send("init");
  30.                             con.OnMessage += delegate (object sender1, PlayerIOClient.Message m)
  31.                             {
  32.                                 switch (m.Type)
  33.                                 {
  34.                                     case "init":
  35.                                         break;
  36.                                 }
  37.                             };
  38.                             con.OnDisconnect += delegate (object sender2, string error)
  39.                             {
  40.                                 Console.WriteLine("Got Disconnected, reason: " + error);
  41.                             };
  42.                         },
  43.                         delegate (PlayerIOError error)
  44.                         {
  45.                             Console.WriteLine("Couldn't connect to the room, reason: " + error.Message);
  46.                         });
  47.                 },
  48.                 delegate (PlayerIOError error)
  49.                 {
  50.                     Console.WriteLine("Couldn't login reason: " + error.Message);
  51.                 });
  52.         }
  53.     }
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top