April 30, 201510 yr This is my code: List<RS2Object> doors = this.script.objects.getAll(); RS2Object theDoor = null; Position myDoorCHANGE = new Position(7264, 11595, 0); for (RS2Object potDoor : doors) { if (potDoor.getId() == 13101 && potDoor.getOrientation() == 0 && potDoor.getPosition().equals(myDoorCHANGE)) { theDoor = potDoor; break; } } if (theDoor.isVisible()) { while (theDoor.exists()) { theDoor.interact("Open"); } } else { this.script.camera.toEntity(theDoor); while (theDoor.exists()) { theDoor.interact("Open"); } } but the problem is "theDoor" is null after the for-each method. Wat do?
April 30, 201510 yr Just go to the in game options menu and set the doors to always be open. Edited April 30, 201510 yr by Diclonius
Create an account or sign in to comment