mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9878] Set for client battleground weekend event world state.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
2edc375e48
commit
c4247ece32
5 changed files with 21 additions and 3 deletions
|
|
@ -574,7 +574,7 @@ struct BattlemasterListEntry
|
||||||
char* name[16]; // 11-26
|
char* name[16]; // 11-26
|
||||||
//uint32 nameFlags // 27 string flag, unused
|
//uint32 nameFlags // 27 string flag, unused
|
||||||
uint32 maxGroupSize; // 28 maxGroupSize, used for checking if queue as group
|
uint32 maxGroupSize; // 28 maxGroupSize, used for checking if queue as group
|
||||||
//uint32 HolidayWorldStateId; // 29 new 3.1
|
uint32 HolidayWorldStateId; // 29 new 3.1
|
||||||
uint32 minLevel; // 30, min level (sync with PvPDifficulty.dbc content)
|
uint32 minLevel; // 30, min level (sync with PvPDifficulty.dbc content)
|
||||||
uint32 maxLevel; // 31, max level (sync with PvPDifficulty.dbc content)
|
uint32 maxLevel; // 31, max level (sync with PvPDifficulty.dbc content)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ const char AreaTriggerEntryfmt[]="niffffffff";
|
||||||
const char AuctionHouseEntryfmt[]="niiixxxxxxxxxxxxxxxxx";
|
const char AuctionHouseEntryfmt[]="niiixxxxxxxxxxxxxxxxx";
|
||||||
const char BankBagSlotPricesEntryfmt[]="ni";
|
const char BankBagSlotPricesEntryfmt[]="ni";
|
||||||
const char BarberShopStyleEntryfmt[]="nixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiii";
|
const char BarberShopStyleEntryfmt[]="nixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiii";
|
||||||
const char BattlemasterListEntryfmt[]="niiiiiiiiixssssssssssssssssxixii";
|
const char BattlemasterListEntryfmt[]="niiiiiiiiixssssssssssssssssxiiii";
|
||||||
const char CharStartOutfitEntryfmt[]="diiiiiiiiiiiiiiiiiiiiiiiiixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
|
const char CharStartOutfitEntryfmt[]="diiiiiiiiiiiiiiiiiiiiiiiiixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
|
||||||
const char CharTitlesEntryfmt[]="nxssssssssssssssssxxxxxxxxxxxxxxxxxxi";
|
const char CharTitlesEntryfmt[]="nxssssssssssssssssxxxxxxxxxxxxxxxxxxi";
|
||||||
const char ChatChannelsEntryfmt[]="iixssssssssssssssssxxxxxxxxxxxxxxxxxx";
|
const char ChatChannelsEntryfmt[]="iixssssssssssssssssxxxxxxxxxxxxxxxxxx";
|
||||||
|
|
|
||||||
|
|
@ -8369,6 +8369,23 @@ void Player::SendInitWorldStates(uint32 zoneid, uint32 areaid)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
GetSession()->SendPacket(&data);
|
GetSession()->SendPacket(&data);
|
||||||
|
|
||||||
|
SendBGWeekendWorldStates();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Player::SendBGWeekendWorldStates()
|
||||||
|
{
|
||||||
|
for(uint32 i = 1; i < sBattlemasterListStore.GetNumRows(); ++i)
|
||||||
|
{
|
||||||
|
BattlemasterListEntry const * bl = sBattlemasterListStore.LookupEntry(i);
|
||||||
|
if (bl && bl->HolidayWorldStateId)
|
||||||
|
{
|
||||||
|
if (BattleGroundMgr::IsBGWeekend(BattleGroundTypeId(bl->id)))
|
||||||
|
SendUpdateWorldState(bl->HolidayWorldStateId,1);
|
||||||
|
else
|
||||||
|
SendUpdateWorldState(bl->HolidayWorldStateId,0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 Player::GetXPRestBonus(uint32 xp)
|
uint32 Player::GetXPRestBonus(uint32 xp)
|
||||||
|
|
|
||||||
|
|
@ -1990,6 +1990,7 @@ class MANGOS_DLL_SPEC Player : public Unit
|
||||||
void SendInitWorldStates(uint32 zone, uint32 area);
|
void SendInitWorldStates(uint32 zone, uint32 area);
|
||||||
void SendUpdateWorldState(uint32 Field, uint32 Value);
|
void SendUpdateWorldState(uint32 Field, uint32 Value);
|
||||||
void SendDirectMessage(WorldPacket *data);
|
void SendDirectMessage(WorldPacket *data);
|
||||||
|
void SendBGWeekendWorldStates();
|
||||||
|
|
||||||
void SendAurasForTarget(Unit *target);
|
void SendAurasForTarget(Unit *target);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9877"
|
#define REVISION_NR "9878"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue