EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   About PvP (https://www.eqemulator.org/forums/showthread.php?t=26668)

ObakeWarrior 10-30-2008 04:15 AM

About PvP
 
How do I set my server up to be a PvP system with -/+ 10 level difference?

kedra 10-31-2008 10:20 AM

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.


All times are GMT -4. The time now is 07:30 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.