swnxkrw Posted November 11, 2023 Share Posted November 11, 2023 So I've been trying to make a simple wintertodt script and everything seems to be fine, except that I don't know how to detect the area attack. It doesn't appear to be an object and I don't really know how to check for it. Did I miss something in the api or is it just not possible? Quote Link to comment Share on other sites More sharing options...
yfoo Posted November 11, 2023 Share Posted November 11, 2023 (edited) In the client there is a debug section on the right (3 gears) with a bunch of checkboxes. Try enabling/disabling each one of them until the client highlight the area attack. It is likely some kind of of entity (Subclass). Then you can look in the osbot API for the relevant classes to handle detection. ex: If its a NPC, check https://osbot.org/api/org/osbot/rs07/api/NPCS.html. Edited November 11, 2023 by PayPalMeRSGP 2 Quote Link to comment Share on other sites More sharing options...
sloppybot Posted November 12, 2023 Share Posted November 12, 2023 I have never tried Wintertodt but normally there's a pattern to NPCs attacks, example an animation before an elemental attack such as Jad does before switching between mage and ranged. An NPC could vary its attacks between set tiles or if it's mobile it could be X distance away from the NPC it's alternating. Look into the answer above and if it's doesn't fit your case try experimenting with pattern recognition. Quote Link to comment Share on other sites More sharing options...
Czar Posted November 12, 2023 Share Posted November 12, 2023 Those wintertodt attacks are projectiles and graphics, need to find via the ID and extrapolate, usually happens in a 3x3 grid around where the projectile first lands on a tile Quote Link to comment Share on other sites More sharing options...
Xoukz Posted November 12, 2023 Share Posted November 12, 2023 Alot of ways to handle it but the answers above should suffice Quote Link to comment Share on other sites More sharing options...