Search the Community
Showing results for tags 'support'.
-
Does anyone know in Dreambot API documentation. How do I get the tile animations from AoE Effects. for example in sins of the father on the 2nd phase when he spawns the lightening and the shadows appear on the tiles. Which API call, can i use for that? I figured it out, and I wanted to update this post because someone in the future might be (looking for this) and they'll be able to find this post. so the API is: ``` Package org.dreambot.api.wrappers.graphics Class GraphicsObject GraphicsObjects are certain graphical animations that do not move. If you're looking for something that isn't an object or a projectile, it's possibly a GraphicsObject. and this is how i used it and it works. public void checkForAOEEffectAndMove() { Tile playerTile = Players.getLocal().getTile(); List<GraphicsObject> graphicsObjects = Client.getGraphicsObjects(); for (GraphicsObject graphicsObject : graphicsObjects) { if (graphicsObject != null && graphicsObject.getTile().equals(playerTile)) { // Detected a graphical effect on the player's tile script.log("Detected GraphicsObject (ID: " + graphicsObject.getID() + ") at player's location."); Tile safeTile = findSafeTile(); if (safeTile != null) { script.log("Moving to safe tile: " + safeTile); if (Walking.walk(safeTile)) { Sleep.sleepUntil(() -> Players.getLocal().getTile().equals(safeTile), 2000); script.log("Successfully moved to safe tile."); } else { script.log("Failed to move to safe tile."); } } else { script.log("No safe tile found. Stay alert!"); } break; // Exit after handling the first detected effect } } } ``` Finding posts like this on the forums has helped me a lot.
-
I'm trying to create my first script, I'm on java version 1.8.0_371 however when I try to start my script it gives me an error "There is a script that was compiled using a newer version of java than what you're running your client on!" In the console for DreamBot it says current java version is 1.8.0_371. How do I fix this?