Page 1 of 3 123 LastLast
Results 1 to 15 of 35
  1. #1
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry

    Autosoup, Kill Aura Criticals, and Click Aimbot

    I'm bored. Have some poorly coded source.
     

    Code:
    package com.l****ey.uberhakes;
    
    import net.minecraft.client.Minecraft;
    import net.minecraft.src.*;
    
    import com.l****ey.leleleleboolernz;
    
    public class AutoSoup 
    {
        //282 = filled soup
        //281 = bowl
        //276 = dia
        //267 = iron
        //283 = gold
        //272 = stone
        //268 = wood
        public static Minecraft mc = Minecraft.getMinecraft();
        public static boolean isSouping = false;
        public static boolean Fixed = false;
        
        public static void Handle() 
        {
            if(mc.thePlayer.getHealth() < 16 && !mc.thePlayer.capabilities.isCreativeMode)
            {
                Soup();
            }
            else
            {
                Sword();
            }
        }
        
        public static void Sword() 
        {        
            for(int slot = 44; slot >= 9; slot--) 
            {
                ItemStack stack = mc.thePlayer.inventoryContainer.getSlot(slot).getStack();
                
                if(stack != null) 
                {
                    if(mc.thePlayer.inventory.currentItem != 276 && mc.thePlayer.inventory.hasItem(276))
                    {
                        if(slot >= 36 && slot <= 44) 
                        {
                            if(stack.itemID  == 276) 
                            {
                                mc.thePlayer.inventory.currentItem = slot - 36;
                            }
                        } 
                        else if(stack.itemID == 276) 
                        {
                            mc.playerController.windowClick(0, slot, 0, 0, mc.thePlayer);
                            mc.playerController.windowClick(0, 37, 0, 0, mc.thePlayer);
                        }
                    }
                    else
                    {
                        if(mc.thePlayer.inventory.currentItem != 267 && mc.thePlayer.inventory.hasItem(267))
                        {
                            if(slot >= 36 && slot <= 44) 
                            {
                                if(stack.itemID  == 267) 
                                {
                                    mc.thePlayer.inventory.currentItem = slot - 36;
                                }
                            } 
                            else if(stack.itemID == 267) 
                            {
                                mc.playerController.windowClick(0, slot, 0, 0, mc.thePlayer);
                                mc.playerController.windowClick(0, 37, 0, 0, mc.thePlayer);
                            }
                        }
                        else
                        {
                            if(mc.thePlayer.inventory.currentItem != 283 && mc.thePlayer.inventory.hasItem(283))
                            {
                                if(slot >= 36 && slot <= 44) 
                                {
                                    if(stack.itemID  == 283) 
                                    {
                                        mc.thePlayer.inventory.currentItem = slot - 36;
                                    }
                                } 
                                else if(stack.itemID == 283) 
                                {
                                    mc.playerController.windowClick(0, slot, 0, 0, mc.thePlayer);
                                    mc.playerController.windowClick(0, 37, 0, 0, mc.thePlayer);
                                }
                            }
                            else
                            {
                                if(mc.thePlayer.inventory.currentItem != 272 && mc.thePlayer.inventory.hasItem(272))
                                {
                                    if(slot >= 36 && slot <= 44) 
                                    {
                                        if(stack.itemID  == 272) 
                                        {
                                            mc.thePlayer.inventory.currentItem = slot - 36;
                                        }
                                    } 
                                    else if(stack.itemID == 272) 
                                    {
                                        mc.playerController.windowClick(0, slot, 0, 0, mc.thePlayer);
                                        mc.playerController.windowClick(0, 37, 0, 0, mc.thePlayer);
                                    }
                                }
                                else
                                {
                                    if(mc.thePlayer.inventory.currentItem != 268 && mc.thePlayer.inventory.hasItem(268))
                                    {
                                        if(slot >= 36 && slot <= 44) 
                                        {
                                            if(stack.itemID  == 268) 
                                            {
                                                mc.thePlayer.inventory.currentItem = slot - 36;
                                            }
                                        } 
                                        else if(stack.itemID == 268) 
                                        {
                                            mc.playerController.windowClick(0, slot, 0, 0, mc.thePlayer);
                                            mc.playerController.windowClick(0, 37, 0, 0, mc.thePlayer);
                                        }
                                    }
                                }
                            }
                        }
                    }    
                }
            }
        }
    
        public static void Soup() 
        {        
            for(int slot = 44; slot >= 9; slot--) 
            {
                ItemStack stack = mc.thePlayer.inventoryContainer.getSlot(slot).getStack();
                
                
                if(stack != null) 
                {
                    if(mc.thePlayer.inventory.currentItem != 282 && mc.thePlayer.inventory.hasItem(282))
                    {
                        if(slot >= 36 && slot <= 44) 
                        {
                            if(stack.itemID  == 282) 
                            {
                                mc.thePlayer.inventory.currentItem = slot - 36;
                                mc.thePlayer.sendQueue.addToSendQueue(new Packet15Place(-1, -1, -1, -1, mc.thePlayer.inventory.getCurrentItem(), 0F, 0F, 0F));
                            }
                        } 
                        else if(stack.itemID == 282) 
                        {
                            mc.playerController.windowClick(0, slot, 0, 0, mc.thePlayer);
                            mc.playerController.windowClick(0, 37, 0, 0, mc.thePlayer);
                        }
                    }
                    
                }
            }
        }
    
        
    }


     

    Run this when you are close to your opponent. Causes jittery vertical movement with a decent crit : normal ratio.
    Code:
          if(mc.thePlayer.getDistanceToEntity(e) < killRange)
    	{	    							
    	  if(mc.thePlayer.motionY > 0.03)
    	  {
    	    	mc.thePlayer.motionY = -0.22;
    	  }
    	  else
    	  {
    	    if(mc.thePlayer.motionY > -0.19 && mc.thePlayer.onGround)
    	   {
    	    mc.thePlayer.jump();
    	   }
    	 }
         }


     

    Instead of clicking, call this instead when you click. ( mc.mouseclick(0)
    This should be called from Minecraft.java where clicking is handled.
    Code:
    public static void ClickAim() 
    	{
    		try
        	        {
    	    	   for(int i = 0; i < mc.theWorld.loadedEntityList.size(); i++)
    	    	   {
    	    		Entity e = (Entity) mc.theWorld.getLoadedEntityList().get(i);
    	    		if(e instanceof EntityPlayer && killPlayers)
    	    		{
    	    			if(e != mc.thePlayer && !e.isDead && mc.thePlayer.canEntityBeSeen(e) && mc.thePlayer.getDistanceToEntity(e) < killRange && e instanceof EntityPlayer)
    					{
    	    						mc.thePlayer.swingItem();								
    							mc.thePlayer.sendQueue.addToSendQueue(new Packet18Animation(mc.thePlayer, 1));
    							mc.playerController.attackEntity(mc.thePlayer, e);	
    							break;
    					}
    	    		}
                      }catch(Exception e){}
    }


    Quote Originally Posted by random guy
    How do you call this?
    For autosoup: YourClassNameHere.Handle();
    For criticals: As I mentioned in the spoiler, just put it in the section where it detects nearby entities
    For click aim: In minecraft.java look for clickMouse. In that void, if the argument is 0 remove the clicking function and call YourClassNameHere.ClickAim();
    Last edited by LordPankake; 05-14-2013 at 01:23 PM.

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

    maxive1234 (05-13-2013),Yesitics (01-07-2017)

  3. #2
    Smaug's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    2,518
    Reputation
    121
    Thanks
    1,192
    I'm sure this would be helpful for coders, nice job!

  4. #3
    maxive1234's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by avery12 View Post
    I'm sure this would be helpful for coders, nice job!
    Yep, SPecially the first 2...

  5. #4
    Gοku's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    MPGH.net
    Posts
    1,527
    Reputation
    206
    Thanks
    1,043
    My Mood
    Cheerful
    A Tutorial On How To Put These Into A Client Would Be Nice (Suggestion )

     







    500 Posts ✓
    750 Posts ✓
    1,337 Posts ✓
    2,000 Posts ×
    3,000 Posts ×

    Ex VIP
    Ex Resource Team Member
    Ex Wiki Editor

  6. The Following 2 Users Say Thank You to Gοku For This Useful Post:

    cacapipipupu (06-17-2014),TeamFatalMC (06-27-2014)

  7. #5
    hamste's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by Gοku View Post
    A Tutorial On How To Put These Into A Client Would Be Nice (Suggestion )
    Agree! I have no idea what to do with it lol

  8. #6
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Quote Originally Posted by Gοku View Post
    A Tutorial On How To Put These Into A Client Would Be Nice (Suggestion )
    Edited with basic information on how to call them. They should all be in their own class for organization.

  9. #7
    hamste's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by LordPankake View Post
    Edited with basic information on how to call them. They should all be in their own class for organization.
    2 questions:

    What's the l****ey imports at the top and are they neccessary? (In autosoup)
    and what do we out in for our checkKeys to activate the autosoup hack?

  10. #8
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Quote Originally Posted by hamste View Post
    2 questions:

    What's the l****ey imports at the top and are they neccessary? (In autosoup)
    I renamed the packages to l.e.l.g.h.e.y and it censored it XD
    They're necessary if you put the file into a package, so sort of.

    Quote Originally Posted by hamste View Post
    what do we out in for our checkKeys to activate the autosoup hack?
    I'm not too sure what you're asking here. How do you activate it? IF that is the question, take your standard checkkey tutorial for toggling booleans, and when the boolean is true, call Handle();

  11. #9
    Gοku's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    MPGH.net
    Posts
    1,527
    Reputation
    206
    Thanks
    1,043
    My Mood
    Cheerful
    Quote Originally Posted by LordPankake View Post
    I renamed the packages to l.e.l.g.h.e.y and it censored it XD
    They're necessary if you put the file into a package, so sort of.


    I'm not too sure what you're asking here. How do you activate it? IF that is the question, take your standard checkkey tutorial for toggling booleans, and when the boolean is true, call Handle();
    if(checkKey(Keyboard.KEY_PUTAKEY)
    {
    CODE IN HERE
    }

     







    500 Posts ✓
    750 Posts ✓
    1,337 Posts ✓
    2,000 Posts ×
    3,000 Posts ×

    Ex VIP
    Ex Resource Team Member
    Ex Wiki Editor

  12. #10
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Quote Originally Posted by Gοku View Post
    if(checkKey(Keyboard.KEY_PUTAKEY)
    {
    CODE IN HERE
    }
    @>People other than Goku<
    Here's the easiest way.
    LeBooleanClass.LeBoolean = !LeBooleanClass.LeBoolean;

    And if it's an xray you're making you need to add mc.theWorld.loadRenderers(); //something similair to this, it rerenders the world to activate xray or any render mod that requires a update.

    That or if you only want to fire a mod once just call a void in the {}'s.
    Last edited by LordPankake; 05-14-2013 at 04:13 PM.

  13. The Following 2 Users Say Thank You to LordPankake For This Useful Post:

    Gοku (05-15-2013),hamste (05-15-2013)

  14. #11
    hamste's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    2
    This is my code. Can you help?

    Code:
     else{
            	
            	drawRect(2,2,230,14, 0xaf424242);
            	var8.drawStringWithShadow("Hamish's Hack v0.3       Press 'Y' For Menu!",4,4,0xaabb);
            }
            	if(checkKey(Keyboard.KEY_Y)){
            		mods.menu = !mods.menu;
                }
            	if(checkKey(Keyboard.KEY_F)){
            		mods.fly = !mods.fly;
            	}
            	if(checkKey(Keyboard.KEY_N)){
            		mods.nofall = !mods.nofall;
            	}
            	if(checkKey(Keyboard.KEY_B)){
            		mc.renderGlobal.loadRenderers();
            		mods.fb = !mods.fb;
            	}
            	if(checkKey(Keyboard.KEY_X)){
            		mc.renderGlobal.loadRenderers();
            		mods.xray = !mods.xray;
            	}
            	if(checkKey(Keyboard.KEY_LCONTROL)){
            		mods.zoom = !mods.zoom;
            	}
            	if(checkKey(Keyboard.KEY_C)){
            		mods.chest = !mods.chest;
            	}
            	if(checkKey(Keyboard.KEY_R)){
            		mods.aura = !mods.aura;
            	}
            	if(checkKey(Keyboard.KEY_O)){
            		mods.sneak = !mods.sneak;
            	}
            	if(checkKey(Keyboard.KEY_G)){
            		mods.speed = !mods.speed;
            	}
            	if(checkKey(Keyboard.KEY_H)){
            		mods.jump = !mods.jump;
            	}
            	if(checkKey(Keyboard.KEY_B)){
            		mods.step = !mods.step;
            	}
            	if(checkKey(Keyboard.KEY_P)){
            		mods.soup = !mods.soup;
            	}
            	
            	if(mods.menu){
            		
            		drawRect(2,16,130,135, 0xaf424242);
            		var8.drawString("Menu:",4,18,0xDDA0DD);
            		
            	
            		if(!mods.fly){
            			var8.drawStringWithShadow("\2474F = Fly [OFF]",4,30,0xaabb);
            		}
            		if(!mods.nofall){
            			var8.drawStringWithShadow("\2474N = NoFall [OFF]",4,40,0xaabb);
            		}
            		if(!mods.xray){
            			var8.drawStringWithShadow("\2474X = Xray [OFF]",4,50,0xaabb);
            		}
            		if(!mods.fb){
            			var8.drawStringWithShadow("\2474B = FullBright [OFF]",4,60,0xaabb);
            		}
            		if(!mods.zoom){
            			var8.drawStringWithShadow("\2474L-CTRL = Zoom [OFF]",4,70,0xaabb);
            		}
            		if(!mods.chest){
            			var8.drawStringWithShadow("\2474C = ChestESP [OFF]",4,80,0xaabb);
            		}
            		if(!mods.aura){
            			var8.drawStringWithShadow("\2474R = KillAura [OFF]",4,90,0xaabb);
            		}
            		if(!mods.sneak){
            			var8.drawStringWithShadow("\2474O = Sneaker [OFF]",4,100,0xaabb);
            		}
            		if(!mods.speed){
            			var8.drawStringWithShadow("\2474G = Speedy [OFF]",4,110,0xaabb);
            		}
            		if(!mods.jump){
            			var8.drawStringWithShadow("\2474H = High Jump [OFF]",4,120,0xaabb);
            		}
            		if(!mods.step){
            			var8.drawStringWithShadow("\2474B = Step [OFF]",4,130,0xaabb);
            		}
            	//put here otherwise
        	
            
            if(mods.fly){
        		var8.drawStringWithShadow("\2472F = Fly [ON]",4,30,0xaabb);
        	}
            if(mods.nofall){
        		var8.drawStringWithShadow("\2472N = NoFall [ON]",4,40,0xaabb);
        	}
            if(mods.xray){
    			var8.drawStringWithShadow("\2472X = Xray [ON]",4,50,0xaabb);
    		}
    		if(mods.fb){
    			var8.drawStringWithShadow("\2472B = FullBright [ON]",4,60,0xaabb);
    		}
    		if(mods.zoom){
    			var8.drawStringWithShadow("\2472L-CTRL = Zoom [ON]",4,70,0xaabb);
    		}
    		if(mods.chest){
    			var8.drawStringWithShadow("\2472C = ChestESP [ON]",4,80,0xaabb);
    		}
    		if(mods.aura){
    			var8.drawStringWithShadow("\2472R = KillAura [ON]",4,90,0xaabb);
    		}
    		if(mods.sneak){
    			var8.drawStringWithShadow("\2472O = Sneaker [ON]",4,100,0xaabb);
    		}
    		if(mods.speed){
    			var8.drawStringWithShadow("\2472G = Speedy [ON]",4,110,0xaabb);
    			mc.thePlayer.landMovementFactor = 1.05F;
    		}
    		if(mods.jump){
    			var8.drawStringWithShadow("\2472H = High Jump [ON]",4,120,0xaabb);
    		}
    		if(mods.step){
    			var8.drawStringWithShadow("\2472B = Step [ON]",4,130,0xaabb);
    		}
    Where do i put and how do i put in AutoSoup.
    If you can, please tell me what i have to do elsewhere to get AutoSoup to work!
    heres my mods.java i made....

    Code:
    package net.minecraft.src;
    
    public class mods {
    
    	public static boolean menu = false;
    	public static boolean nofall = false;
    	public static boolean fly;
    	public static boolean xray;
    	public static boolean fb;
    	public static boolean zoom;
    	public static boolean chest;
    	public static boolean aura;
    	public static boolean sneak;
    	public static boolean speed;
    	public static boolean jump;
    	public static boolean step;
    	public static boolean soup;
    }
    TBH i dont know what much of this does.
    Do i make a new class in net.minecraft.src for autosoup?
    Do i make a new package?

    Any help is appreciated!

    If anyone can help ill give rep and or thanks.

    THANK YOU!

    newb out

  15. #12
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    Quote Originally Posted by hamste View Post
    This is my code. Can you help?

    Code:
    *GuiIngame coding*
    Where do I put AutoSoup? How do I put in AutoSoup?
    If you can, please tell me what i have to do elsewhere to get AutoSoup to work!
    Here's my mods.java i made....

    Code:
    *Boolean class*
    Quote Originally Posted by hamste View Post
    TBH i dont know what much of this does.
    You should talk yourself through it. That's how I made autosoup.
    "If my health is below 16, I want to switch to my soup. Then I want to use the item, then switch back to my weapon."
    With that in mind, you have a pretty good idea of what needs to be written.

    Quote Originally Posted by hamste View Post
    Do i make a new class in net.minecraft.src for autosoup?
    Do i make a new package?
    If you want to have an optimal setup, yes, but with what you have so far, no. It can stay in net.minecraft.src.

    Quote Originally Posted by hamste View Post
    Any help is appreciated!

    If anyone can help ill give rep and or thanks.

    THANK YOU!

    newb out
    The first thing I noticed was that this is all in the GuiIngame (That was my old tutorial, I know. It's the begginer tut). While there is no problem with that, it's not the cleanest code and not easiest to update.
    Optimally, you won't ever have to touch GuiIngame, but for a first try it's perfectly ok to use it. (If you do wish to use a easy to update version however, here's a link to a tutorial to do so)


    Ok, since your code is all in the default package I'd reccomend making a new class called "Soup"
    then in your GuiIngame
    Code:
    if(mods.soup)
    {
           Soup.Handle();
    }
    That's all you need to do for auto-soup. The class itself should take care of the rest.

  16. The Following User Says Thank You to LordPankake For This Useful Post:

    hamste (05-15-2013)

  17. #13
    hamste's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    2
    Okay! Ill try it tonight when I get home.

    Thanks!

  18. #14
    hamste's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    2
    Works! Thanks a bunch.

    Ill share my client just for feedback.

    Thanks!

  19. #15
    Fresh-'s Avatar
    Join Date
    Jul 2013
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    1
    I need someones help, I just want to add autosoup with a button activation into my minecraft.jar with no pop up/gui just one simple thing.
    If anyone can help me, add my on skype please, iCorleyy

  20. The Following User Says Thank You to Fresh- For This Useful Post:

    Yesitics (01-07-2017)

Page 1 of 3 123 LastLast

Similar Threads

  1. Kill Creek Glitches and Spots
    By yaserifti1 in forum Combat Arms Glitches
    Replies: 18
    Last Post: 02-19-2011, 10:59 AM
  2. Rustic Kill Marks (black and white/sepia)
    By Rifleman2.0 in forum CrossFire Mods & Rez Modding
    Replies: 6
    Last Post: 07-24-2010, 08:51 PM
  3. [Event]Kill the Infected! and April Fragfest
    By Mc565 in forum Combat Arms Discussions
    Replies: 21
    Last Post: 04-03-2010, 04:32 PM
  4. Replies: 2
    Last Post: 03-28-2009, 06:52 PM
  5. Stife Chams Tut And Hidden AIMBOT!
    By ModaFoca in forum Combat Arms Hacks & Cheats
    Replies: 28
    Last Post: 09-13-2008, 03:23 AM