void main()
{
object oPC = GetItemActivator();
effect eDeath = EffectDeath();
int nPCUW = GetLocalInt(oPC, "Underwater");
int nUA = GetLocalInt(oPC, "UnderwaterArea");

if (nPCUW != 1)
 {
 ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_CHARM), oPC);
 DelayCommand(1.5, FloatingTextStringOnCreature("You are not underwater!  Suddenly, asphyxia sets in...", oPC));
 DelayCommand(4.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH), oPC));
 DelayCommand(6.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDeath, oPC));
 }

if (nUA == 1)
 {
 SetLocalInt(oPC, "UnderwaterArea", 0);
 SetLocalInt(oPC, "NoDrown", 1);
 ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_CHARM), oPC);
 }

return;
}
