/** Method to crawl PvPnet for all the summoners being crawled */ private static void crawlPvpnetss(Configuration config) { RiotConnect pvpnet; RiotChat chat; /** Persistent connection */ while (!forceDC) { /* Establish Connection to PvPNet */ pvpnet = new RiotConnect(config, "darkactivestats", "baylife13"); /** Wait for PvP.net Server connection */ if (waitForPvpnet(pvpnet)) { chat = new RiotChat("darkactivestats", "baylife13"); /* Initialise the PvPNet Crawler */ //RiotCrawl crawler = new RiotCrawl(pvpnet, chat); } } }
private static void createMatch(Configuration config) { /** Initialize PvP.net Server Connection */ RiotConnect pvpnet = new RiotConnect(config, "wesa001", "baylife13"); RiotChat chat = new RiotChat("wesa001", "baylife13"); /** Wait for PvP.net Server to be connected */ while (!pvpnet.Connected) ; PublicSummoner mysumm = pvpnet.RPC.GetSummonerByName("wesa001"); PublicSummoner summ = pvpnet.RPC.GetSummonerByName("appak"); //GameDTO game = pvpnet.RPC.game.createPracticeGame(new PracticeGameConfig("WESA MATCH 1", "test")); GameDTO game = pvpnet.RPC.game.joinGame(433787973, "hello"); //Console.WriteLine("summ id " + summ.summonerId); chat.sendPresence(); chat.inviteSummoner(summ.summonerId, 433787973, 1); while (1 == 1) ; }