Actually, the other way you can handle #1, and this is the way I do it in my mining script, is to check for the color. if it's 0 then it's a diamond. Here's from my resourcecnt sub:
if %ResType IN %BlackrockTypes && %ResCol <> 0
{
set %BlacCnt %BlacCnt + %ResCnt
menu set BlacCntVal %BlacCnt
return
}
Anything that = 0 gets counted further down the sub.
X