November 11, 20232 yr 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?
November 11, 20232 yr 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, 20232 yr by PayPalMeRSGP
November 12, 20232 yr 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.
November 12, 20232 yr 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
Create an account or sign in to comment