void main()
{
        object oPlayer = GetLastUsedBy();
        object oChair = OBJECT_SELF;
        if ((GetIsPC(oPlayer)) && (GetIsObjectValid(oPlayer)))
        {
                //oChair = GetNearestObjectByTag ("jhr_chairsittable", oPlayer, 0);
                if (GetIsObjectValid(oChair) && !GetIsObjectValid (GetSittingCreature (oChair)))
                {
                        AssignCommand (oPlayer, ActionSit (oChair));
                }
        }

}
