Thread: How to make Wilderness areas Simpler - EASY

Results 1 to 6 of 6
  1. #1 How to make Wilderness areas Simpler - EASY 
    Registered Member
    BraydenF's Avatar
    Join Date
    Feb 2008
    Posts
    651
    Thanks given
    0
    Thanks received
    0
    Rep Power
    90
    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.
     

  2. #2  
    Registered Member
    Join Date
    Jan 2007
    Posts
    329
    Thanks given
    0
    Thanks received
    0
    Rep Power
    60
    Wilderness areas were always like this:
    Hard and Annoying.
     

  3. #3  
    yankee
    Guest
    wth pointless? but good job. rep++
     

  4. #4  
    Registered Member
    BraydenF's Avatar
    Join Date
    Feb 2008
    Posts
    651
    Thanks given
    0
    Thanks received
    0
    Rep Power
    90
    What it does is rather than marking safe zones you mark wilderness, from my expeience its MUCH better than marking safe zones. Try it out if youw ant on a scrap project.
     

  5. #5  
    Registered Member
    Join Date
    Jan 2007
    Posts
    329
    Thanks given
    0
    Thanks received
    0
    Rep Power
    60
    Quote Originally Posted by BraydenF View Post
    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.

    Yeah.. but this is in every source, so... you leeched. and... you would care if you didn't leech.
     

  6. #6  
    Registered Member
    BraydenF's Avatar
    Join Date
    Feb 2008
    Posts
    651
    Thanks given
    0
    Thanks received
    0
    Rep Power
    90
    Whoa, what the hell? How could I leech it? I know its in every source thats why I said search for it? All i did was figure some things out and tell people. Anyways if you think its leaching then you prolly think that you the b3st3st c0d3r 3v3r eh?

    No need to quoter all my first post...
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •