Warbird Posted February 18, 2020 Share Posted February 18, 2020 How can I use specific protect prayer based on attack used by aggressor? IE someone attacks myPlayer() with range, then I wish to protect against range? Quote Link to comment Share on other sites More sharing options...
ez11 Posted February 18, 2020 Share Posted February 18, 2020 (edited) Either you know what attackstyle the npc you are fighting is using or you would probably have to figure out what attackstyle the projectiles have and then pray according to projectile ids https://osbot.org/api/org/osbot/rs07/api/model/Projectile.html or use animations of the npcs i guess Edited February 18, 2020 by ez11 2 Quote Link to comment Share on other sites More sharing options...
Warbird Posted February 18, 2020 Author Share Posted February 18, 2020 18 minutes ago, ez11 said: Either you know what attackstyle the npc you are fighting is using or you would probably have to figure out what attackstyle the projectiles have and then pray according to projectile ids https://osbot.org/api/org/osbot/rs07/api/model/Projectile.html or use animations of the npcs i guess Thank you Quote Link to comment Share on other sites More sharing options...
Warbird Posted February 18, 2020 Author Share Posted February 18, 2020 (edited) 1 hour ago, ez11 said: Either you know what attackstyle the npc you are fighting is using or you would probably have to figure out what attackstyle the projectiles have and then pray according to projectile ids https://osbot.org/api/org/osbot/rs07/api/model/Projectile.html or use animations of the npcs i guess Hey I'm wondering is it possible to run background tasks concurrently? For example observing surroundings whilst running north? I know I can call such task within the set task but it would iterate and therefore the " observation " wouldn't be at the time of running north. I know this is off topic but I didn't want to make another thread almost instantly after creating this. Edited February 18, 2020 by Warbird Quote Link to comment Share on other sites More sharing options...
Hel Posted February 18, 2020 Share Posted February 18, 2020 8 hours ago, ez11 said: Either you know what attackstyle the npc you are fighting is using or you would probably have to figure out what attackstyle the projectiles have and then pray according to projectile ids https://osbot.org/api/org/osbot/rs07/api/model/Projectile.html or use animations of the npcs i guess Praying based on projectile ID won't work iirc because damage is calculate at animation Quote Link to comment Share on other sites More sharing options...