Hi, this is a script for soulsplit, auto fighter, I have problems, sometimes in fight does not work, I was thinking pixel shift but i have struggled with it a lot in past scripts and I don't really want to wrack my brain trying again, can anyone suggest other ways in which I can find if it is in combat?
Also I would like help with looting, particullary charms, I believe the uptext for looting is the same for this and normal rs so it may work? Problem is I don't know when is a good time to search for that colour, what is a good colour to choose, and how possibly exclude already looted bits.
The colour i was thinking of choosing for this is the colour of noted items, or possibly herbs because these seem to drop fairly often.
Thanks for your help! Remember this is for a private server! 
Simba Code:
program SoulsplitAutoFighter;
{$i srl\srl.simba}
////////////////////Soul Split Fighter////////////////////////
// 1. Go to the area with the monster you want to kill. //
// 2. Try get a less populated area! //
// 3. Use the colour picker tool, select the colour. //
// 4. Press start //
// 5. Hit f3 a few times for script to stop //
// Works best with SoulSplit Client //
// DOES NOT EAT, DOES NOT LOOT YET, WILL SOMETIMES ATTACK //
// WHEN YOU ARE ALREADY ATTACKING, ENSURE AUTO RETAL IS ON! //
//////////////////////////////////////////////////////////////
// Things to come:
// Looting charms, Eating, Pots, Improved in fight etc.
// All in time.
procedure FindandAttack;
var x, y: integer;
begin
if FindColor(x, y, 6268823, 15, 15, 730, 482) then //Last two numbers are dimensions
WriteLn('Found Color');
begin
if srl_infight = false then
Mouse(x, y, 0, 0, True);
WriteLn('Fighting');
Wait(RandomRange(1300, 1600));
end;
end;
begin ClearDebug;
SetUpSRL;
repeat
FindandAttack;
until (IsKeyDown (114)); //Press f3 to stop
end.