Thanks for the confirmation.

So chance to hit =

offence rating factor +/- level difference factor - defence rating factor +/- other factors (range dropoff for bow/xbow, blind, curse, bless etc.)

Defaults to 100% if enemy is incapacitated.