How do you make it so you can only attack other people that are within the WildyLevel combat range?

I know how to calculate the WildyLevel, but how d'ya make the attack thing work?

Anybody?