Question: what episode does roy attack jim?
Answer: "The Negotiation" (season three episode 19) starts with Roy bursting into the office to attack Jim after realizing that he kissed Pam in "Casino Night," but Dwight comes to his aid and pepper sprays Roy into submission.