Author Sticky: Post Working Scripts Here
Janus-SOK Posted: Wednesday, 10 July 05:02AM
1. AD&D Style Trolls

2. Makes it so the killing blow on trolls must be dealt with fire or acid damage.

3. Add this to the troll's OnDeath event or UserDefinedEvent for OnDeath.

NWScript:
int nFireDamage = GetDamageDealtByType(DAMAGE_TYPE_FIRE);

    int nAcidDamage = GetDamageDealtByType(DAMAGE_TYPE_ACID);

    int nTotalFireAcidDamage = nFireDamage + nAcidDamage;

    effect eHeal = EffectResurrection();

    if (nTotalFireAcidDamage <= 0)

    {

       SetIsDestroyable(FALSE, TRUE, TRUE);

       DelayCommand(6.0f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eHeal, OBJECT_SELF, 0.0f));

       DelayCommand(6.0f, (SetIsDestroyable(TRUE, FALSE, FALSE)));

    }