What are the various ways to determine if we are currently in combat? Ideally this should not false positive when you hover over a monster you're not fighting. Thanks in advance.
Hoodz
2014-01-10 17:24:13
rs3 or osr? if its rs3 @bonsai knows it :)
Justin
2014-01-10 17:29:12
From: hoodz
rs3 or osr? if its rs3 @bonsai knows it :)
The thread is in the RS3 section :)
Wu-Tang Clan
2014-01-10 18:13:07
I know that regular idle standstill is > 4000 pixelshift (usually 3800-3900) so you could just use pixelshift
bonsai
2014-01-11 02:50:36
In my fighter I used the targeting popup as the indicator. This is prone to false negatives if you hover over one with the mouse. I did a secondary color search but it's for the same popup.
InfightDTM = 'mrAAAAHichcqxCkAAAEXRJyllUharMiCDMjIpm29mNCkmROJL3JSVV2d4dW1JkyltGLHiwI4TF1qaDjMWbDgxoEdaNXJc7+GHkYIkU5wXz4/KWhbNF+PHuxuG4xEk';
I didn't find pixel shift to be very reliable when I worked on my miner. The returned numbers bounced all over the place. Maybe you will have better luck :)
I thought about detecting that red target circle that shows up on the NPC you are fighting. That might be your best option to avoid false hits.
Spartan 117
2014-01-18 00:48:24
The way I detect inCombat is I create a DTM of the opponent's weakness. This DTM always is showing while fighting the opponent. I then search for the DTM and return true if it is found.
Edit: Just saw that this was mentioned in a previous comment. Sorry.