Implement PVP regions

This commit is contained in:
Michael Cook (mackal)
2016-08-04 23:56:08 -04:00
parent d53d569020
commit 68df09a570
8 changed files with 57 additions and 11 deletions
+6 -2
View File
@@ -27,6 +27,7 @@ class Object;
class Raid;
class Seperator;
class ServerPacket;
enum WaterRegionType : int;
namespace EQEmu
{
@@ -360,9 +361,9 @@ public:
int32 LevelRegen();
void HPTick();
void SetGM(bool toggle);
void SetPVP(bool toggle);
void SetPVP(bool toggle, bool message = true);
inline bool GetPVP() const { return zone->GetZoneID() == 77 ? true : (m_pp.pvp != 0); }
inline bool GetPVP() const { return m_pp.pvp != 0; }
inline bool GetGM() const { return m_pp.gm != 0; }
inline void SetBaseClass(uint32 i) { m_pp.class_=i; }
@@ -1233,6 +1234,8 @@ public:
void SendHPUpdateMarquee();
void CheckRegionTypeChanges();
protected:
friend class Mob;
void CalcItemBonuses(StatBonuses* newbon);
@@ -1417,6 +1420,7 @@ private:
uint8 zonesummon_ignorerestrictions;
ZoneMode zone_mode;
WaterRegionType last_region_type;
Timer position_timer;
uint8 position_timer_counter;