void main()
{

object oPC = GetPCItemLastEquippedBy();

object oItem = GetPCItemLastEquipped();

int nInt=GetLocalInt(GetFirstPC(), "Underwater");

if (nInt == 1)
 {
 FloatingTextStringOnCreature("Non-magical missile weapons will not function underwater!", oPC);
 DelayCommand(0.5, AssignCommand(oPC, ActionUnequipItem(oItem)));
 }

}
