Results 1 to 10 of 10
  1. #1
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,316
    Points
    9,413
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,316
    Points
    9,413
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default RELEASE minecraft Day-night project.

    like i said this is a project which i have gave upon. but im working on the other parts for it if anyone wants to finish this
    Code:
    Day()
    {
    
    	self.day = 1;
    
    	if (self.day = 1);
    	{
    		
    		setExpFog( 200, 1000, 255/255, 255/255, 255/255, 0.8 );
    	
    		wait 120.0;	
    		self thread dtn();
    			
    	}
    
    	
    
    }
    
    dtn()
    {
    	self iPrintln( "^1 Watch out! It's Nearly Night" );
    	wait 5.0;
    	setExpFog( 200, 1000, 255/255, 255/255, 255/255, 0.8 );
    	Wait 5.0;
    	setExpFog( 200, 1000, 200/255, 200/255, 200/255, 0.8 );
    	Wait 5.0;
    	setExpFog( 200, 1000, 150/255, 150/255, 150/255, 0.8 );
    	Wait 5.0;
    	setExpFog( 200, 1000, 100/255, 100/255, 100/255, 0.8 );
    	Wait 5.0;
    	setExpFog( 200, 1000, 50/255, 50/255, 50/255, 0.8 );
    	wait 5.0;
    	setExpFog( 200, 1000, 0/255, 0/255, 0/255, 0.8 );
    	self.day = 0;
    	Self thread Night();
    }
    
    Night()
    {
    	self.night = 1;
    
    	if (self.night = 1);
    	{
    		
    		setExpFog( 200, 1000, 0/255, 0/255, 0/255, 0.8 );
    	
    		wait 120.0;	
    		self thread ntd();
    			
    	}
    }
    
    ntd()
    {
    	self iPrintln( "^1It's Nearly Day" );
    	wait 5.0;
    	setExpFog( 200, 1000, 0/255, 0/255, 0/255, 0.8 );
    	wait 5.0;
    	setExpFog( 200, 1000, 50/255, 50/255, 50/255, 0.8 );
    	wait 5.0;
    	setExpFog( 200, 1000, 100/255, 100/255, 100/255, 0.8 );
    	wait 5.0;
    	setExpFog( 200, 1000, 150/255, 150/255, 150/255, 0.8 );
    	wait 5.0;
    	setExpFog( 200, 1000, 200/255, 200/255, 200/255, 0.8 );
    	wait 5.0;
    	setExpFog( 200, 1000, 255/255, 255/255, 255/255, 0.8 );
    	self.night = 0;
    	self thread Day();
    }
    Alternative:

    Code:
    Day()
    {
    
    	self.day = 1;
    
    	If (self.day = 1);
    	{
    		// kill all on opposite team	
    		setExpFog( 200, 1000, 255/255, 255/255, 255/255, 0.8 );
    	
    		wait 120.0;	
    		self thread dtn();
    			
    	}
    
    	
    
    }
    
    dtn()
    {
    	self iPrintln( "^1It's Nearly Night" );
    	self.i = 0
           	setExpFog( 200, 1000, 255/self.i, 255/self.i, 255/self.i, 0.8 );
    
            for ( i < 255 )
            {
    		i++;
            }
    
    	if ( i = 0 )
    	{
    		self.day = 0
    		self thread Night();
    	}
    }
    
    Night()
    {
    	self.night = 1;
    
    	If (self.night = 1);
    	{
    	
    		setExpFog( 200, 1000, 0/255, 0/255, 0/255, 0.8 );
    	
    		wait 120.0;	
    		self thread ntd();
    			
    	}
    }
    
    ntd()
    {
    	self iPrintln( "^1It's Nearly Day" );
    	self.i = 255;
           	setExpFog( 200, 1000, 255/self.i, 255/self.i, 255/self.i, 0.8 );
    
            for ( i > 0 )
            {
    		i--;
            }
    
    	if ( i == 0 )
    	{
    		self.night = 0
    		self thread Day();
    	}
    }
    this makes it so 2 mins of day and 2 mins of night. no idea if it works but i said its a project and never completed im working on it. ill release the other one later

    0 Not allowed! Not allowed!
    Last edited by Strike; 02-26-2012 at 09:37 AM.

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  2. #2
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    nice mod...good job

    0 Not allowed! Not allowed!

  3. #3
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,316
    Points
    9,413
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,316
    Points
    9,413
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    thanks. its integrated into my minecraft mdo but it gives a bad syntax

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  4. #4
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    There's a lot of syntax errors there man.
    Example: for( i > 0 )

    You didn't defined "i" and that's not how you do a for statement, try a while( i > 0 )

    Some syntax errors I noticed:
    1. if( variable = integer ); - You need two ='s and no semi-colon at the end
    2. In alternate - you need to define a view variables.

    0 Not allowed! Not allowed!

  5. #5
    Wii U Section Moderator
    Computer Engineer
    MrOwnership's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
    Gamer IDs

    Steam ID: MrOwnership Wii Code: MrOwnership

    Default

    If statements are not capitalized and for loops need 3 parameters.

    I like the idea of the time changing from day to night though.

    0 Not allowed! Not allowed!

  6. #6
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,316
    Points
    9,413
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,316
    Points
    9,413
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    Quote Originally Posted by Tlpwnzer View Post
    There's a lot of syntax errors there man.
    Example: for( i > 0 )

    You didn't defined "i" and that's not how you do a for statement, try a while( i > 0 )

    Some syntax errors I noticed:
    1. if( variable = integer ); - You need two ='s and no semi-colon at the end
    2. In alternate - you need to define a view variables.
    the alternative is one i puttogether in the editor box here to try a different aproach. i was told by madcow that i can do

    self.i = 255;

    and then i can use i on its own?

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  7. #7
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    here is your first one with fixed errors

    Code:
    Day()
    {
    	self.day = 1;
    
    	if(self.day == 1)
    	{
    		setExpFog( 200, 1000, 255/255, 255/255, 255/255, 0.8 );
    	
    		wait 120;	
    		self thread dtn();		
    	}
    }
    
    dtn()
    {
    	self iPrintln( "^1 Watch out! It's Nearly Night" );
    	wait 5;
    	setExpFog( 200, 1000, 255/255, 255/255, 255/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 200/255, 200/255, 200/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 150/255, 150/255, 150/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 100/255, 100/255, 100/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 50/255, 50/255, 50/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 0/255, 0/255, 0/255, 0.8 );
    	self.day = 0;
    	self thread Night();
    }
    
    Night()
    {
    	self.night = 1;
    
    	if (self.night == 1)
    	{	
    		setExpFog( 200, 1000, 0/255, 0/255, 0/255, 0.8 );
    	
    		wait 120;	
    		self thread ntd();	
    	}
    }
    
    ntd()
    {
    	self iPrintln( "^1It's Nearly Day" );
    	wait 5;
    	setExpFog( 200, 1000, 0/255, 0/255, 0/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 50/255, 50/255, 50/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 100/255, 100/255, 100/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 150/255, 150/255, 150/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 200/255, 200/255, 200/255, 0.8 );
    	wait 5;
    	setExpFog( 200, 1000, 255/255, 255/255, 255/255, 0.8 );
    	self.night = 0;
    	self thread Day();
    }

    0 Not allowed! Not allowed!

  8. #8
    Wii U Section Moderator
    Computer Engineer
    MrOwnership's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
    Gamer IDs

    Steam ID: MrOwnership Wii Code: MrOwnership

    Default

    You don't need the if statement if(self.day == 1) if self.day is going to be 1 no matter what. same goes with the if(self.night == 1).
    You really don't even need self.day/night because they have no effect on anything. Unless you're gonna add more functions that use the variables

    0 Not allowed! Not allowed!

  9. #9
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    Quote Originally Posted by MrOwnership View Post
    You don't need the if statement if(self.day == 1) if self.day is going to be 1 no matter what. same goes with the if(self.night == 1).
    You really don't even need self.day/night because they have no effect on anything. Unless you're gonna add more functions that use the variables
    usually people(like me) use variables like that to make sure the script doesn't glitch out and start overlapping each other

    0 Not allowed! Not allowed!

  10. #10
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,316
    Points
    9,413
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,316
    Points
    9,413
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    Quote Originally Posted by MrOwnership View Post
    You don't need the if statement if(self.day == 1) if self.day is going to be 1 no matter what. same goes with the if(self.night == 1).
    You really don't even need self.day/night because they have no effect on anything. Unless you're gonna add more functions that use the variables
    It makes it more stable as its a loop and i had a function for dat and night where bots spawn

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 10:38 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.