Making the effect Supernatural will prevent it from being removed by dispel. Making the effect permanent will prevent it from being removed when resting. Death will still end the effect however.
I use something similar to this on my server:
void main()
{
object oPC = GetItemActivator();
effect eEffect = SupernaturalEffect(EffectAbilityIncrease(ABILITY_CHARISMA, 1));
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC);
DelayCommand(1800.0, RemoveEffect(oPC, eEffect));
}
-420
Modifié par 420, 01 mars 2011 - 07:27 .