im currently using devo 2.4, and have been looking for a way to delete objects off the server. i have modified some delta things to fit with devo, but it hasnt worked yet. heres what i added
Code:
public void deletethatobject(int objectX, int objectY) {
ReplaceObject2(objectX, objectY, 6951, -1, 10);
}
public void Deleteobjects() {
deletethatobject(3354, 9558);
deletethatobject(3355, 9559);
}
public void makeGlobalObject(int x, int y, int typeID, int orientation, int tileObjectType){ //Makes Global objects
for (Player p : server.playerHandler.players){
if(p != null){
client person = (client)p;
if((person.playerName != null || person.playerName != "null")){
if(person.distanceToPoint(x, y) <= 60){
person.createNewTileObject(x, y, typeID, orientation, tileObjectType);}}}}}
public void NewObjects() {
}
Code:
case 121:
Deleteobjects();
NewObjects();
// if(heightLevel == 1)
// ReplaceObject(2591, 3107, 375, -3, 11);
// we could use this to make the char appear for other players only
// until
// this guys loading is done. Also wait with regular player updates
// until we receive this command.
// println_debug("Loading finished.");
//server.checkPlayerCapes.processAll(this);
if(!isInWilderness(absX, absY, 20)){
setInterfaceWalkable(-1);
hasWildySign = false;
}
break;
what exactly does case 121 do? anyone got any ideas how to make it work? if it helps, here are the coords im using for the area, i dont know if its above or below 0 height level,