First you need to create a special placeable (non static, non useable, no scripts) with unique tag.Eg. EC_TWOHANDED.
then you need to apply the effect in OnEquip this way
AssignCommand(GetObjectByTag("EC_TWOHANDED"), ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectACIncrease(8,AC_SHIELD_ENCHANTMENT_BONUS)),oPC));
then in OnUnEquip you need to remove it this way
oPC = GetPCItemLastUnequippedBy();
effect e = GetFirstEffect(oPC);
while(GetIsEffectValid(e))
{
if(GetTag(GetEffectCreator(e)) == "EC_TWOHANDED")
{
RemoveEffect(oPC,e);
}
e = GetNextEffect(oPC);
}
Modifié par ShaDoOoW, 25 mars 2011 - 10:45 .