Hello,
for checking items and dropping, give this a try:
Simba Code:
function CheckInvColor(Color, Tol, StartSlot, EndSlot: Integer): TBooleanArray;
var
i: Integer;
x, y: Integer;
Slot: Tbox;
begin
if not LoggedIn then
Exit;
SetArrayLength(Result, 28);
for i:= StartSlot to EndSlot do
begin
Result[i]:= False;
Slot:= InvBox(i);
if ExistsItem(i) then
Result[i]:= FindColorTolerance(x, y, Color, Slot.x1, Slot.y1, Slot.x2, Slot.y2, Tol);
end;
end;
^ That will create an array of booleans which will tell you if the item you are searching for is in each slot. Then use this:
Simba Code:
var
ToDrop: TBooleanArray;
i: Integer;
...
if InvFull then
begin
ToDrop:= CheckInvColor(4088718, 3, 1, 28);
for i:= 1 to 28 do
begin
if ToDrop[i] then
DropItem(i);
end;
end;
^ That will drop the item if it's marked as found from the CheckInvColor function.
Sorry if it doesn't work, I can't test it right now :S