For my new project:

Code:
public boolean isInWilderness(int coordX, int coordY, int wildArea) {

		if (wildArea == 1) 
                              {
			if ((coordY >= 3237) && (coordY <= 999999) 
                                                       && 
                         (coordX >= 3231)    && (coordX <= 999999))
                                                                                   {
				                                                     return true;
			                                                            }
		               } 

                  else if (wildArea == 2) 
                               {
			if ((coordY >= 00000)  && (coordY <= 3203)
                                                          && 
                               (coordX >= 0000) && (coordX <= 3200)) 
                                                                                    {    
				                                                      return true;
			                                                            }
		               }
		return false;
	}


That is my wilderness code, what it is supposed to do is leave Lumbridge completely safe, and the rest of the world dangerous. But it only seems like the first coord set is working, not area 2. I've tried putting them both in wildArea1, separating them ||, but it's not working, and its pissing me off, alot. Can anyone help?

I'm using DeltaScape as a base btw.

---------- Post added at 05:04 PM ---------- Previous post was at 04:42 PM ----------

Nevermind, I've fixed it.

New code: if ((coordY >= 3237) ||
(coordY <= 3203) ||
(coordX <= 3200) ||
(coordX >= 3231))
___________________________________

then the brackets and stuff. Works 100%