I have made a fight bot with a lot of help from this community, but now the server had an update.
when you are max level in a skill the skill counter stopped counting up.
my code now is:
but now it will attack another npc even if it's already in fightCode: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 LoggedOut var X,Y:Integer; begin writeln('Couldnt find any monsters'); MouseSpeed := 15; Mouse(452, 313); wait(500); Mouse(311, 344); wait(10000); Mouse(538, 87); wait(500); 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 LoggedOut end end; begin repeat while not inCombat() do attackMonster(); until(false); end.
can someone help me?
Can I make something like that it will search for an empty red bar, but then it will also attack again if someone else kills a monster?


Reply With Quote




