예제 #1
0
        private static void OnDestroy(GameObject sender)
        {
            try
            {
                if (!sender.Name.Contains("Katarina"))
                {
                    return;
                }

                switch (sender.Name)
                {
                case "Katarina_Base_Q_Dagger_Land_Stone":
                case "Katarina_Base_Q_Dagger_Land_Water":
                case "Katarina_Base_Q_Dagger_Land_Grass":
                case "Katarina_Base_Q_Dagger_Land_Dirt":
                case "Katarina_Base_W_Indicator_Ally":
                case "Katarina_Base_E_Beam":
                case "Katarina_Base_Dagger_Ground_Indicator":
                    Daggers.RemoveAll(x => x.Dagger.NetworkId == sender.NetworkId);
                    break;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.OnCreate." + ex);
            }
        }
예제 #2
0
        private static void OnCreate(GameObject sender)
        {
            try
            {
                if (!sender.Name.Contains("Katarina_"))
                {
                    return;
                }

                switch (sender.Name)
                {
                case "Katarina_Base_Q_Dagger_Land_Stone.troy":
                case "Katarina_Base_W_indicator_Ally.troy":
                case "Katarina_Base_E_Beam.troy":
                case "Katarina_Base_Dagger_Ground_Indicator.troy":
                    Daggers.Add(new MyDaggerManager(sender, sender.ServerPosition, Game.TickCount));
                    break;

                case "Katarina_Base_Dagger_PickUp_Cas.troy":
                case "Katarina_Base_Dagger_PickUp_Tar.troy":
                    Daggers.RemoveAll(x => x.obj.NetworkId == sender.NetworkId);
                    break;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.OnCreate." + ex);
            }
        }
예제 #3
0
        internal static void Init(GameObject sender, EventArgs args)
        {
            if (!sender.Name.Contains("Katarina"))
            {
                return;
            }

            if (sender.Name.Contains("Katarina_Base_Q_Darrger_Land_Dirt"))
            {
                Daggers.RemoveAll(x => x.Dagger.NetworkId == sender.NetworkId);
            }

            if (sender.Name.Contains("Katarina_Base_W_indicator_Ally"))
            {
                Daggers.RemoveAll(x => x.Dagger.NetworkId == sender.NetworkId);
            }

            if (sender.Name.Contains("Katarina_Base_E_Beam"))
            {
                Daggers.RemoveAll(x => x.Dagger.NetworkId == sender.NetworkId);
            }

            if (sender.Name.Contains("Katarina_Base_Dagger_PickUp_Cas"))
            {
                Daggers.RemoveAll(x => x.Dagger.NetworkId == sender.NetworkId);
            }
        }
예제 #4
0
        internal static void Init(GameObject sender, EventArgs Args)
        {
            if (!sender.Name.Contains("Katarina"))
            {
                return;
            }
            //Katarina_Base_Q_Darrger_Land_Dirt.troy
            //Katarina_Base_W_indicator_Ally.troy
            //Katarina_Base_E_Beam.troy
            //Katarina_Base_Dagger_PickUp_Cas.troy

            if (sender.Name.Contains("Katarina_Base_Q_Darrger_Land_Dirt"))
            {
                Daggers.Add(new Spells.DaggerManager
                {
                    Dagger   = sender,
                    Position = sender.Position
                });
            }

            if (sender.Name.Contains("Katarina_Base_W_indicator_Ally"))
            {
                Daggers.Add(new Spells.DaggerManager
                {
                    Dagger   = sender,
                    Position = sender.Position
                });
            }

            if (sender.Name.Contains("Katarina_Base_E_Beam"))
            {
                Daggers.Add(new Spells.DaggerManager
                {
                    Dagger   = sender,
                    Position = sender.Position
                });
            }

            if (sender.Name.Contains("Katarina_Base_Dagger_PickUp_Cas"))
            {
                Daggers.RemoveAll(x => x.Dagger.NetworkId == sender.NetworkId);
            }
        }
예제 #5
0
 private static void GameObject_OnDelete(GameObject sender, EventArgs args)
 {
     if (sender is MissileClient && (sender as MissileClient).SpellCaster.IsMe)
     {
         var missile = sender as MissileClient;
         if (missile.SData.Name.ToLower().Contains("katarinarmis"))
         {
             RMis.RemoveAll(x => x.NetworkId == missile.NetworkId);
         }
         if (missile.SData.Name.ToLower().Contains("katarinawdaggerarc"))
         {
             WMis.RemoveAll(x => x.NetworkId == missile.NetworkId);
         }
     }
     if (sender.Name.ToLower().Contains("katarina_base_e_beam.troy"))
     {
         MyBeam.RemoveAll(x => x.NetworkId == sender.NetworkId);
     }
     if (sender.Name.ToLower().Contains("katarina_base_w_indicator"))
     {
         Daggers.RemoveAll(x => x.Dagger.NetworkId == sender.NetworkId);
     }
 }
예제 #6
0
        private static void OnDestroy(GameObject sender)
        {
            try
            {
                if (!sender.Name.Contains("Katarina"))
                {
                    return;
                }

                switch (sender.Name)
                {
                case "Katarina_Base_Dagger_Ground_Indicator.troy":
                case "Katarina_Base_Dagger_PickUp_Cas.troy":
                case "Katarina_Base_Q_Dagger_Land_Stone.troy":
                case "Katarina_Base_Dagger_PickUp_Tar.troy":
                    Daggers.RemoveAll(x => x.obj.NetworkId == sender.NetworkId);
                    break;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.OnCreate." + ex);
            }
        }
예제 #7
0
        private static void OnUpdate()
        {
            try
            {
                Daggers.RemoveAll(x => Game.TickCount - x.time > 3850);

                if (Me.IsDead || Me.IsRecalling())
                {
                    return;
                }

                if (FleeMenu["FlowersKatarina.FleeMenu.Key"].As <MenuKeyBind>().Enabled)
                {
                    FleeEvent();
                }

                if (MiscMenu["FlowersKatarina.MiscMenu.OneKeyEW"].As <MenuKeyBind>().Enabled&& E.Ready && W.Ready)
                {
                    SemiEW();
                }

                KillStealEvent();

                if (isCastingUlt)
                {
                    Orbwalker.AttackingEnabled = false;
                    Orbwalker.MovingEnabled    = false;

                    if (MiscMenu["FlowersKatarina.MiscMenu.AutoCancelR"].Enabled)
                    {
                        MyExtraManager.CancelUlt();
                    }

                    return;
                }

                Orbwalker.AttackingEnabled = true;
                Orbwalker.MovingEnabled    = true;

                switch (Orbwalker.Mode)
                {
                case OrbwalkingMode.Combo:
                    ComboEvent();
                    break;

                case OrbwalkingMode.Mixed:
                    HarassEvent();
                    break;

                case OrbwalkingMode.Laneclear:
                    ClearEvent();
                    break;

                case OrbwalkingMode.Lasthit:
                    LastHitEvent();
                    break;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.OnUpdate." + ex);
            }
        }
예제 #8
0
        private static void OnUpdate()
        {
            try
            {
                Daggers.RemoveAll(x => Variables.GameTimeTickCount - x.CreateTime > 3850);

                if (Me.IsDead || Me.IsRecalling())
                {
                    return;
                }

                if (FleeMenu["FlowersKatarina.FleeMenu.Key"].GetValue <MenuKeyBind>().Active)
                {
                    FleeEvent();
                }

                if (MiscMenu["FlowersKatarina.MiscMenu.OneKeyEW"].GetValue <MenuKeyBind>().Active&& E.IsReady() && W.IsReady())
                {
                    SemiEW();
                }

                KillStealEvent();

                if (isCastingUlt)
                {
                    Chat.Print("IS CASTING R");
                    Orbwalker.AttackState   = false;
                    Orbwalker.MovementState = false;

                    if (MiscMenu["FlowersKatarina.MiscMenu.AutoCancelR"].GetValue <MenuBool>().Enabled)
                    {
                        MyExtraManager.CancelUlt();
                    }

                    return;
                }

                Orbwalker.AttackState   = true;
                Orbwalker.MovementState = true;

                switch (Orbwalker.ActiveMode)
                {
                case OrbwalkerMode.Combo:
                    ComboEvent();
                    break;

                case OrbwalkerMode.Harass:
                    HarassEvent();
                    break;

                case OrbwalkerMode.LaneClear:
                    ClearEvent();
                    break;

                case OrbwalkerMode.LastHit:
                    LastHitEvent();
                    break;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.OnUpdate." + ex);
            }
        }