Im stuck on this.
Because i cannot get it right. The objects will not load at all,
Heres the method for the NewObjects.
Code:
public void makeGlobalObject(int x, int y, int typeID, int orientation,
int tileObjectType) { // Makes Global objects
for (Player p : 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);
}
}
}
}
}
Heres the object i wont to load.
Code:
public void NewObjects() {
makeGlobalObject(2616, 3104, 5162, 0, 10);
}
I also added this into Case 210:
Code:
case 210:
NewObjects();
break;
It just will not load the objects in the server.
Please help
If you help i will Rep++