Luxe 90 Posted April 5, 2024 Kind of a general question but how do I get the wintertodt graphics objects/animations? The graphics id is always 502 regardless of the animation and I cannot seem to figure out how to detect snow falling and braziers being broken.
KCBot 76 Posted April 5, 2024 Snow falling i imagine is a GraphicsObject, so you should create a mechanism to detect if a tile has x GraphicsObject on it, and then find the closest safetile. Braziers being broken is simple right? I assume it either has a different object ID, or you can just do "Broken brazier" as name string instead. For the falling snow it would be something like this: Tile playerTile = Players.getLocal().getTile(); List<GraphicsObject> graphicsObjects = Client.getGraphicsObjects(); for (GraphicsObject graphicsObject : graphicsObjects) { if (graphicsObject != null && graphicsObject.getTile().equals(playerTile)) { return true; // Projectile detected } } This would detect if the tile you are currently standing on has a graphicsObject on it. Luxe 1
Luxe 90 Author Posted April 5, 2024 @KCBot tysm for your reply, the issue is that snow falling does not seem have a unique graphicsobjectId. Same with projectiles in wintertodt, all projectiles seem to have the same id. Regardless, i will test your code and give an update if i figure it out. Thanks again!
Luxe 90 Author Posted April 6, 2024 Update: Still unable to figure out when brazier is about to break as it has no UNIQUE projectile or detectable graphics object it seems like. I tested with this code and it only prints graphics which are projectiles hitting the pyromancer: List<GraphicsObject> graphicsObjects = Client.getGraphicsObjects(); for (GraphicsObject graphicsObject : graphicsObjects) { if (graphicsObject != null && graphicsObject.distance(Players.getLocal().getTile()) < 4) { Logger.log("GRAPHICS OBJECT DETECTED: " + graphicsObject.getID() + " - TILE::: X: " + graphicsObject.getTile().getX() + " Y: " + graphicsObject.getTile().getY()); } } Link to video here: https://screenrec.com/share/MHOU4p2zI8 Settings: Display projectiles & Display graphics objects on
Luxe 90 Author Posted April 6, 2024 (edited) @Pandemic hate tagging you for something so simple, but maybe you had an idea about the Id's for braziers breaking? Edited April 6, 2024 by ImLife har -> hate
Pandemic 2853 Posted April 6, 2024 I'm not really sure from just looking at that video, sorry I know many people have made scripts for it though, so I'm sure there's something there that can be used (if it's necessary?). Luxe 1
MaximusPrimo 131 Posted April 6, 2024 3 hours ago, ImLife said: Update: Still unable to figure out when brazier is about to break as it has no UNIQUE projectile or detectable graphics object it seems like. I tested with this code and it only prints graphics which are projectiles hitting the pyromancer: List<GraphicsObject> graphicsObjects = Client.getGraphicsObjects(); for (GraphicsObject graphicsObject : graphicsObjects) { if (graphicsObject != null && graphicsObject.distance(Players.getLocal().getTile()) < 4) { Logger.log("GRAPHICS OBJECT DETECTED: " + graphicsObject.getID() + " - TILE::: X: " + graphicsObject.getTile().getX() + " Y: " + graphicsObject.getTile().getY()); } } Link to video here: https://screenrec.com/share/MHOU4p2zI8 Settings: Display projectiles & Display graphics objects on The brazier has a "repair/fix" (I don't remember) interact option when it is broken. You could also use this to detect rather than the projectile.
Luxe 90 Author Posted April 7, 2024 9 hours ago, MaximusPrimo said: The brazier has a "repair/fix" (I don't remember) interact option when it is broken. You could also use this to detect rather than the projectile. Thanks @MaximusPrimo but im not looking to find whether the brazier is broken or not. That i do by either looking at gameobject id or the widgets. I just need to find the animation to be able to dodge the attack
KCBot 76 Posted April 7, 2024 8 hours ago, ImLife said: Thanks @MaximusPrimo but im not looking to find whether the brazier is broken or not. That i do by either looking at gameobject id or the widgets. I just need to find the animation to be able to dodge the attack I mean this is possible, but is it smart? WT is a place with many people, seeing someone tick perfect dodge something that you are not supposed to see coming is an easy way to cop tons of reports and thus bans.
Luxe 90 Author Posted April 7, 2024 1 minute ago, KCBot said: I mean this is possible, but is it smart? WT is a place with many people, seeing someone tick perfect dodge something that you are not supposed to see coming is an easy way to cop tons of reports and thus bans. it's necessary for me as I am making a solo wintertodt bot. Its working fine, but without the dodging i run out of food on my UIM
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