Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-30-2008, 04:15 AM
ObakeWarrior
Fire Beetle
 
Join Date: Feb 2008
Posts: 17
Default About PvP

How do I set my server up to be a PvP system with -/+ 10 level difference?
Reply With Quote
  #2  
Old 10-31-2008, 10:20 AM
kedra
Sarnak
 
Join Date: May 2007
Posts: 71
Default

Make it PVP by changing the ServerType variable in the variables table to 1 (That's off the top of my head, I think that's right). Easy shmeazy.

As for restricting PVP to that level range... There may be another way, but the only one I can think of at the moment is to edit the code and recompile. You're probably looking for a function in zone/aggro.cpp called something like 'IsTargetAttackable.' It returns a boolean value, true if the target can be attacked and false if not. You would just need to add something like:

If the absolute value of myLevel - yourLevel is greater than 10, return false.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:30 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3