Thread: region object removal

Results 1 to 8 of 8
  1. #1 region object removal 
    Registered Member yesimanub's Avatar
    Join Date
    Feb 2012
    Posts
    215
    Thanks given
    8
    Thanks received
    0
    Rep Power
    10
    how would I make it a 4x4 , 6x6, 8x8, etc area object removal instead of removing objects 1 by 1?

    so I came up with this
    using a Boolean:

    if(c.isinhouse)) {
    c.getPA().removeObject

    or something like that, but it didn't work. any other way
    Click here to visit my Latest Server Released Files !! (Great for newbies to start off with !!) : Varrockscape - 317 (Released source + Client)(Omg ty for 2.3k+ total dl !!)
    Reply With Quote  
     

  2. #2  
    Registered Member yesimanub's Avatar
    Join Date
    Feb 2012
    Posts
    215
    Thanks given
    8
    Thanks received
    0
    Rep Power
    10
    Bump
    Click here to visit my Latest Server Released Files !! (Great for newbies to start off with !!) : Varrockscape - 317 (Released source + Client)(Omg ty for 2.3k+ total dl !!)
    Reply With Quote  
     

  3. #3  
    The Massive Eater
    shut's Avatar
    Join Date
    Apr 2012
    Age
    29
    Posts
    396
    Thanks given
    37
    Thanks received
    14
    Rep Power
    6
    lols millions of tutorials on that use search


    Reply With Quote  
     

  4. #4  
    Registered Member yesimanub's Avatar
    Join Date
    Feb 2012
    Posts
    215
    Thanks given
    8
    Thanks received
    0
    Rep Power
    10
    Oh really, because everyone one i search it tells me the things i already know which is removing it one by one
    Click here to visit my Latest Server Released Files !! (Great for newbies to start off with !!) : Varrockscape - 317 (Released source + Client)(Omg ty for 2.3k+ total dl !!)
    Reply With Quote  
     

  5. #5  
    Registered Member yesimanub's Avatar
    Join Date
    Feb 2012
    Posts
    215
    Thanks given
    8
    Thanks received
    0
    Rep Power
    10
    Bump.
    Click here to visit my Latest Server Released Files !! (Great for newbies to start off with !!) : Varrockscape - 317 (Released source + Client)(Omg ty for 2.3k+ total dl !!)
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2013
    Posts
    40
    Thanks given
    26
    Thanks received
    0
    Rep Power
    11
    Bump, I need this aswell. BUMP BUMP BUMP
    Reply With Quote  
     

  7. #7  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    if(c.isinhouse)) {
    c.getPA().removeObject

    wut?


    Just make an array,

    private int[] removingArea = {
    {x, y, z}, {x, y, z}
    };

    if (c.isInHouse) {
    for(int i = 0; i < removingArea.length; i++) {
    c.getPA().removeObject(removingArea[0], removingArea[1], removingArea[2]); //or however the method is
    }
    }

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  8. #8  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    EDIT:

    I see what you mean now, I wrote this up. (I haven't tested, i'm not very confident that it will work perfectly.)

    Code:
    public void clearOutRoom(Client c, int amountX, int amountY) {
    	int playerX = c.absX;
    	int playerY = c.absY;
    	int x1, y1, x2, y2;
    	for (x1 = playerX; x1 < (amountX * 0.5) + playerX; x1++) {
    		for (y2 = playerY; y2 < (amountY * 0.5) + playerY; y1++) {
    			for (x2 = playerX; x2 > (amountX * 0.5) + playerX; x2++) {
    				for (y2 = playerY; y2 > (amountY * 0.5) + playerY; y2++) {
    					c.getPA().removeObject(x1, y1, c.height);
    					c.getPA().removeObject(x2, y2, c.height);
    				}
    			}
    		}
    	}
    	
    }
    
    
    
    if (c.isInHouse) {
    clearOutRoom(6, 6);
    }

    in this case,
    Code:
    clearOutRoom(6, 6);
    woul clear out 3 squares in each direction. (Making a 6x6 square of cleared object around the player).

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    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. objects removing..
    By x eddie x in forum Help
    Replies: 3
    Last Post: 04-25-2011, 11:44 PM
  2. [614]Region object dumps
    By lukas265 in forum Configuration
    Replies: 9
    Last Post: 10-10-2010, 08:08 PM
  3. Object removal
    By Goro in forum Help
    Replies: 2
    Last Post: 07-31-2010, 10:40 PM
  4. Replies: 3
    Last Post: 05-30-2009, 02:47 PM
  5. Object removing [Delta]
    By Homie Pimpson in forum Help
    Replies: 6
    Last Post: 04-21-2009, 04:40 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •