Log in

View Full Version : Quick help on the toggle total XP thingy



lollage22
07-06-2010, 01:08 AM
Hi all!

I would like to check whether my acc is still fighting based on the total XP toggle left to the minimap. When the fighting is over, the xp should not increase anymore. From previous experience do I not like the InFight function, particularly because it also detects a fight someone else is having.

I couldn't find any functions for this total XP toggle thing. Are there any?

Thanks in advance! As always....


Greetings and cheers.

Frement
07-06-2010, 01:14 AM
You can try this:
function F_InFight: Boolean;
var CTPA: TPointArray;
begin
FindColorsTolerance( CTPA, 49499, 226, 118, 262, 147, 40 );
Result := ( GetArrayLength( CTPA ) >= 15 );
end;
or this:
function F_InFight: Boolean;
var GTPA, RTPA: TPointArray;
begin
FindColorsTolerance( GTPA, 49499, 226, 118, 262, 147, 20 );
FindColorsTolerance( RTPA, 590010, 226, 118, 262, 147, 20 );
Result := ( ( GetArrayLength( GTPA ) + GetArrayLength( RTPA ) ) >= 20 );
end;
I prefer the second one.

EDIT: The colors might need to be taken again.