Thread: Dont go near.[pi]

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33
  1. #11  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    Quote Originally Posted by qpanel View Post
    mmm would be a good idea i guess, but yeh turn your trade off and stuff would fix your problem.
    then u would have to ensure it cant be used in wildy which isnt hard but dont forget it

    gl with your idea tbh i wouldnt no were to start haha.
    yea, i have no idea where to start...
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #12  
    Registered Member Stewie1million's Avatar
    Join Date
    Jun 2011
    Posts
    588
    Thanks given
    2
    Thanks received
    56
    Rep Power
    14
    Or you could just do this... [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #13  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    Quote Originally Posted by Stewie1million View Post
    Or you could just do this... [Only registered and activated users can see links. ]
    I would like my idea better
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #14  
    Go Big or Go Home

    Join Date
    Oct 2011
    Age
    26
    Posts
    1,108
    Thanks given
    266
    Thanks received
    142
    Rep Power
    6
    Why would you ever need this.
    Spoiler for I Respect:
    Reply With Quote  
     

  5. #15  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    Quote Originally Posted by Magermen10 View Post
    Why would you ever need this.
    make it to me / help me create it and ill show you?



    Maybe i make quest of it aswell, im creative
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #16  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    bump
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #17  
    i want a PM. The best in life is free.
    Project M's Avatar
    Join Date
    Mar 2012
    Posts
    368
    Thanks given
    20
    Thanks received
    13
    Rep Power
    14
    bump
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #18  
    Registered Member
    Join Date
    Feb 2012
    Posts
    181
    Thanks given
    3
    Thanks received
    9
    Rep Power
    3
    Free Bump, Wouldn't have a clue where to start!
    Sounds like a crazyy idea!!
    Reply With Quote  
     

  9. #19  
    Registered Member

    Join Date
    Apr 2012
    Posts
    764
    Thanks given
    0
    Thanks received
    276
    Rep Power
    213
    Code:
    Player.java
    
    	public int blockedDistance;
    
    	public void checkWithinBlockedLocation(Client o) {
    		int distance = o.blockedDistance;
    		if (c.absX > (o.absX - distance)) {
    			c.absX = (o.absX - distance);
    			return;
    		}
    		if (c.absX < (o.absX + distance)) {
    			c.absX = (o.absX + distance);
    			return;
    		}
    		if (c.absY > (o.absY - distance)) {
    			c.absY = (o.absY - distance);
    			return;
    		}
    		if (c.absY < (o.absY + distance)) {
    			c.absY = (o.absY + distance);
    			return;
    		}
    	}
    	
    Walking.java
    
    	for (int i = 0; i < Server.playerHandler.players.length; i++) {
    		Client o = (Client) Server.playerHandler.players[i];
    		checkWithinBlockedLocation(o);
    	}
    	
    Commands.java
    
    	if (playerCommand.equalsIgnoreCase("setblocked")) {
    		String[] args = playerCommand.split(" ");
    		int distance = Integer.parseInt(args[1]);
    		c.blockedDistance = distance;
    	}
    Not tested, should work, though.
    Reply With Quote  
     

  10. #20  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,437
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    Quote Originally Posted by L__A View Post
    Code:
    Player.java
    
    	public int blockedDistance;
    
    	public void checkWithinBlockedLocation(Client o) {
    		int distance = o.blockedDistance;
    		if (c.absX > (o.absX - distance)) {
    			c.absX = (o.absX - distance);
    			return;
    		}
    		if (c.absX < (o.absX + distance)) {
    			c.absX = (o.absX + distance);
    			return;
    		}
    		if (c.absY > (o.absY - distance)) {
    			c.absY = (o.absY - distance);
    			return;
    		}
    		if (c.absY < (o.absY + distance)) {
    			c.absY = (o.absY + distance);
    			return;
    		}
    	}
    	
    Walking.java
    
    	for (int i = 0; i < Server.playerHandler.players.length; i++) {
    		Client o = (Client) Server.playerHandler.players[i];
    		checkWithinBlockedLocation(o);
    	}
    	
    Commands.java
    
    	if (playerCommand.equalsIgnoreCase("setblocked")) {
    		String[] args = playerCommand.split(" ");
    		int distance = Integer.parseInt(args[1]);
    		c.blockedDistance = distance;
    	}
    Not tested, should work, though.
    but not rly suggesting adding that... because it will loops every time while a player walks... = lagg..
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Help! Dont know how to do...
    By King Man002 in forum Homework
    Replies: 3
    Last Post: 03-06-2011, 07:54 PM
  2. Replies: 2
    Last Post: 11-01-2009, 03:22 PM
  3. Replies: 13
    Last Post: 06-15-2008, 05:05 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •