Results 1 to 6 of 6
  1. #1
    Expfighter's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Location
    On planet earth
    Posts
    58
    Reputation
    10
    Thanks
    238
    My Mood
    Cheerful

    Making a KillAura module for 1.9/1.10

    Alright, so, currently I'm making a hacked client myself and found myself searching for a code snippet of a 1.9/1.10 KillAura, and not finding one.
    Ended up just making it myself, so, for everyone like me who are looking for how to do it:
    Here's my code!

    Before we start:
    Most of the code stays pretty much the same as 1.8 KillAuras were.
    Only change is that there's a wait time before attacking.

    The code:
    In the KillAura module class, make a new float 'cooldown':
    Code:
    float cooldown = 0;
    Now, on each update, you're going to check whether or not this 'cooldown' has reached 0 yet, and if not, decrement it by 1. If it did, set it back to the cooldown the current tool has, and attack the surrounding mobs once.

    Code:
    public void onUpdate() {
        //Check whether or not the current module is enabled. If your update method is only called when this is true, ignore this line.
        if (!isEnabled()) return;
    
        //Handle whether or not the player should attack
        if (float cooldown > 0){
            //There is still a cooldown active. Decrement cooldown by 1, and wait for the next update.
            cooldown--;
            return;
        }else //The cooldown has expired. Put it back to original, and attack.
            cooldown = mc.thePlayer.getCooldownPeriod(); //mc refers to the Minecraft object. getCooldownPeriod() returns the cooldown period of the item held by the player.
    
        //Loops through all loaded player entities, checks whether they're alive or not, and attacks them
        for (Entity entity : mc.theWorld.playerEntities){
            if (entity.isEntityAlive(){
                //Attacks the player using a packet
                mc.thePlayer.connection.sendPacket(new CPacketUseEntity(entity));
                mc.thePlayer.swingArm(EnumHand.MAIN_HAND);
            }
        }
    }
    There you go! That's it. To make it attack mobs instead of players, just let it loop through loadedEntityList instead, and check if it's an instance of LivingEntity.
    Feel free to use this code, change it etc..
    (btw adding those colours in was a damn pain ;-;)
    Cheers!
    Last edited by Expfighter; 07-05-2016 at 09:05 AM. Reason: Changed title grammar



    [IMG]https://i6.photobucke*****m/albums/y239/blackprism2/PedobearChase.gif[/IMG]



  2. The Following User Says Thank You to Expfighter For This Useful Post:

    Efilon (07-19-2019)

  3. #2
    Five's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Location
    South Korea
    Posts
    1,225
    Reputation
    79
    Thanks
    279
    My Mood
    Sleepy
    Thanks for this! Looks really nice.

  4. #3
    sETDHGSThjswrtjhrtjh's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    118
    Reputation
    10
    Thanks
    205
    I'm trying to make one that will bypass hypixel's watchdog if you could help me that'd be great.

  5. #4
    megapillar's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    3
    watchdog is really tricky, i've tried for too long to try get round it

  6. #5
    Cuckshed's Avatar
    Join Date
    Sep 2016
    Gender
    female
    Location
    memes, internet
    Posts
    5
    Reputation
    10
    Thanks
    0
    won't bypass badlion.

  7. #6
    ramzmista's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    1
    thanks mr great guide

Similar Threads

  1. How to make Chams for Warrock
    By Str8Thimo in forum Game Hacking Tutorials
    Replies: 4
    Last Post: 03-07-2012, 07:27 PM
  2. [Help] Making Sign for Ca
    By kambo in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 08-31-2008, 04:37 AM
  3. How to make checkboxes for vb6 for Warrock
    By Desymondo in forum Visual Basic Programming
    Replies: 1
    Last Post: 10-21-2007, 05:49 PM
  4. how to make checkboxes for vb6 for warrock
    By Desymondo in forum WarRock - International Hacks
    Replies: 3
    Last Post: 10-21-2007, 10:52 AM
  5. Make accounts for US version?
    By chris9273 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 05-28-2006, 11:31 AM

Tags for this Thread