Thread: Code

Results 1 to 7 of 7
  1. #1
    Ju1cy's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    my house
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Inspired

    [SOLVED] Close please

    Code:
    Jump()
    {
    	self endon("disconnect");
    	if("jump_height" == "39")
    	{
    		setDvar("jump_height", "800");
    	}
    	else
    	{
    		setDvar("jump_height", "39");	
    	}
    }
    This code doesn't work for me. I'm using a menu and when i choose jump, nothing happens. Can anyone explain?
    Last edited by Ju1cy; 01-19-2011 at 01:24 PM.

  2. #2
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Never tried this, so I might just be thinking of something else, but

    Code:
    Jump()
    {
    	self endon("disconnect");
     
            jumpHeight = getDvar("jump_height");
    
    	if(jumpHeight == 39)
    	{
    		setDvar("jump_height", 800);
    	}
    	else
    	{
    		setDvar("jump_height", 39);	
    	}
    }

  3. #3
    Ju1cy's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    my house
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Inspired
    thanks, but do you know if there's an easy way to toggle the jump from normal jump to super jump because that is what i was trying to do. Atleast the super jump works now but i can't turn it off.

    EDIT: thanks guys, but still can't put off super jump
    Last edited by Ju1cy; 01-19-2011 at 01:12 PM.

  4. #4
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    I do know there is some kind of getVelocity code, that doesn't involve a Dvar.
    Can't remember it though, and can't think of anything else. Sorry ;(

  5. #5
    Ju1cy's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    my house
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Inspired
    Quote Originally Posted by Arasonic View Post
    I do know there is some kind of getVelocity code, that doesn't involve a Dvar.
    Can't remember it though, and can't think of anything else. Sorry ;(
    Found the code in Elitemossys v8

    Code:
    Jump()
    {
    	self endon("disconnect");
     
    	if(getDvarInt("jump_height")!=999)
    	{
    		setDvar("jump_height",999);
    		setDvar("bg_fallDamageMaxHeight",9999);
    		setDvar("bg_fallDamageMinHeight",9998);
    	}
    	else
    	{
    		setDvar("jump_height",39);
    		setDvar("bg_fallDamageMaxHeight",300);
    		setDvar("bg_fallDamageMinHeight",128);
    	}
    }

  6. #6
    Boon Pek's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    389
    My Mood
    Inspired
    Mork as solved?
    My minecraft launcher!

    A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!








    [img]https://i61.photobucke*****m/albums/h56/damwickid/pscs5.png[/img]


  7. #7
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    /solved

    Good job guys

    /Closed