void main()
{
  object oPC = GetEnteringObject();
  if (GetIsPC(oPC))
  {
    string sNumber = GetStringRight(GetTag(OBJECT_SELF),2);
    string sDest = "SlavePit_" + sNumber;
    object oSlavePit = GetObjectByTag(sDest);
    location lLoc = GetLocation(oSlavePit);
    AssignCommand(oPC,JumpToLocation(lLoc));
    effect eDam = EffectDamage(6);
    ApplyEffectToObject(DURATION_TYPE_INSTANT,eDam,oPC);
    AssignCommand(oPC,ActionPlayAnimation(ANIMATION_LOOPING_DEAD_FRONT,1.0,4.0));
    DelayCommand(4.0,FloatingTextStringOnCreature("You lose your balance and fall into a slave pit!",oPC));
  }
}
