Bump, we would very much appreciate it if someone can help us with this.
Thanks in advance.
|
Fixed thanks to Arithium
Bump, we would very much appreciate it if someone can help us with this.
Thanks in advance.
Looks like your walking verifies the path (or uses the pathfinding itself to find the path), and your maps aren't either loaded properly, or you don't have the same client data added to the server.
There's a maximum distance you can click away from the player using the minimap & an error in the calculation if I remember correctly
Seems to me that the walking is caused by the tile not being viewable (even though it is). Replace the isViewableFrom check with thisCode:if(!player.getPosition().isViewableFrom(positions[0])) { invalidStep = true; } else { for (int i = 0; i < steps; i++) { positions[i + 1] = new Position(path[i][0] + firstStepX, path[i][1] + firstStepY, player.getPosition().getZ()); int distance = player.getPosition().getDistance(positions[i + 1]); if(distance < -22 || distance > 22) { invalidStep = true; break; } } }
Code:if(player.getPosition().getDistance(positions[0]) > 25) {
Thanks man, worked like a charm!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |