Thread: Making safe spots in wild?

Results 1 to 6 of 6
  1. #1 Making safe spots in wild? 
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    Not sure where that would take place, but I need to make a couple of spots in the wildy safe.

    Any ideas?

    Thanks.
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Use something like this

    Code:
    	public boolean inWild() {
    		if(absX > x1 && absX < x2 && absY > y1 && absY < y2) {
    			return false;
    		} 
    		if(absX > 2941 && absX < 3392 && absY > 3518 && absY < 3966 ||
    			absX > 2941 && absX < 3392 && absY > 9918 && absY < 10366) {	
    			return true;
    		}
    		return false;
    	}
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    Hm, that just made everything non wild lol
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jan 2011
    Posts
    1,940
    Thanks given
    1,217
    Thanks received
    547
    Rep Power
    607
    public boolean inWild() && !inSafeZone {

    }

    and create the inSafeZone boolean for the locations?
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Code:
    	public boolean inWild() {
    		if(absX > x1 && absX < x2 && absY > y1 && absY < y2) {
    			return false;
    		} else if(absX > 2941 && absX < 3392 && absY > 3518 && absY < 3966 ||
    			absX > 2941 && absX < 3392 && absY > 9918 && absY < 10366) {	
    			return true;
    		}
    		return false;
    	}
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2012
    Posts
    103
    Thanks given
    17
    Thanks received
    28
    Rep Power
    17
    Quote Originally Posted by PFC Smith View Post
    Hm, that just made everything non wild lol

    You have to change the coordinates

    if(absX > LOWEST X COORD && absX < HIGHEST X COORD && absY > BOTTOM Y COORD && absY < TOP Y COORD) {

    Replace the "lowest x coord" and stuff with the corresponding coordinate of the area that you want to be safe.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Factor-Zero PvP - Safe spots
    By Ho H0 Ho in forum Help
    Replies: 0
    Last Post: 06-13-2012, 05:19 AM
  2. [PI] Fixing Safe spots on npcs?
    By Nutella in forum Help
    Replies: 0
    Last Post: 11-27-2011, 09:44 AM
  3. Making certain area's pvp ans safe spots
    By 4ces0fsp4des in forum Help
    Replies: 3
    Last Post: 06-29-2011, 04:25 AM
  4. making safe into wild.
    By Ryan™ in forum Help
    Replies: 2
    Last Post: 05-30-2009, 09:05 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •