Page 1 of 5 123 ... LastLast
Results 1 to 15 of 69
  1. #1
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666

    [K Relay] 059's AntiLag updated


    All credits to 059 for AntiLag. Credits to Kronks and all the contibutors for K Relay.

    If you still haven't updated to latest version of K Relay, now is a great time to do so. I've included a separate download for the newest version of K Relay, compiled and ready for use. This download also includes AntiLag.

    If there are still any plugins that haven't been updated, you may request for updating them in this thread. Please include a link to the original post in your request.

    If you're switching versions, you might need to redownload einaras' Enter Full Realms plugin.

     
    Code:
    using Lib_K_Relay;
    using Lib_K_Relay.Interface;
    using Lib_K_Relay.Networking;
    using Lib_K_Relay.Networking.Packets;
    using Lib_K_Relay.Networking.Packets.Server;
    
    namespace AntiLag
    {
        public class AntiLag : IPlugin
        {
            public string GetAuthor()
            {
                return "059";
            }
    
            public string GetName()
            {
                return "AntiLag";
            }
    
            public string GetDescription()
            {
                return "Blocks certain packets which contribute significantly to lagging your client.";
            }
    
            public string[] GetCommands()
            {
                return new string[0];
            }
    
            public void Initialize(Proxy proxy)
            {
                proxy.HookPacket(PacketType.SHOWEFFECT, OnShowEffect);
                proxy.HookPacket(PacketType.ALLYSHOOT, OnAllyShoot);
                proxy.HookPacket(PacketType.DAMAGE, OnDamage);
            }
    
            private void OnShowEffect(Client client, Packet packet)
            {
                ShowEffectPacket sep = (ShowEffectPacket)packet;
                switch ((int)sep.EffectType)
                {
                    case 5:
                        if (sep.TargetId != client.ObjectId)
                            packet.Send = false;
                        break;
                    case 1:
                    case 2:
                    case 6:
                    case 7:
                    case 8:
                    case 9:
                    case 10:
                    case 12:
                    case 17:
                    case 18:
                    case 19:
                        packet.Send = false;
                        break;
                }
            }
    
            private void OnAllyShoot(Client client, Packet packet)
            {
                packet.Send = false;
            }
    
            private void OnDamage(Client client, Packet packet)
            {
                DamagePacket dp = (DamagePacket)packet;
                if (dp.ObjectId != client.ObjectId)
                    packet.Send = false;
            }
        }
    }


    Edit: People didn't seem too thrilled about me removing all the commands so I created a second version with commands for toggling everything.

     
    Code:
    using Lib_K_Relay;
    using Lib_K_Relay.Interface;
    using Lib_K_Relay.Utilities;
    using Lib_K_Relay.Networking;
    using Lib_K_Relay.Networking.Packets;
    using Lib_K_Relay.Networking.Packets.Server;
    
    namespace AntiLag
    {
        public class AntiLag : IPlugin
        {
            private bool[] active = { true, true, true};
    
            public string GetAuthor()
            {
                return "059";
            }
    
            public string GetName()
            {
                return "AntiLag";
            }
    
            public string GetDescription()
            {
                return "Blocks certain packets which contribute significantly to lagging your client.\n\n/al ally toggles allied projectiles\n/al damage toggles the damage display on allies\n/al particle toggles particle effects succh as necromancer skull\n/al toggles them all";
            }
    
            public string[] GetCommands()
            {
                return new string[]
                {
                    "/al <ally:damage:particle>"
                };
            }
    
            public void Initialize(Proxy proxy)
            {
                proxy.HookPacket(PacketType.SHOWEFFECT, OnShowEffect);
                proxy.HookPacket(PacketType.ALLYSHOOT, OnAllyShoot);
                proxy.HookPacket(PacketType.DAMAGE, OnDamage);
                proxy.HookCommand("al", OnCommand);
            }
            
            private void OnCommand(Client client, string command, string[] args)
            {
                if (args.Length == 0)
                {
                    active[0] = !active[0];
                    active[1] = !active[1];
                    active[2] = !active[2];
                }
                else if (args[0] == "ally")
                    active[0] = !active[0];
                else if (args[0] == "damage")
                    active[1] = !active[1];
                else if (args[0] == "particle")
                    active[2] = !active[2];
                string msg = "Allied Projectiles: " + active[0].ToString() + ", Damage Display: " + active[1].ToString() +", Particle Effects: " + active[2].ToString();
                client.SendToClient(PluginUtils.CreateOryxNotification("AntiLag", msg));
            }
    
            private void OnShowEffect(Client client, Packet packet)
            {
                if (active[2])
                {
                    ShowEffectPacket sep = (ShowEffectPacket)packet;
                    switch ((int)sep.EffectType)
                    {
                        case 5:
                            if (sep.TargetId != client.ObjectId)
                                packet.Send = false;
                            break;
                        case 1:
                        case 2:
                        case 6:
                        case 7:
                        case 8:
                        case 9:
                        case 10:
                        case 12:
                        case 17:
                        case 18:
                        case 19:
                            packet.Send = false;
                            break;
                    }
                }
            }
    
            private void OnAllyShoot(Client client, Packet packet)
            {
                if (active[0])
                    packet.Send = false;
            }
    
            private void OnDamage(Client client, Packet packet)
            {
                if (active[1])
                {
                    DamagePacket dp = (DamagePacket)packet;
                    if (dp.ObjectId != client.ObjectId)
                        packet.Send = false;
                }
            }
        }
    }


    Virus scans:
    Jotti 0/19
    Virustotal 0/56

    Jotti 0/19
    Virustotal 0/56

    Jotti 0/19
    Virustotal 0/56

    Yes, I'm planning to make everyone use the same version so we won't have to release 2 separate versions for every plugin, thanks to Riigged.
    <b>Downloadable Files</b> Downloadable Files
    Last edited by CrazyJani; 09-08-2016 at 03:10 AM. Reason: v2

  2. The Following 234 Users Say Thank You to CrazyJani For This Useful Post:

    -eXtremeX- (10-19-2016),70pivotmasterz (09-29-2016),aguynamedsteven1 (09-30-2016),Akilles047 (09-30-2016),alegroto (09-15-2016),alexpuppy (12-21-2016),Alkoholess (12-29-2016),alperoyun53 (08-11-2017),amin56 (09-15-2016),Amphypoo123 (09-15-2016),anto0899 (09-14-2016),ari16511 (09-08-2016),arnis312 (09-21-2016),Austinnnnnnnn :D (09-07-2016),Australian (09-10-2016),Autorefresh (10-07-2016),Ayylmao8 (09-10-2016),badbadbadbadbad (11-06-2018),baller memes (10-01-2016),bbiman (09-15-2016),benj67 (09-07-2016),bigboy1271 (09-23-2016),BinJip (10-19-2016),Blorek (09-28-2016),blu3nh (09-20-2016),bobbob1313 (09-07-2016),bobboberson (09-16-2016),Brianwong7 (09-24-2016),BudgeAU (09-27-2016),CaptainRudy (10-01-2016),CatInTh3Hat (10-01-2016),chance11 (09-07-2016),Chasevenom31 (10-02-2016),Codma2 (09-12-2016),Condomtron (09-25-2016),coolboysaif (01-09-2017),crizal (09-25-2016),czrael (09-11-2016),danjaro (10-15-2016),dathatedasian (09-30-2016),david1077 (09-24-2016),Deletinqq (09-15-2016),derpytheson (09-10-2016),Diotic (09-11-2016),djealonso478 (09-07-2016),DonBerger (10-27-2016),Dpalad67 (09-17-2016),drmahons (10-07-2016),DrPewPew (09-09-2016),druism (09-23-2016),DuggleBuggle (09-21-2016),edwardhowrongtu1 (05-26-2017),einaras (09-07-2016),essek53 (09-18-2016),evmodyz (09-07-2016),exswift (09-17-2016),Extain (09-08-2016),Eymon (09-20-2016),FadedMemorezzzz (09-18-2016),fireultimus (09-15-2016),fishbob (09-26-2016),flase (09-10-2016),flow150595 (09-10-2016),fluke106811 (09-09-2016),fox03203 (09-24-2016),FranchMule (09-22-2016),Frostbitten26 (09-18-2016),Froz3n (09-09-2016),frozet (03-17-2017),fuckT (10-16-2016),fumegasx (09-07-2016),gainb (09-16-2016),gawkbawk (09-19-2016),GinjaNinja23200 (09-30-2016),GintamaSan (10-02-2016),grafitte (02-21-2017),GuuPro (09-14-2016),higuys132 (09-23-2016),hiiiiiiiii (09-14-2016),HJS11 (09-20-2016),Hundesohn12 (09-12-2016),IfAnReason (09-10-2016),Iggy (09-10-2016),Imagodatrotmg (10-02-2016),imheezus (09-08-2016),IPyro58 (01-27-2017),itzkush123 (09-15-2016),itZTrickyz (11-26-2016),IzotopTh232 (09-07-2016),I_NoScopedJFC (09-17-2016),jackapac1999 (09-27-2016),jackowacko101 (12-18-2016),jazr7 (02-03-2017),Jeangunner (09-30-2016),joaoveadao2 (09-08-2016),joshua86174 (01-03-2017),jpsewell80 (10-13-2019),jtong14 (09-12-2016),Kappatian Levi (09-07-2016),keepeye47 (09-15-2016),kendostick70 (09-11-2016),kilerubrgamer (12-10-2018),KillerLolers (06-07-2018),Killroi (09-29-2016),kirbosan (09-10-2016),Klaus Wiebel (10-03-2016),klistofels (09-15-2016),kok63 (09-12-2016),koolkaan11 (09-09-2016),krewella21 (10-02-2016),kris4x2 (09-25-2016),krish145 (09-14-2016),kumaramash (01-04-2017),KumBum (09-15-2016),kvnrnglr (09-25-2016),kyman0 (10-13-2016),kyon4ik (09-11-2016),Lazer1234 (09-10-2016),liamspies (09-13-2016),lilas (09-23-2016),Lipuzao (09-10-2016),lochietgardner (10-06-2017),LostArk (10-24-2016),MaCheLOL (09-08-2016),mad741 (02-26-2017),MaddaHsk (10-05-2016),malmazuke (10-01-2016),marleen01 (09-07-2016),megamind27 (09-07-2016),mehdiop (09-30-2016),melekpek (09-07-2016),Mgaodd (09-12-2016),miho1 (09-10-2016),mircea22222 (09-08-2016),misterio500 (09-17-2016),Mockii77 (09-21-2016),MoonMan1 (09-16-2016),morganna (10-01-2016),MuleMaxer (10-15-2016),naterade09 (10-11-2016),ncsantosn (09-27-2016),Nixanity (01-01-2017),NotSorry_ (09-29-2016),NudenJigger (09-09-2016),oaxy (09-29-2016),OMGOMGOMGOGMOGOMGOMGOMG (09-14-2016),omoto24 (10-27-2016),p303098 (09-12-2016),pablojuinor (01-27-2018),Partizanr (09-18-2016),Paulius231 (09-19-2016),perfectide (09-26-2016),pharoh (09-15-2016),PKcombat23 (09-11-2016),poc123 (09-07-2017),PokemonMasr (09-07-2016),potaters (09-18-2016),Pranavion (09-25-2016),priestost (10-24-2016),pwmaxer (09-08-2016),pyrolizard (10-02-2016),qazpl,123 (09-29-2016),qazw39 (09-14-2016),qgewrwqe231adsq (09-12-2016),quinntana (09-16-2016),qwertyuiopass (10-01-2016),rangelord (10-01-2016),revarich (10-02-2016),RichardBrz (12-08-2016),Rollinq (09-26-2016),ROTMGHACKWANTER (09-25-2016),RotmgMerch (09-16-2016),RoyxL (09-25-2016),ryanlucas (09-24-2016),saimonasprofas (09-19-2016),SaltedMilk (09-10-2016),Sambo.Starscream (09-20-2016),samecolour (09-09-2016),samuel525663 (09-16-2016),santireg (10-07-2016),ScheiweSells (09-17-2016),ScolextheMaster (09-10-2016),secretmana97 (09-27-2016),seekout (09-25-2016),Ser Alan Jerome (10-01-2016),sewardx (09-27-2016),shurpa (10-16-2016),sjdhfhf (10-04-2016),skol48 (09-18-2016),skullyhop (09-09-2016),Softcat02 (09-28-2016),solstice9784 (09-19-2016),sonic31897 (10-16-2016),squiddude123 (09-07-2016),SSharkie (11-25-2017),straxovke (09-16-2016),superbobdude1 (09-15-2016),SushiBag (09-16-2016),Swbe (09-14-2016),swol (09-27-2016),tamas0821 (10-21-2016),TheCredits (10-01-2016),TheEndGamer229 (09-14-2016),TheUnamed (09-15-2016),theundeadmox (09-21-2016),The_Server203 (04-18-2017),tidalwaves2345 (09-24-2016),Toasterhead (09-18-2016),Tom1324 (09-22-2016),tonyportilloisop22 (09-30-2016),Turbo Tony (10-04-2016),Twilighti (09-09-2016),twitchyboots (09-07-2016),UltraFirePixl (09-25-2016),vlad100123 (09-11-2016),vVentured (09-21-2016),W E E D (09-15-2016),wac2002 (09-07-2016),wainwright (07-09-2017),wammy (09-07-2016),WeeWeeLarge (06-25-2019),Wesleyvs (09-11-2016),WillyL (10-14-2016),wizardmaxx (09-08-2016),workboy (10-12-2016),xhobic (09-16-2016),XKillerKeem (09-11-2016),xxamosxx (09-09-2016),XXdavidlol123 (11-01-2016),xXDefriXx (09-22-2016),Yellow Swag (09-15-2016),youngmixblood (09-23-2016),zRakan (09-08-2016),Zyrn (09-11-2016)

  3. #2
    New's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    Location:
    Posts
    2,605
    Reputation
    386
    Thanks
    4,708
    My Mood
    Angelic
    Quote Originally Posted by CrazyJani View Post
    Yes, I'm planning to make everyone use the same version so we won't have to release 2 separate versions for every plugin, thanks to Riigged.
    lol

    so this is just an update, nothing new added
    New

    Current Project:
    SimpleExaltHack

    Outdated stuff I made in the past:
    Famebot
    Clientless tradebot
    RotMG ping checker
    Zautonexus crack

  4. #3
    FlutterM4rk's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    365
    Reputation
    16
    Thanks
    228
    My Mood
    Sleepy
    did you remove the secret command or updated that one too?

  5. #4
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    Quote Originally Posted by FlutterM4rk View Post
    did you remove the secret command or updated that one too?
    I removed it.
    I also removed the deactivation command, why would anyone want to deactivate it anyway?

  6. #5
    Kushala Daora's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Location
    RealmSupply
    Posts
    1,075
    Reputation
    73
    Thanks
    642
    My Mood
    Angelic
    Quote Originally Posted by CrazyJani View Post
    I removed it.
    I also removed the deactivation command, why would anyone want to deactivate it anyway?
    I deactivated it all the time to debug some stuff.

    "There is no higher form of user validation than having customers support your product with their wallets." ~ Google


  7. #6
    A_Random_Idiot's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    1,428
    Reputation
    13
    Thanks
    1,385
    Quote Originally Posted by CrazyJani View Post
    I removed it.
    I also removed the deactivation command, why would anyone want to deactivate it anyway?
    to see other's projectiles?

  8. #7
    Luis's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    2,801
    Reputation
    348
    Thanks
    1,845
    My Mood
    Psychedelic
    K-Relay is already released, no need for another, deleted that.
    File approved

  9. #8
    New's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    Location:
    Posts
    2,605
    Reputation
    386
    Thanks
    4,708
    My Mood
    Angelic
    Quote Originally Posted by Luis View Post
    K-Relay is already released, no need for another, deleted that.
    File approved
    That KRelay was updated, it is different from riiggeds
    New

    Current Project:
    SimpleExaltHack

    Outdated stuff I made in the past:
    Famebot
    Clientless tradebot
    RotMG ping checker
    Zautonexus crack

  10. #9
    Luis's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    2,801
    Reputation
    348
    Thanks
    1,845
    My Mood
    Psychedelic
    Quote Originally Posted by PKTINOS View Post


    That KRelay was updated, it is different from riiggeds
    Shulda said something, @CrazyJani please reupload it, deleted due to a misunderstanding

  11. #10
    Matrix1101's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    169
    Reputation
    10
    Thanks
    172
    I liked turning it off because it's fun to see other's projectiles.

  12. #11
    New's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    Location:
    Posts
    2,605
    Reputation
    386
    Thanks
    4,708
    My Mood
    Angelic
    Quote Originally Posted by Luis View Post
    Shulda said something, @CrazyJani please reupload it, deleted due to a misunderstanding
    I've included a separate download for the newest version of K Relay
    he did .
    New

    Current Project:
    SimpleExaltHack

    Outdated stuff I made in the past:
    Famebot
    Clientless tradebot
    RotMG ping checker
    Zautonexus crack

  13. #12
    Luis's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    2,801
    Reputation
    348
    Thanks
    1,845
    My Mood
    Psychedelic
    Quote Originally Posted by PKTINOS View Post


    he did .
    I misunderstood on my part

  14. #13
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    @Luis
    Done, requesting reapproval.

  15. #14
    Luis's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    2,801
    Reputation
    348
    Thanks
    1,845
    My Mood
    Psychedelic
    File approved, report back results.

  16. #15
    059's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    California
    Posts
    3,312
    Reputation
    700
    Thanks
    92,771
    Nice. Meant to update this. I added options to toggle the following:
    - projectiles
    - damage text
    -misc effects

    Cause in small groups you can turn on ally projectiles without lagging.
    My Vouches
    Having an issue with RotMG? Check for the solution here.


    Need Realm items? Come to RealmStock!

    Accepting PayPal - Bitcoin - Giftcards
    Selling ST Sets, Class Top Sets, Life Pots, and much more!


    Find it here: MPGH Sales Thread

Page 1 of 5 123 ... LastLast

Similar Threads

  1. [Help Request] Update Auto HP/Nexus Realm Relay Script
    By excitedguy in forum Realm of the Mad God Help & Requests
    Replies: 1
    Last Post: 10-01-2018, 01:13 AM
  2. [Outdated] Chat Assist [Spam list] for K-Relay [24/04/2016 Updated]
    By her0fpl in forum Realm of the Mad God Hacks & Cheats
    Replies: 4
    Last Post: 05-03-2016, 06:03 AM
  3. Realm Relay Updates + Ability Auto Aim
    By Nisuxen in forum Realm of the Mad God Tutorials & Source Code
    Replies: 157
    Last Post: 03-19-2015, 04:18 AM
  4. [Realm Relay] What do UPDATE packets contain?
    By CrazyJani in forum Realm of the Mad God Help & Requests
    Replies: 14
    Last Post: 03-05-2014, 05:40 AM
  5. Updating realm relay
    By FainTMako in forum Realm of the Mad God Help & Requests
    Replies: 5
    Last Post: 01-14-2014, 04:03 PM

Tags for this Thread