Core/Player: Initial War Mode support
Port From (https://github.com/TrinityCore/TrinityCore/commit/b821a729733db0d3742b4aefe05e5a8305724f66)
This commit is contained in:
@@ -74,6 +74,9 @@ namespace Framework.Constants
|
||||
public const uint MaxAzeriteItemKnowledgeLevel = 30;
|
||||
public const uint PlayerConditionIdUnlockedAzeriteEssences = 69048;
|
||||
public const uint SpellIdHeartEssenceActionBarOverride = 298554;
|
||||
|
||||
//Warmode
|
||||
public const uint WarmodeEnlistedSpellOutside = 269083;
|
||||
}
|
||||
|
||||
public struct MoneyConstants
|
||||
|
||||
@@ -1419,6 +1419,9 @@ namespace Framework.Constants
|
||||
CalculateCreatureZoneAreaData,
|
||||
CalculateGameobjectZoneAreaData,
|
||||
CalendarDeleteOldEventsHour,
|
||||
CallToArms5Pct,
|
||||
CallToArms10Pct,
|
||||
CallToArms20Pct,
|
||||
CastUnstuck,
|
||||
CharacterCreatingDisableAlliedRaceAchievementRequirement,
|
||||
CharacterCreatingDisabled,
|
||||
@@ -1488,6 +1491,7 @@ namespace Framework.Constants
|
||||
EnableSinfoLogin,
|
||||
EventAnnounce,
|
||||
Expansion,
|
||||
FactionBalanceLevelCheckDiff,
|
||||
FeatureSystemBpayStoreEnabled,
|
||||
FeatureSystemCharacterUndeleteCooldown,
|
||||
FeatureSystemCharacterUndeleteEnabled,
|
||||
|
||||
@@ -785,6 +785,9 @@ namespace Framework.Database
|
||||
PrepareStatement(CharStatements.DEL_CHARACTER_AURA_STORED_LOCATIONS_BY_GUID, "DELETE FROM character_aura_stored_location WHERE Guid = ?");
|
||||
PrepareStatement(CharStatements.DEL_CHARACTER_AURA_STORED_LOCATION, "DELETE FROM character_aura_stored_location WHERE Guid = ? AND Spell = ?");
|
||||
PrepareStatement(CharStatements.INS_CHARACTER_AURA_STORED_LOCATION, "INSERT INTO character_aura_stored_location (Guid, Spell, MapId, PositionX, PositionY, PositionZ, Orientation) VALUES (?, ?, ?, ?, ?, ?, ?)");
|
||||
|
||||
// War mode
|
||||
PrepareStatement(CharStatements.SEL_WAR_MODE_TUNING, "SELECT race, COUNT(guid) FROM characters WHERE ((playerFlags & 0x00000800) = 0x00000800) AND logout_time >= (UNIX_TIMESTAMP() - 604800) GROUP BY race");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1428,6 +1431,8 @@ namespace Framework.Database
|
||||
DEL_CHARACTER_AURA_STORED_LOCATION,
|
||||
INS_CHARACTER_AURA_STORED_LOCATION,
|
||||
|
||||
SEL_WAR_MODE_TUNING,
|
||||
|
||||
MAX_CHARACTERDATABASE_STATEMENTS
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user