Description: Makes adding in wilderness easier and more accurate in my opinion, very simple
Difficulty: 1, trust me very easy well explain short.
Assumed Knowledge: ctrl + f, how to clikc keys? nothing much.
Tested Server: Tried on almost all java coded servers.
Files/Classes Modified: client.java
1st thing, I don;t care about rep but don;t de-rep me, thanks.
2nd thing, Its a simple tutorial but people don't see this when its right there, just trying to help.
3rd thing, JK...on with the procedure:
Search for this in client.java:
Code:
public boolean nonWild() {
You well see this Code:
Code:
public boolean nonWild() {//safe zone
if ((absX >= #### && absX <= #### && absY >= #### && absY <= ####) || (absX >= #### && absX <= #### && absY >= #### && absY <= ####))
{
return true;
} else {
return false;
}
}
The #'s are the point at which the safe zone starts/ends but this tutorial isn't for making safe zones.
Now what i thought was it would be easier just to mark Wild Areas rather than safe zones, so its very simple all you have to do is switch the:
Code:
public boolean nonWild() {//safe zone
if ((absX >= #### && absX <= #### && absY >= #### && absY <= ####) || (absX >= #### && absX <= #### && absY >= #### && absY <= ####))
{
return true;
} else {
return false;
}
}
you switch them to:
Code:
public boolean nonWild() {//safe zone
if ((absX >= #### && absX <= #### && absY >= #### && absY <= ####) || (absX >= #### && absX <= #### && absY >= #### && absY <= ####))
{
return false;
} else {
return true;
}
}
Before it was saying if your coordinate (####) markers were specifing a area that area would be a safe zone but if we switch the true and false statments it says basically the opposite, anything that you specified by the coordinates would be wilderness, then you have to mark where your wildy start and where it finishes, you can easily do that by looking at the code the: X & Y and the > (greaterthan) & < (lessthan).
You also might want to change this just for your knowledge:
Code:
public boolean nonWild() {//safe zone
change to:
Code:
public boolean nonWild() {//wilderness zone
Pretty basic but I figured not all people would think of it, it works fine for me on every source i've used/tested.
Yeah I made this but its not much rofl. Leech away idc.