You would just need to compare the mob level to the userlevel. So, something like this at the top of the script right below the EVENT_MERIT line should work:
Code:
if($mlevel + 7 >= $ulevel) {
or if you wanted to restrict it to 7 levels higher and lower, you could use this:
Code:
if(($mlevel + 7 >= $ulevel)&&($mlevel - 7 >= $ulevel)) {
Then, of course, you would need to add an extra bracket "}" at the end of the script to encompass the whole EVENT_MERIT section.