bump
|
|

Close.

bump

Code:public boolean isInWilderness(int coordX, int coordY, int Type) { if(isInPkBox()) return false; if(isinsafewild()) return true; if (Type == 1) { if ((coordY >= 3523) && (coordY <= 3967) && (coordX <= 3392) && (absX >= 3131 && absX <= 3133 && absY >=3708 && absY <=3710 ) || (absX >= 3158 && absX <= 3160 && absY >=3708 && absY <=3710 ) && (coordX >= 2942) || absX >= 3220 && absX <= 3299 && absY >= 3520 && absY <=3548 || absX >= 2250 && absX <= 2296 && absY >= 4676 && absY <=4715) { return true; } } else if (Type == 2) { if ((coordY >= 3512) && (coordY <= 3967) && (coordX <= 3392) && (coordX >= 2942)) { return true; } } return false; }![]()
Deleted

Post Both
The Coords You Dont Want Wildy And The Coords You Want Wildy.
Also Maybe Change Type == 2
To Type == 1??
Because i doubt u have your server checking for type == 2
Deleted

You probably got one of the > or < mixed up. That would do it.
Deleted

Explanation:
Your standing in front of the square of land you want to make attackable.
The top of your screen is pointing north.
- You want your X coordinate to be > than the pink circle, but < than the blue
- You want your Y coordinate to be > than the yellow circle, but < than the green
So,
Code:if(X > pink && X < blue && Y > yellow && Y < green) { //inwild } public boolean isInWilderness(int coordX, int coordY, int Type) { if(coordX > pink && coordX < blue && coordY > yellow && coordY < green) { return true; } }
| « [PI] joining a clanchat upon login? | Making Lumbridge the wild. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |