void main()
{
    object oDest = GetObjectByTag("WP_TEMPLETRAP");
    location lDest = GetLocation(oDest);
    object oPool = GetObjectByTag("POOL");
    object oItem = GetItemPossessedBy(oPool,"holysymbolofhelm");
    SetLocalInt(OBJECT_SELF, "duration", DURATION_TYPE_TEMPORARY);
    int duration = GetLocalInt(OBJECT_SELF, "duration");
    SetLocalInt(OBJECT_SELF, "vfx", VFX_IMP_LIGHTNING_S);
    int vfx = GetLocalInt(OBJECT_SELF, "vfx");
    effect eEffect = EffectVisualEffect(vfx);
    if(GetIsObjectValid(oItem))
    {
        ApplyEffectToObject(duration, eEffect, oPool, 4.0);
        CreateObject(OBJECT_TYPE_PLACEABLE,"templetrap",lDest,FALSE);
        DestroyObject(oItem);
}
}
