void main()
{
    object oFarmDoor =  GetObjectByTag("dt_TownToFarm");
    ActionDoCommand(SetLocalInt(GetModule(), "nGoingToFarmDoorFlag", 1));
    ActionForceMoveToObject(oFarmDoor);
    ActionDoCommand(SetLocked(oFarmDoor, 0));
    ActionSpeakString("Go on in, and be nice to the old man!", TALKVOLUME_TALK);
    ActionForceMoveToObject(GetObjectByTag("POST_Farmer01"));
    ActionDoCommand(SetLocalInt(GetModule(), "nFarmDoorOpenedFlag", 1));
    ActionDoCommand(SetLocalInt(GetModule(), "nGoingToFarmDoorFlag", 0));
}
