I’m trying to make some gloves/natural weapons to overcome DR from materials, here is what i have for testing:
object oGloves = CreateItemOnObject("nw_it_mglove010",OBJECT_SELF);
DelayCommand(0.0,ActionDoCommand(ActionEquipItem(oGloves, INVENTORY_SLOT_ARMS)));
itemproperty iMagicWeapon = ItemPropertyAttackBonus(1);
IPSafeAddItemProperty(oGloves, iMagicWeapon, 0.0, X2_IP_ADDPROP_POLICY_IGNORE_EXISTING);
SetItemBaseMaterialType(oGloves,GMATERIAL_METAL_COLD_IRON);
SetIdentified(oGloves,TRUE);
With this it should overcome Magical DR and Cold Iron DR. Only the Magical DR is being bypassed.