|
Could anyone help me on this ? title says it all.. i need to remove the walls in the Edge bank.. thank you!
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);
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 onepublic 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);
}
}
}
Code:
2. In changeregions.java underpublic 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);
}
}
}
Code:
add thispublic void processPacket(Client c, int packetType, int packetSize) {
Code:
3. Now add thisc.getPA().removeObjects();
Code:
in objectmanager.java under loadCustomSpawns method.public void Deletewalls(Client c) {
c.getPA().checkObjectSpawn(-1, xxxx, yyyy, -1, 0);
}
And add this
Code:
under thisDeletewalls(c);
Code:
Just change the coords and it will delete the wallloadCustomSpawns(c);
This might help ya understand how it works, thanks Martin btw
This works for doors too
CREDITS : Neruzycra
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |