private void FarmingEncounter() { foreach (RPGPlayer p in farmers) { var mlevel = Math.Max(1, p.GetLevel() + (MyBot.rng.Next(10) - 5)); var monster = new RPGMonster(mlevel * 20, mlevel * 8, mlevel * 10, mlevel * 5); Battle(rpgchannel, p, monster); } }
private void Bossfight() { try { rpgchannel = client.FindServers(serverName).First().FindChannels(channelName).FirstOrDefault(); } catch { Console.WriteLine("Finding rpg channel failed"); return; } var blevel = 1; var boss = new RPGMonster(blevel * 100, blevel * 10, blevel * 15, blevel * 5); if (bossFightPlayers.Count() <= 0) { MyBot.Log(DateTime.Now.ToUniversalTime().ToShortTimeString() + ") Bossfight cancelled, noone showed up", "rpggame"); return; } // Resolve boss battle rpgchannel.SendMessage("BOSSFIGHT!!\n*Wait wut... Not even implemented? smh*"); MyBot.Log(DateTime.Now.ToUniversalTime().ToShortTimeString() + ") Bossfight!! " + bossFightPlayers.Count() + " warriors ready", filename); bossFightPlayers = new List <RPGPlayer>(); }
private void Battle(Channel channel, RPGPlayer p, RPGMonster m) { rpgchannel.SendMessage("Battle between **" + p.name + "** and a monster!\nNothing happened :/"); }