Gizmo 3 Share Posted March 10 (edited) 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. Edited March 11 by Gizmo Found solution OgCross, jonnybrahh and ImLife 1 2 Link to comment Share on other sites More sharing options...
OgCross 13 Share Posted March 13 nice man good job in getting it sorted Link to comment Share on other sites More sharing options...
ImLife 14 Share Posted April 2 +1 for posting solution Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now