You can get the shielding skill in the onGetFormulaValues function, whilist retrieving the defense of a shield for instance for power, example;
function onGetFormulaValues(cid, level, skill, attack, factor)
local item = {}
item[1] = getPlayerSlotItem(cid, 5)
item[2] =...