I want to create a fighter bot that checks if npc is dead and attacks new npc
how can i make that?
I want to create a fighter bot that checks if npc is dead and attacks new npc
how can i make that?
Does this RSPS have an XP bar like this?
![]()
Yep but it doesn't count it good because i already got it 99 and now it's glitching
Last edited by xX4m4zingXx; 03-16-2014 at 07:36 PM.
read my edit. and no. it's an pi. aggroth i believe
yes it does but it's glitchy but it does
You can count the number of colors in the XP bar, and check if that number changed. If it did not, then you can assume you're no longer in combat and thus killed a monster
Simba Code:function differentCount(time:integer): Boolean;
var
_white_count:integer;
begin
_white_count := countColorTolerance(16777215, 410, 110, 508, 123, 5);
wait(time);
result := (_white_count <> countColorTolerance(16777215, 410, 110, 508, 123, 5));
end;
function inCombat:boolean;
begin
result := differentCount(3300);
end;
oh yeh that's a good one, but what do all that numbers mean because i got an xp bar but it's other colors
Bump
Ok, i now got this code
but it doesn't attack again after it killed the monsterCode:Program AttachMonster; {$I RSPS/srlRSPS.Simba} function differentCount(time:integer): Boolean; var _white_count:integer; begin _white_count := countColorTolerance(16646143, 429, 80, 516, 95, 5); Wait(time); result := (_white_count <> countColorTolerance(16646143, 429, 80, 516, 95, 5)); end; function inCombat:boolean; begin result := differentCount(3300); end; Procedure AttackMonster var X,Y:Integer; begin if FindColorTolerance (X, Y, 10337744, 44, 91, 556, 425, 2) then begin MouseSpeed := 15; Mouse(x, y); end else begin writeln('Couldnt find any monsters') end; end; begin AttackMonster; end.
can you help me?
There are currently 1 users browsing this thread. (0 members and 1 guests)