View Single Post
  #13  
Old 09-15-2008, 04:13 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote