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; } } } } }
private static void Game_OnSendPacket(GamePacketEventArgs args) { if (args.GetPacketId() == 270) { PathPerSecCounter++; } }
private void Game_onSendPacket(GamePacketEventArgs args) { if (args.GetPacketId() == 160) { if (testMenu.Item("EvadeTesterPing").GetValue <bool>()) { ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime)); } } }
private void Game_onSendPacket(GamePacketEventArgs args) { if (args.GetPacketId() == 160) { if (testMenu["EvadeTesterPing"].Cast <CheckBox>().CurrentValue) { ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime)); } } }
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; } }
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; } }
private void Game_onSendPacket(GamePacketEventArgs args) { if (args.GetPacketId() == 160) { if (testMenu.Item("EvadeTesterPing").GetValue<bool>()) { ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime)); } } }
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; } }
/// <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); }
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; } } } } }
private void Game_onSendPacket(GamePacketEventArgs args) { if (args.GetPacketId() == 160) { if (testMenu["EvadeTesterPing"].Cast<CheckBox>().CurrentValue) { ConsolePrinter.Print("Send Path ClickTime: " + (EvadeUtils.TickCount - lastRightMouseClickTime)); } } }
private static void Game_OnSendPacket(GamePacketEventArgs args) { if(args.GetPacketId() == 270) { PathPerSecCounter++; } }