private static void DoReadini() { Readini.GetMisc(); Readini.GetSpellstatus(ref Q, "Q"); Readini.GetSpellstatus(ref W, "W"); Readini.GetSpellstatus(ref E, "E"); Readini.GetSpellstatus(ref R, "R"); //if (IsChangeable) //{ // Readini.GetSpellstatus(ref Q2, "Q2"); // Readini.GetSpellstatus(ref W2, "W2"); // Readini.GetSpellstatus(ref E2, "E2"); //} }
private static void OnGameUpdate(EventArgs args) { Readini.GetSpellRange(ref Q); Readini.GetSpellRange(ref W); Readini.GetSpellRange(ref E); Readini.GetSpellRange(ref R); foreach (var t in c_Spells) { if (t.Slot == SpellSlot.Q) { t.Range = Q.Range; } if (t.Slot == SpellSlot.W) { t.Range = W.Range; } if (t.Slot == SpellSlot.E) { t.Range = E.Range; } if (t.Slot == SpellSlot.R) { t.Range = R.Range; } } h_chance = Menus.GetHitchanceByInt(baseMenu.Item("HitChance").GetValue <Slider>().Value); if (baseMenu.Item("Combo_Key").GetValue <KeyBind>().Active) { ComboSpells.CastComboSpells(SelectedC); } }
private static void OnGameLoad(EventArgs args) { Game.PrintChat("<font color ='#33FFFF'>Jeon's ComboScriptor v1.0 </font>Loaded"); try { #region File Stream if (!dir.Exists) { dir.Create(); } if (!setFile.Exists) { Readini.SetSpellstatus("Q"); Readini.SetSpellstatus("W"); Readini.SetSpellstatus("E"); Readini.SetSpellstatus("R"); //if (IsChangeable) //{ // Readini.SetSpellstatus("Q2"); // Readini.SetSpellstatus("W2"); // Readini.SetSpellstatus("E2"); //} Readini.SetMisc(); } DoReadini(); Menus.CreateMenu(); #endregion } catch { Game.PrintChat("THERE ARE BUG! PLZ CHECK YOUR INI FILE"); } ComboSpells.getComboSpells(); ComboSpells.getComboSpellList(); foreach (var spell in c_Spells) { if (spell.Slot == SpellSlot.Q) { s_Q = spell; } if (spell.Slot == SpellSlot.W) { s_W = spell; } if (spell.Slot == SpellSlot.E) { s_E = spell; } if (spell.Slot == SpellSlot.R) { s_R = spell; } } Game.OnUpdate += OnGameUpdate; Drawing.OnEndScene += OnDraw_EndScene; Game.OnWndProc += OnWndProc; }