This is my second try, I added another Function 
SCAR Code:
//-----------------------------------------------------------------//
//-- Scar Standard Resource Library --//
//-- Herblore routines --//
//-----------------------------------------------------------------//
// * procedure SetupHerblore; // * SRL
// * Function VialCheck; // * The Man
// * Function ClickedVialCheck; // * The Man
{*******************************************************************************
procedure SetupHerblore;
By: SRL
Description: Declares Global Bitmaps.
*******************************************************************************}
procedure SetupHerblore;
begin
end;
{*******************************************************************************
procedure VialCheck;
By: The Man
Description: Returns true if there is a vial in the inventory
*******************************************************************************}
Function VialCheck: Boolean;
var
VialDTM, x, y : Integer;
begin
VialDTM := DTMFromString('78DA6314646060506040038C4824906607125' +
'204D4F002091E22D4B0135003720F33013562408293801A512021' +
'40408D349090C6AF0600B0BB0126');
Result := FindDTM(VialDTM, x, y, MIX1, MIY1, MIX2, MIY2);
FreeDTM(VialDTM);
end;
{*******************************************************************************
procedure ClickedVialCheck;
By: The Man
Description: Returns true if the vial is clicked
*******************************************************************************}
Function ClickedVialCheck: Boolean;
var
CVialDTM, x, y : Integer;
begin
CVialDTM := DTMFromString('78DA63E467606090674001FFFFFF07D38C503' +
'E232B909024A0861348F013A1868B801A90194C04D48800090E22' +
'D408105003F293147E3500CC6C18F4');
Result := FindDTM(CVialDTM, x, y, MIX1, MIY1, MIX2, MIY2);
FreeDTM(CVialDTM);
end;
Please post feedback.
T~M