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