Thread: About PvP
View Single Post
  #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