void main() { object oTarget = GetItemActivatedTarget(); //if ((!GetIsPC(oTarget)) || (GetObjectType(oTarget)!=OBJECT_TYPE_CREATURE)) if ((GetObjectType(oTarget)!=OBJECT_TYPE_CREATURE)) { SendMessageToPC(GetItemActivator(), "Improper use of item!"); return; } effect eEffect = EffectDamage(300, DAMAGE_TYPE_COLD, DAMAGE_POWER_NORMAL); ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, GetItemActivatedTarget()); int nInt = GetObjectType(oTarget); if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_ICESTORM), oTarget); else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_ICESTORM), GetLocation(oTarget)); object oPC = GetItemActivator(); eEffect = EffectMovementSpeedDecrease(99); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f); FloatingTextStringOnCreature("Your target has been grasped by the frost of winter.", oPC); }