Now I'm having trouble with this error:
Code:
** Warning in InvBox: Incorrect index: 29**
Warning! You passed a wrong xs to a finder function: -1. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -1. That is below 0, thus out of bounds. Setting the value to 0 for now.
Here's the bit of code that's throwing the error:
Simba Code:
if (Clicked = True) then
begin
for i := 1 to 28 do
begin
Box := InvBox(i);
if FindDTM(DTM,x,y,Box.X1,Box.Y1,Box.X2,Box.Y2) then
Break;
end;
FreeDTM(DTM);
if(DropItem(i)) then
Clicked := False;
end;
Any ideas of why it's trying to search for outside the 1-28 parameters for #29? Any ways the script works fine minus this error. If you have ideas please lemme know. I'll check back on this in the morning, I've had enough for one night.