
Originally Posted by
Floor66
Whipped this up from my flax spinner:
SCAR Code:
Function FindDTMInv(DTM, Spot : Integer): Boolean;
Var
x, y : Integer;
TheSpot : TBox;
Begin
If Not LoggedIn Then
Exit;
GameTab(4);
If Spot = 0 Then
Begin
If FindDTM(DTM, x, y, MIX1, MIY1, MIX2, MIY2) Then
Begin
Result := True;
Exit;
End;
End Else
Begin
TheSpot := InvBox(Spot);
If FindDTM(DTM, x, y, TheSpot.x1, TheSpot.y1, TheSpot.x2, TheSpot.y2) Then
Begin
Result := True;
Exit;
End;
End;
End;
Wow!! Tyvm Floor66! 
That is one awesome function. Credited in my script :
SCAR Code:
{*****************************************************
Function FindDTMInv(DTM, Spot : Integer): Boolean;
By: Floor66
Description: If DTM in inventory Spot exists, returns True, else returns False.
***********************************************************}
Function FindDTMInv(DTM, Spot : Integer): Boolean;
Var
x, y : Integer;
TheSpot : TBox;
Begin
If Not LoggedIn Then
Exit;
GameTab(4);
If Spot = 0 Then
Begin
If FindDTM(DTM, x, y, MIX1, MIY1, MIX2, MIY2) Then
Begin
Result := True;
Exit;
End;
End Else
Begin
TheSpot := InvBox(Spot);
If FindDTM(DTM, x, y, TheSpot.x1, TheSpot.y1, TheSpot.x2, TheSpot.y2) Then
Begin
Result := True;
Exit;
End;
End;
End;
It works like a charm! Rep++
Also thanks to everyone else who helped Rep+