By any chance, do you have any information regarding the enemy's tohit calculation? I managed to replicate the formula for player hit chance based on level difference and enemy rank but I don't know what stats to base myself on for enemies. From tests I've done in-game, enemy tohit looks different for each of their powers.
It's good i found it ^^