I had a look at what would be involved to use this to enable PVP combat in the PVP areas, and it looks to be simpler than I thought, i.e. just change the existing GetPVP() function:
Code:
--- /tmp/EQEmu-0.7.0-1115/zone/client.h 2008-06-15 00:07:57.000000000 +0100
+++ client.h 2008-06-22 16:50:45.000000000 +0100
@@ -36,6 +36,7 @@
#include "mob.h"
#include "npc.h"
#include "zone.h"
+#include "watermap.h"
#include "AA.h"
#include "../common/seperator.h"
#include "../common/Item.h"
@@ -275,7 +276,7 @@
void SetGM(bool toggle);
void SetPVP(bool toggle);
- inline bool GetPVP() const { return zone->GetZoneID() == 77 ? true : m_pp.pvp; }
+ inline bool GetPVP() const { return zone->watermap->InPVPArea(x_pos, y_pos, z_pos) ? true : m_pp.pvp; }
inline bool GetGM() const { return (bool) m_pp.gm; }
inline void SetBaseClass(uint32 i) { m_pp.class_=i; }
Previously this would let you PVP anywhere in zone 77 (arena), but with this change it will only allow it in the central PVP area.