public Cassiopeia() { if (BrutalExtensions.GetGameType().Equals("bot_intermediate")) { log = true; AutoWalker.EndGame += end; file500 = new StreamWriter(Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "EloBuddy\\AutoBuddyPlus\\qPred500"), true); file600 = new StreamWriter(Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "EloBuddy\\AutoBuddyPlus\\qPred600"), true); file700 = new StreamWriter(Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "EloBuddy\\AutoBuddyPlus\\qPred700"), true); Core.DelayAction(fl, 10000); } Q = new Spell.Skillshot(SpellSlot.Q, 850, SkillShotType.Circular, 600, int.MaxValue, 35); W = new Spell.Skillshot(SpellSlot.W, 850, SkillShotType.Circular, 500, 2500, 90); R = new Spell.Skillshot(SpellSlot.R, 500, SkillShotType.Cone, 650, int.MaxValue, 75); E = new Spell.Targeted(SpellSlot.E, 700); updateTearStatus(); Game.OnTick += Game_OnTick; Drawing.OnDraw += Drawing_OnDraw; }
public Cassiopeia() { if (BrutalExtensions.GetGameType().Equals("bot_intermediate")) { log = true; AutoWalker.EndGame += end; file500 = new StreamWriter(Path.Combine(SandboxConfig.DataDirectory , "AutoBuddy\\qPred500"), true); file600 = new StreamWriter(Path.Combine(SandboxConfig.DataDirectory , "AutoBuddy\\qPred600"), true); file700 = new StreamWriter(Path.Combine(SandboxConfig.DataDirectory , "AutoBuddy\\qPred700"), true); Core.DelayAction(fl, 10000); } ShopSequence = "3340:Buy,2003:StartHpPot,1056:Buy,1027:Buy,3070:Buy,1058:Buy,3003:Buy,1028:Buy,1011:Buy,1058:Buy,2003:StopHpPot,3116:Buy,1004:Buy,1004:Buy,3114:Buy,1052:Buy,3108:Buy,3165:Buy,1056:Sell,1058:Buy,3089:Buy,1028:Buy,3136:Buy,3151:Buy"; Q = new Spell.Skillshot(SpellSlot.Q, 850, SkillShotType.Circular, 600, int.MaxValue, 35); W = new Spell.Skillshot(SpellSlot.W, 850, SkillShotType.Circular, 500, 2500, 90); R = new Spell.Skillshot(SpellSlot.R, 500, SkillShotType.Cone, 650, int.MaxValue, 75); E = new Spell.Targeted(SpellSlot.E, 700); updateTearStatus(); Game.OnTick += Game_OnTick; if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue) { Drawing.OnDraw += Drawing_OnDraw; } }
public Cassiopeia() { if (BrutalExtensions.GetGameType().Equals("bot_intermediate")) { log = true; AutoWalker.EndGame += end; file500 = new StreamWriter(Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "EloBuddy\\AutoBuddyPlus\\qPred500"), true); file600 = new StreamWriter(Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "EloBuddy\\AutoBuddyPlus\\qPred600"), true); file700 = new StreamWriter(Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), "EloBuddy\\AutoBuddyPlus\\qPred700"), true); Core.DelayAction(fl, 10000); } ShopSequence = "3340:Buy,2003:StartHpPot,1056:Buy,1027:Buy,3070:Buy,1001:Buy,1058:Buy,3003:Buy,3020:Buy,1028:Buy,1011:Buy,1058:Buy,2003:StopHpPot,3116:Buy,1004:Buy,1004:Buy,3114:Buy,1052:Buy,3108:Buy,3165:Buy,1056:Sell,1058:Buy,3089:Buy,1028:Buy,3136:Buy,3151:Buy"; Q = new Spell.Skillshot(SpellSlot.Q, 850, SkillShotType.Circular, 600, int.MaxValue, 35); W = new Spell.Skillshot(SpellSlot.W, 850, SkillShotType.Circular, 500, 2500, 90); R = new Spell.Skillshot(SpellSlot.R, 500, SkillShotType.Cone, 650, int.MaxValue, 75); E = new Spell.Targeted(SpellSlot.E, 700); updateTearStatus(); Game.OnTick += Game_OnTick; Drawing.OnDraw += Drawing_OnDraw; }
private List <string> GetChampLinks(string startingLink) { string resp = startingLink.GetResponseText(); List <string> ret = new List <string>(); List <int> ind = BrutalExtensions.AllIndexesOf(resp, "\" class=\"champ-box"); foreach (int i in ind) { string s = resp.Substring(i - 60, 60); ret.Add(s.Substring(s.IndexOf("<a href=\"") + 9)); } return(ret); }
private void load() { var buffer = new byte[4]; using (var f = new MemoryStream(BrutalExtensions.GetResourceForGame())) { f.Read(buffer, 0, 4); Nodes = new Node[BitConverter.ToInt32(buffer, 0)]; for (var i = 0; i < Nodes.Length; i++) { Nodes[i] = new Node(f, buffer, this); } } }
public Cassiopeia() { if (BrutalExtensions.GetGameType().Equals("bot_intermediate")) { AutoWalker.EndGame += End; Core.DelayAction(Fl, 10000); } ShopSequence = "3340:Buy,2003:StartHpPot,1056:Buy,1027:Buy,3070:Buy,1001:Buy,1058:Buy,3003:Buy,3020:Buy,1028:Buy,1011:Buy,1058:Buy,2003:StopHpPot,3116:Buy,1004:Buy,1004:Buy,3114:Buy,1052:Buy,3108:Buy,3165:Buy,1056:Sell,1058:Buy,3089:Buy,1028:Buy,3136:Buy,3151:Buy"; _q = new Spell.Skillshot(SpellSlot.Q, 850, SkillShotType.Circular, 600, int.MaxValue, 35); _w = new Spell.Skillshot(SpellSlot.W, 850, SkillShotType.Circular, 500, 2500, 90); _r = new Spell.Skillshot(SpellSlot.R, 500, SkillShotType.Cone, 650, int.MaxValue, 75); _e = new Spell.Targeted(SpellSlot.E, 700); UpdateTearStatus(); Game.OnTick += Game_OnTick; if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue) { Drawing.OnDraw += Drawing_OnDraw; } }