Instance.getDelayedEventHandler()
.add(new WalkToPointEvent(player, object.getLocation(), 1,
false) {
public void arrived() {
owner.resetPath();
DoorDef def = object.getDoorDef();
if (owner.isBusy() || owner.isRanging()
|| !owner.nextTo(object) || def == null
|| owner.getStatus() != Action.USING_DOOR) {
return;
}// /126
if (object.getX() == 282 && object.getY() == 185)
return;
if (object.getX() == 285 && object.getY() == 185)
return;
if (object.getX() == 59 && object.getY() == 573)
return;
if (object.getX() == 196 && object.getY() == 3266)
return;
if (!Server.isMembers()) {
if (object.getX() == 126
&& object.getY() == 686)
return;
}
if (object.getID() == 77) {
owner.getActionSender().sendMessage(
"You search the " + def.name + "...");
Instance.getDelayedEventHandler().add(
new ShortEvent(owner) {
public void action() {
owner.getActionSender()
.sendMessage(
"You see a key but can't quite reach it");
return;
}
});
}
// if(object.getID() == 58) {
// owner.getActionSender().sendMessage("It seems this wall can not be opened right now");
// return;
// }
owner.resetAll();
String command = (click == 0 ? def.getCommand1()
: def.getCommand2()).toLowerCase();
Point telePoint = EntityHandler.getObjectTelePoint(
object.getLocation(), command);
if (telePoint != null) {
owner.teleport(telePoint.getX(),