Add support for random battlegrounds - port by n0n4me, original code by Vladimir and Griffonheart (Big thanks to all of you!)
--HG-- branch : trunk
This commit is contained in:
+9
-1
@@ -785,7 +785,8 @@ enum PlayerLoginQueryIndex
|
||||
PLAYER_LOGIN_QUERY_LOADACCOUNTDATA = 24,
|
||||
PLAYER_LOGIN_QUERY_LOADSKILLS = 25,
|
||||
PLAYER_LOGIN_QUERY_LOADWEKLYQUESTSTATUS = 26,
|
||||
MAX_PLAYER_LOGIN_QUERY = 27
|
||||
PLAYER_LOGIN_QUERY_LOADRANDOMBG = 27,
|
||||
MAX_PLAYER_LOGIN_QUERY = 28
|
||||
};
|
||||
|
||||
enum PlayerDelayedOperations
|
||||
@@ -1940,6 +1941,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SendInitWorldStates(uint32 zone, uint32 area);
|
||||
void SendUpdateWorldState(uint32 Field, uint32 Value);
|
||||
void SendDirectMessage(WorldPacket *data);
|
||||
void SendBGWeekendWorldStates();
|
||||
|
||||
void SendAurasForTarget(Unit *target);
|
||||
|
||||
@@ -2057,6 +2059,9 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool isTotalImmune();
|
||||
bool CanCaptureTowerPoint();
|
||||
|
||||
bool GetRandomWinner() { return m_IsBGRandomWinner; }
|
||||
void SetRandomWinner(bool isWinner);
|
||||
|
||||
/*********************************************************/
|
||||
/*** OUTDOOR PVP SYSTEM ***/
|
||||
/*********************************************************/
|
||||
@@ -2302,6 +2307,8 @@ class Player : public Unit, public GridObject<Player>
|
||||
BgBattleGroundQueueID_Rec m_bgBattleGroundQueueID[PLAYER_MAX_BATTLEGROUND_QUEUES];
|
||||
BGData m_bgData;
|
||||
|
||||
bool m_IsBGRandomWinner;
|
||||
|
||||
/*********************************************************/
|
||||
/*** QUEST SYSTEM ***/
|
||||
/*********************************************************/
|
||||
@@ -2329,6 +2336,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
void _LoadQuestStatus(QueryResult_AutoPtr result);
|
||||
void _LoadDailyQuestStatus(QueryResult_AutoPtr result);
|
||||
void _LoadWeeklyQuestStatus(QueryResult_AutoPtr result);
|
||||
void _LoadRandomBGStatus(QueryResult_AutoPtr result);
|
||||
void _LoadGroup(QueryResult_AutoPtr result);
|
||||
void _LoadSkills(QueryResult_AutoPtr result);
|
||||
void _LoadSpells(QueryResult_AutoPtr result);
|
||||
|
||||
Reference in New Issue
Block a user