// This checks the pit for any dead bodies that can be removed...
IfTimeOut
  tmpargument = passage
  SetTargetToWhoeverIsInPassage
    tmpx = targetz
    tmpy = 0 - 100
    IfXIsLessThanY
      tmpargument = [HUMA]
      IfTargetHasID
        PoofTarget
          GetContent
          tmpargument = tmpargument + 1
          SetContent
          tmpx = tmpargument
          tmpy = 2
          IfXIsMoreThanY
            // Drop goodies
            tmpargument = 49
            tmpturn = rand
            tmpdistance = 0
            tmpx = selfx
            tmpy = selfy
            SpawnExactCharacterXYZ
            SpawnPoof
            tmpargument = 0
            tmpdistance = 11025
            PlaySound
            GoPoof
            tmpargument = 2
          Else
            tmpargument = 0
          SendMessageNear
        Else
          tmpargument = 3
          SendMessageNear
          GoPoof
      Else
        PoofTarget
          tmpargument = 1
          SendMessageNear
          tmpargument = 0
          SetContent
        Else
          tmpargument = 3
          SendMessageNear
          GoPoof

  tmpargument = 50
  SetTime
End					// All done
