Ejemplo n.º 1
0
        private void Game_OnSendPacket(GamePacketEventArgs args)
        {
            return;

            if (args.GetPacketId() == 166)
            {
                //args.Process = false;
            }

            if (args.GetPacketId() != 102 && args.GetPacketId() != 215)
            {
                Program.debug(Game.Time + " PAck " + args.GetPacketId());
            }
        }
Ejemplo n.º 2
0
        private void Game_OnSendPacket(GamePacketEventArgs args)
        {
            return;
            if (args.GetPacketId() == 166)
            {
                //args.Process = false;
            }

            if (args.GetPacketId() != 102 && args.GetPacketId() != 215)
            {

                Program.debug(Game.Time + " PAck " + args.GetPacketId());
            }

        }
        private void Game_OnSendPacket(GamePacketEventArgs args)
        {
            if (!Situation.ShouldDodge())
            {
                return;
            }

            // Check if the packet sent is a spell cast

            //Game.PrintChat("" + args.GetPacketId());


            if (args != null && args.GetPacketId() == CastSpellPacketID)
            {
                //Game.PrintChat("" + Game.Version);

                if (isDodging && SpellDetector.spells.Count() > 0)
                {
                    foreach (KeyValuePair <String, SpellData> entry in SpellDetector.windupSpells)
                    {
                        SpellData spellData = entry.Value;

                        if (spellData.spellKey == lastSpellCast) //check if it's a spell that we should block
                        {
                            args.Process = false;
                            return;
                        }
                    }
                }
            }
        }
Ejemplo n.º 4
0
 private static void Game_OnSendPacket(GamePacketEventArgs args)
 {
     if (args.GetPacketId() == 270)
     {
         PathPerSecCounter++;
     }
 }
Ejemplo n.º 5
0
 private void Game_onSendPacket(GamePacketEventArgs args)
 {
     if (args.GetPacketId() == 160)
     {
         if (testMenu.Item("EvadeTesterPing").GetValue <bool>())
         {
             ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime));
         }
     }
 }
Ejemplo n.º 6
0
 private void Game_onSendPacket(GamePacketEventArgs args)
 {
     if (args.GetPacketId() == 160)
     {
         if (testMenu["EvadeTesterPing"].Cast <CheckBox>().CurrentValue)
         {
             ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime));
         }
     }
 }
Ejemplo n.º 7
0
        private void Game_onRecvPacket(GamePacketEventArgs args)
        {
            if (args.GetPacketId() == 178)
            {
                /*
                 * //ConsolePrinter.Print(args.GetPacketId());
                 *
                 * foreach (var data in args.PacketData)
                 * {
                 *  Console.Write(" " + data);
                 * }
                 * ConsolePrinter.Print("");*/

                lastProcessPacketTime = EvadeUtils.TickCount;
            }
        }
Ejemplo n.º 8
0
        private void Game_OnGameSendPacket(GamePacketEventArgs args)
        {
            if (args.GetPacketId() == Network.Packets.Packet.GetPacketId <PKT_ChargedSpell>() &&
                Environment.TickCount - _chargedReqSentT < 3000)
            {
                var chargedData = new PKT_ChargedSpell();
                chargedData.Decode(args.PacketData);

                if (chargedData.NetworkId != ObjectManager.Player.NetworkId)
                {
                    return;
                }

                args.Process = false;
            }
        }
Ejemplo n.º 9
0
 private void Game_onSendPacket(GamePacketEventArgs args)
 {
     if (args.GetPacketId() == 160)
     {
         if (testMenu.Item("EvadeTesterPing").GetValue<bool>())
         {
             ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime));
         }
     }
 }
Ejemplo n.º 10
0
        private void Game_onRecvPacket(GamePacketEventArgs args)
        {
            if (args.GetPacketId() == 178)
            {
                /*
                //ConsolePrinter.Print(args.GetPacketId());

                foreach (var data in args.PacketData)
                {
                    Console.Write(" " + data);
                }
                ConsolePrinter.Print("");*/

                lastProcessPacketTime = EvadeUtils.TickCount;
            }
        }
Ejemplo n.º 11
0
 /// <summary>
 ///     Checks if the packet type matches another packet type.
 /// </summary>
 /// <param name="args">Packet arguments from event</param>
 /// <param name="packet">The Packet</param>
 /// <returns>Whether the packets have the same ID</returns>
 public static bool Equals(this GamePacketEventArgs args, Packet packet)
 {
     return(args.GetPacketId() == packet.Id);
 }
Ejemplo n.º 12
0
        private void Game_OnSendPacket(GamePacketEventArgs args)
        {
            if (isChanneling || menu.SubMenu("Main").Item("DodgeSkillShots").GetValue<KeyBind>().Active == false)
                return;

            // Check if the packet sent is a spell cast

            if (args != null && args.GetPacketId() == 228) //if(args.PacketData[0] == 228)            
            {                
                //Game.PrintChat("" + args.GetPacketId());
                
                if (isDodging)
                {
                    foreach (KeyValuePair<String, SpellData> entry in SpellDetector.windupSpells)
                    {
                        SpellData spellData = entry.Value;

                        if (spellData.spellKey == lastSpellCast) //check if it's a spell that we should block
                        {
                            args.Process = false;
                            return;
                        }
                    }
                }
            }
        }
Ejemplo n.º 13
0
 private void Game_onSendPacket(GamePacketEventArgs args)
 {
     if (args.GetPacketId() == 160)
     {
         if (testMenu["EvadeTesterPing"].Cast<CheckBox>().CurrentValue)
         {
             ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime));
         }
     }
 }
Ejemplo n.º 14
0
 private static void Game_OnSendPacket(GamePacketEventArgs args)
 {
     if(args.GetPacketId() == 270)
     {
         PathPerSecCounter++;
     }
 }