Hi,
For totem ( http://www.wowwiki.com/API_GetTotemInfo ) you need to use lua code:
haveTotem, totemName, startTime, duration = GetTotemInfo(1)
if (haveTotem) then
retV = "1"
else
retV = "0"
end
For enchant weapon ( http://www.wowpedia.org/API_GetWeaponEnchantInfo ):
hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges, hasThrownEnchant, thrownExpiration, thrownCharges
= GetWeaponEnchantInfo()
if (hasMainHandEnchant) then
retV = "1"
else
retV = "0"
end