ImLife 14 Author Share Posted April 19 Bumping this will give 25$ to anyone with a code snippet or tips leading to a solution for dodging wintertodt brazier breaking and wintertodt dodge snowfall. Link to comment Share on other sites More sharing options...
ImLife 14 Author Share Posted April 20 Upping the bounty to 50$ for a solution Link to comment Share on other sites More sharing options...
Deep Slayer 21 Share Posted April 20 @ImLife Hey mate, //this solution was already given to you by someone else, just add the dodging logic. Tile playerTile = Players.getLocal().getTile(); List<GraphicsObject> graphicsObjects = Client.getGraphicsObjects(); for (GraphicsObject graphicsObject : graphicsObjects) { if (graphicsObject != null && graphicsObject.getTile().equals(playerTile)) { log("about to take damage"); //add your dodging logic here break; } } //all u have to do for the brazier breaking is check for a unique characteristic of the projectile being fired, in this case it's the height. List<Projectile> projectiles = Client.getProjectiles(); for (Projectile projectile : projectiles) { if (projectile.getID() == 501 && projectile.getHeight() == -1268 ) { log("brazier is about to break"); //add your dodging logic here break; } } you might want to filter out which brazier the projectile is going to as well, its a pretty easy fix ImLife 1 Link to comment Share on other sites More sharing options...
ImLife 14 Author Share Posted April 20 8 hours ago, Deep Slayer said: @ImLife Hey mate, //this solution was already given to you by someone else, just add the dodging logic. Tile playerTile = Players.getLocal().getTile(); List<GraphicsObject> graphicsObjects = Client.getGraphicsObjects(); for (GraphicsObject graphicsObject : graphicsObjects) { if (graphicsObject != null && graphicsObject.getTile().equals(playerTile)) { log("about to take damage"); //add your dodging logic here break; } } //all u have to do for the brazier breaking is check for a unique characteristic of the projectile being fired, in this case it's the height. List<Projectile> projectiles = Client.getProjectiles(); for (Projectile projectile : projectiles) { if (projectile.getID() == 501 && projectile.getHeight() == -1268 ) { log("brazier is about to break"); //add your dodging logic here break; } } you might want to filter out which brazier the projectile is going to as well, its a pretty easy fix Ahh, jesus christ... its the height of the projectile 🥲 Dm me that paypal link 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