Thread: [PI] Removing walls @ Edge bank

Results 1 to 6 of 6
  1. #1 [PI] Removing walls @ Edge bank 
    Obey
    Guest
    Could anyone help me on this ? title says it all.. i need to remove the walls in the Edge bank.. thank you!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2011
    Posts
    422
    Thanks given
    88
    Thanks received
    21
    Rep Power
    22
    “I'm always outnumbered but never outmanned.”
    Reply With Quote  
     

  3. #3  
    Obey
    Guest
    EDIT: I found out how to remove the walls that are Facing north on the X coords.. but i cannot seem to remove the ones facing East or west on the Y coords here are the codes

    Code:
    public void removeObject(int x, int y) {
    		object(-1, x, x, 10, 10);
    	}
    Code:
    removeObject(3094, 3095);
    Reply With Quote  
     

  4. #4  
    Registered Member Gretar's Avatar
    Join Date
    Sep 2011
    Posts
    289
    Thanks given
    69
    Thanks received
    12
    Rep Power
    7
    Haven't seen a tutorial on this so, here it goes

    1. In objectmanager.java search for
    Code:
    public void removeObject(int x, int y) {
    c.getPA().object(158, 3097, 3493, 0, 10);
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    if (Server.playerHandler.players[j] != null) {
    Client c = (Client)Server.playerHandler.players[j];
    c.getPA().object(-1, x, y, 0, 10);
    }
    }
    }
    (yours might be a bit different..) replace the method with this one
    Code:
    public void removeObject(int x, int y) {
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    if (Server.playerHandler.players[j] != null) {
    Client c = (Client)Server.playerHandler.players[j];
    c.getPA().object(-1, x, y, 0, 10);
    c.getPA().object(158, 3097, 3493, 0, 10);
    }
    }
    }
    2. In changeregions.java under
    Code:
    public void processPacket(Client c, int packetType, int packetSize) {
    add this
    Code:
    c.getPA().removeObjects();
    3. Now add this
    Code:
    public void Deletewalls(Client c) {
    c.getPA().checkObjectSpawn(-1, xxxx, yyyy, -1, 0);
    }
    in objectmanager.java under loadCustomSpawns method.
    And add this
    Code:
    Deletewalls(c);
    under this
    Code:
    loadCustomSpawns(c);
    Just change the coords and it will delete the wall
    This might help ya understand how it works, thanks Martin btw
    This works for doors too

    CREDITS : Neruzycra
    Owner of Roat Pkz
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2012
    Posts
    66
    Thanks given
    2
    Thanks received
    6
    Rep Power
    13
    Quote Originally Posted by Gretar View Post
    Haven't seen a tutorial on this so, here it goes

    1. In objectmanager.java search for
    Code:

    (yours might be a bit different..) replace the method with this one
    Code:

    2. In changeregions.java under
    Code:

    add this
    Code:

    3. Now add this
    Code:

    in objectmanager.java under loadCustomSpawns method.
    And add this
    Code:

    under this
    Code:

    Just change the coords and it will delete the wall
    This might help ya understand how it works, thanks Martin btw
    This works for doors too

    CREDITS : Neruzycra
    Thanks so much just removed my first ever door
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2014
    Posts
    34
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I attempted to do this but I keep getting error;

    "Server cannot be resolved to a variable"

    I would attempt to fix it but I haven't been using Eclipse for longer than 8 hours and I would feel uncomfortable messing with stuff I don't yet understand.
    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. Removing Walls
    By Mizrey in forum Help
    Replies: 13
    Last Post: 12-29-2011, 11:21 AM
  2. Removing all items in edge bank
    By Matt _ in forum Requests
    Replies: 8
    Last Post: 08-29-2011, 12:45 AM
  3. Replies: 2
    Last Post: 01-26-2010, 10:15 PM
  4. Replies: 18
    Last Post: 08-14-2009, 04:02 AM
  5. Replies: 0
    Last Post: 08-12-2009, 05:47 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
  •