View Full Version : In Fight Detection
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
01-10-2014, 10:24 PM
rs3 or osr? if its rs3 bonsai knows it :)
Justin
01-10-2014, 10:29 PM
rs3 or osr? if its rs3 bonsai knows it :)
The thread is in the RS3 section :)
Wu-Tang Clan
01-10-2014, 11:13 PM
I know that regular idle standstill is > 4000 pixelshift (usually 3800-3900) so you could just use pixelshift
Hoodz
01-10-2014, 11:29 PM
The thread is in the RS3 section :)
Sorry for being stupid
bonsai
01-11-2014, 07:50 AM
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 = 'mrAAAAHichcqxCkAAAEXRJyllUharMiCDMjIpm29mNCkmROJL 3JSVV2d4dW1JkyltGLHiwI4TF1qaDjMWbDgxoEdaNXJc7+GHkY IkU5wXz4/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.
Sorry for being stupid
you have been pardoned
Spartan 117
01-18-2014, 05:48 AM
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.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.