I need to hook into an event that is triggered whenever a hitsplat appears on the screen.
If I'm standing around 10 people in combat, there would be anywhere from 10-20 hitsplats on the screen at any given time. I want an action triggered on each of those hitsplats.
Every time the event is triggered, I want an object like `Hitsplat hitsplat`, where the hitsplat class may look something like this:
class Hitsplat {
Player player;
HitsplatInfo info;
}
class HitsplatInfo {
int damage;
HitsplatType type;
}
enum HitsplatType {
DAMAGE,
POISON,
VENOM,
BLOCK
}
That way, I know which player the hitsplat was on, and using that player, I can get their opponent with `getInteracting()`.
That's all I need, the details don't really matter. I know Runelite allows me to do this, as I've already written a plugin to do it...but I'd like to script it in OSBot as well. Just need to know if this kind of an API exists or if it can be created to match the functionality of Runelite. Or, if there is another way to achieve this without having to write an entire library on my own.
Cheers!