yea, i have no idea where to start...Quote:
Originally Posted by qpanel [Only registered and activated users can see links. Click Here To Register...]
Printable View
yea, i have no idea where to start...Quote:
Originally Posted by qpanel [Only registered and activated users can see links. Click Here To Register...]
Or you could just do this... [Only registered and activated users can see links. Click Here To Register...]
I would like my idea better:PQuote:
Originally Posted by Stewie1million [Only registered and activated users can see links. Click Here To Register...]
Why would you ever need this.
make it to me / help me create it and ill show you?:hurr:Quote:
Originally Posted by Magermen10 [Only registered and activated users can see links. Click Here To Register...]
Maybe i make quest of it aswell, im creative(y)
bump
bump
Free Bump, Wouldn't have a clue where to start!
Sounds like a crazyy idea!! :)
Not tested, should work, though.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;
}
but not rly suggesting adding that... because it will loops every time while a player walks... = lagg..Quote:
Originally Posted by L__A [Only registered and activated users can see links. Click Here To Register...]