Core: Update to 10.1.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/0cea730fa23473a85c47451c3bd13df816f2b6e4)
This commit is contained in:
@@ -424,9 +424,29 @@ namespace Framework.Constants
|
||||
|
||||
PlayerHasPerksProgramPendingReward = 350,
|
||||
PlayerCanUseItem = 351, // Player can use item {#Item}
|
||||
PlayerSummonedBattlePetSpecies = 352,
|
||||
PlayerSummonedBattlePetIsMaxLevel = 353,
|
||||
|
||||
PlayerHasAtLeastProfPathRanks = 355, // Player has purchased or granted at least {#Count} ranks in {SkillLine} config
|
||||
PlayerHasAtLeastMissingProfPathRanks = 356, /*NYI*/ // Player is missing least {#Count} ranks in {SkillLine} config
|
||||
|
||||
PlayerHasItemTransmogrifiedToItemModifiedAppearance = 358, // Player has item with {ItemModifiedAppearance} transmog
|
||||
ItemHasBonusList = 359, /*NYI*/ // Item has {ItemBonusList} (used by ItemCondition)
|
||||
ItemHasBonusListFromGroup = 360, /*NYI*/ // Item has a bonus list from {ItemBonusListGroup} (used by ItemCondition)
|
||||
ItemHasContext = 361, /*NYI*/ // Item has {ItemContext}
|
||||
ItemHasItemLevelBetween = 362, /*NYI*/ // Item has item level between {#Min} and {#Max}
|
||||
ItemHasContentTuningID = 363, /*NYI*/ // Item has {ContentTuning} (modifier 28)
|
||||
ItemHasInventoryType = 364, /*NYI*/ // Item has inventory type
|
||||
ItemWasCraftedWithReagentInSlot = 365, /*NYI*/ // Item was crafted with reagent item {Item} in slot {ModifiedCraftingReagentSlot}
|
||||
PlayerHasCompletedDungeonEncounterInDifficulty = 366, // Player has completed {DungeonEncounter} on {Difficulty}
|
||||
PlayerCurrencyIsRelOpFromMax = 367, /*NYI*/ // Player {CurrencyTypes} is {RelOp} {#Amount} from currency limit
|
||||
ItemHasModifiedCraftingReagentSlot = 368, /*NYI*/ // Item has {ModifiedCraftingReagentSlot}
|
||||
PlayerIsBetweenQuests = 369, // Player has previously completed quest or is on "{QuestV2}" but not "{QuestV2}" (SecondaryAsset)
|
||||
PlayerIsOnQuestWithLabel = 370, /*NYI*/ // Player is on quest with {QuestLabel}
|
||||
PlayerScenarioStepID = 371, // Player is on scenario step number {ScenarioStep}
|
||||
PlayerHasCompletedQuestWithLabel = 372, /*NYI*/ // Player has previously completed quest with {QuestLabel}
|
||||
LegacyLootIsEnabled = 373, /*NYI*/
|
||||
PlayerZPositionBelow = 374,
|
||||
}
|
||||
|
||||
public enum CriteriaFailEvent : byte
|
||||
@@ -723,6 +743,7 @@ namespace Framework.Constants
|
||||
FulfillCraftingOrderType = 246, /*NYI*/ // {CraftingOrderType}
|
||||
|
||||
PerksProgramMonthComplete = 249, /*NYI*/
|
||||
CompleteTrackingQuest = 250, /*NYI*/
|
||||
|
||||
Count
|
||||
}
|
||||
|
||||
@@ -456,4 +456,14 @@ namespace Framework.Constants
|
||||
HordeCaptured = 4,
|
||||
AllianceCaptured = 5
|
||||
}
|
||||
|
||||
public enum PVPMatchState : byte
|
||||
{
|
||||
Waiting = 0,
|
||||
StartUp = 1,
|
||||
Engaged = 2,
|
||||
PostRound = 3,
|
||||
Inactive = 4,
|
||||
Complete = 5
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,8 @@ namespace Framework.Constants
|
||||
public enum ChatWhisperTargetStatus
|
||||
{
|
||||
CanWhisper = 0,
|
||||
Offline = 1,
|
||||
WrongFaction = 2
|
||||
CanWhisperGuild = 1,
|
||||
Offline = 2,
|
||||
WrongFaction = 3
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1904,7 +1904,7 @@ namespace Framework.Constants
|
||||
MonoValue = 0x400 // Skill always has value 1
|
||||
}
|
||||
|
||||
public enum SpellCategoryFlags : sbyte
|
||||
public enum SpellCategoryFlags : int
|
||||
{
|
||||
CooldownScalesWithWeaponSpeed = 0x01, // unused
|
||||
CooldownStartsOnEvent = 0x04,
|
||||
|
||||
@@ -11,7 +11,9 @@ namespace Framework.Constants
|
||||
Gameobject = 4,
|
||||
Calendar = 5,
|
||||
Blackmarket = 6,
|
||||
CommerceAuction = 7
|
||||
CommerceAuction = 7,
|
||||
Auction2 = 8,
|
||||
ArtisansConsortium = 9
|
||||
}
|
||||
|
||||
public enum MailCheckMask
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -96,6 +96,8 @@ namespace Framework.Constants
|
||||
ToolsClient = 50,
|
||||
WorldLayer = 51,
|
||||
ArenaTeam = 52,
|
||||
LMMParty = 53,
|
||||
LMMLobby = 54,
|
||||
|
||||
Count
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
|
||||
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System;
|
||||
|
||||
namespace Framework.Constants
|
||||
{
|
||||
public enum CharmType
|
||||
@@ -29,6 +31,13 @@ namespace Framework.Constants
|
||||
NotInSlot = -1, // for avoid conflict with stable size grow will use negative value
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum PetStableFlags
|
||||
{
|
||||
Active = 0x1,
|
||||
Inactive = 0x2
|
||||
}
|
||||
|
||||
public enum PetSpellState
|
||||
{
|
||||
Unchanged = 0,
|
||||
@@ -88,23 +97,6 @@ namespace Framework.Constants
|
||||
DeclensionDoesntMatchBaseName = 16
|
||||
}
|
||||
|
||||
public enum PetStableinfo : byte
|
||||
{
|
||||
Active = 1,
|
||||
Inactive = 2
|
||||
}
|
||||
|
||||
public enum StableResult
|
||||
{
|
||||
NotEnoughMoney = 1, // "you don't have enough money"
|
||||
InvalidSlot = 3, // "That slot is locked"
|
||||
StableSuccess = 8, // stable success
|
||||
UnstableSuccess = 9, // unstable/swap success
|
||||
BuySlotSuccess = 10, // buy slot success
|
||||
CantControlExotic = 11, // "you are unable to control exotic creatures"
|
||||
InternalError = 12, // "Internal pet error"
|
||||
}
|
||||
|
||||
public enum PetTameResult
|
||||
{
|
||||
Ok = 0,
|
||||
@@ -123,4 +115,15 @@ namespace Framework.Constants
|
||||
InvalidSlot = 13,
|
||||
EliteTooHighLevel = 14
|
||||
}
|
||||
|
||||
public enum StableResult
|
||||
{
|
||||
NotEnoughMoney = 1, // "you don't have enough money"
|
||||
InvalidSlot = 3, // "That slot is locked"
|
||||
StableSuccess = 8, // stable success
|
||||
UnstableSuccess = 9, // unstable/swap success
|
||||
BuySlotSuccess = 10, // buy slot success
|
||||
CantControlExotic = 11, // "you are unable to control exotic creatures"
|
||||
InternalError = 12, // "Internal pet error"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,9 +67,9 @@ namespace Framework.Constants
|
||||
|
||||
public enum QuestSlotStateMask
|
||||
{
|
||||
None = 0x0000,
|
||||
Complete = 0x0001,
|
||||
Fail = 0x0002
|
||||
None = 0x00,
|
||||
Complete = 0x1,
|
||||
Fail = 0x2
|
||||
}
|
||||
|
||||
public enum QuestType
|
||||
@@ -402,7 +402,7 @@ namespace Framework.Constants
|
||||
Max
|
||||
}
|
||||
|
||||
public enum QuestGiverStatus : uint
|
||||
public enum QuestGiverStatus : ulong
|
||||
{
|
||||
None = 0x00,
|
||||
Future = 0x02,
|
||||
@@ -426,6 +426,16 @@ namespace Framework.Constants
|
||||
CovenantCallingQuest = 0x80000,
|
||||
CovenantCallingRewardCompleteNoPOI = 0x100000,
|
||||
CovenantCallingRewardCompletePOI = 0x200000,
|
||||
TrivialLegendaryQuest = 0x400000,
|
||||
FutureLegendaryQuest = 0x800000,
|
||||
LegendaryReward = 0x1000000,
|
||||
ImportantQuest = 0x2000000,
|
||||
ImportantQuestReward = 0x4000000,
|
||||
TrivialImportantQuest = 0x8000000,
|
||||
ImportantQuestRewardCompleteNoPOI = 0x20000000,
|
||||
ImportantQuestRewardCompletePOI = 0x40000000,
|
||||
TrivialJourneyQuest = 0x80000000,
|
||||
TrivialCovenantCallingQuest = 0x100000000,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
@@ -533,10 +543,10 @@ namespace Framework.Constants
|
||||
{
|
||||
None = 0x00,
|
||||
// Flags For Set Specialflags In Db If Required But Used Only At Server
|
||||
Repeatable = 0x001, // Set by 1 in SpecialFlags from DB
|
||||
AutoPushToParty = 0x002, // Set by 2 in SpecialFlags from DB will make quest be pushed to entire party when one member accepts it
|
||||
AutoAccept = 0x004, // Set by 4 in SpecialFlags in DB if the quest is to be auto-accepted.
|
||||
DfQuest = 0x008, // Set by 8 in SpecialFlags in DB if the quest is used by Dungeon Finder.
|
||||
Repeatable = 0x01, // Set by 1 in SpecialFlags from DB
|
||||
AutoPushToParty = 0x02, // Set by 2 in SpecialFlags from DB will make quest be pushed to entire party when one member accepts it
|
||||
AutoAccept = 0x04, // Set by 4 in SpecialFlags in DB if the quest is to be auto-accepted.
|
||||
DfQuest = 0x08, // Set by 8 in SpecialFlags in DB if the quest is used by Dungeon Finder.
|
||||
Monthly = 0x010, // Set by 16 in SpecialFlags in DB if the quest is reset at the begining of the month
|
||||
// Room For More Custom Flags
|
||||
|
||||
|
||||
@@ -294,18 +294,6 @@ namespace Framework.Constants
|
||||
29, 30, 31, -1, 11, 12, 13, 14
|
||||
};
|
||||
|
||||
public static ulong RaceMaskAllPlayable = (ulong)(GetMaskForRace(Race.Human) | GetMaskForRace(Race.Orc) | GetMaskForRace(Race.Dwarf) | GetMaskForRace(Race.NightElf) | GetMaskForRace(Race.Undead)
|
||||
| GetMaskForRace(Race.Tauren) | GetMaskForRace(Race.Gnome) | GetMaskForRace(Race.Troll) | GetMaskForRace(Race.BloodElf) | GetMaskForRace(Race.Draenei)
|
||||
| GetMaskForRace(Race.Goblin) | GetMaskForRace(Race.Worgen) | GetMaskForRace(Race.PandarenNeutral) | GetMaskForRace(Race.PandarenAlliance) | GetMaskForRace(Race.PandarenHorde)
|
||||
| GetMaskForRace(Race.Nightborne) | GetMaskForRace(Race.HighmountainTauren) | GetMaskForRace(Race.VoidElf) | GetMaskForRace(Race.LightforgedDraenei) | GetMaskForRace(Race.ZandalariTroll)
|
||||
| GetMaskForRace(Race.KulTiran) | GetMaskForRace(Race.DarkIronDwarf) | GetMaskForRace(Race.Vulpera) | GetMaskForRace(Race.MagharOrc) | GetMaskForRace(Race.MechaGnome) | GetMaskForRace(Race.DracthyrAlliance) | GetMaskForRace(Race.DracthyrHorde));
|
||||
|
||||
public static ulong RaceMaskAlliance = (ulong)(GetMaskForRace(Race.Human) | GetMaskForRace(Race.Dwarf) | GetMaskForRace(Race.NightElf) | GetMaskForRace(Race.Gnome)
|
||||
| GetMaskForRace(Race.Draenei) | GetMaskForRace(Race.Worgen) | GetMaskForRace(Race.PandarenAlliance) | GetMaskForRace(Race.VoidElf) | GetMaskForRace(Race.LightforgedDraenei)
|
||||
| GetMaskForRace(Race.KulTiran) | GetMaskForRace(Race.DarkIronDwarf) | GetMaskForRace(Race.MechaGnome) | GetMaskForRace(Race.DracthyrAlliance));
|
||||
|
||||
public static ulong RaceMaskHorde = RaceMaskAllPlayable & ~RaceMaskAlliance;
|
||||
|
||||
//Todo move these else where
|
||||
/// <summary>
|
||||
/// Method Const
|
||||
@@ -418,55 +406,6 @@ namespace Framework.Constants
|
||||
CascLocaleBit.itIT
|
||||
};
|
||||
|
||||
static int GetRaceBit(Race raceId)
|
||||
{
|
||||
switch (raceId)
|
||||
{
|
||||
case Race.Human:
|
||||
case Race.Orc:
|
||||
case Race.Dwarf:
|
||||
case Race.NightElf:
|
||||
case Race.Undead:
|
||||
case Race.Tauren:
|
||||
case Race.Gnome:
|
||||
case Race.Troll:
|
||||
case Race.Goblin:
|
||||
case Race.BloodElf:
|
||||
case Race.Draenei:
|
||||
case Race.Worgen:
|
||||
case Race.PandarenNeutral:
|
||||
case Race.PandarenAlliance:
|
||||
case Race.PandarenHorde:
|
||||
case Race.Nightborne:
|
||||
case Race.HighmountainTauren:
|
||||
case Race.VoidElf:
|
||||
case Race.LightforgedDraenei:
|
||||
case Race.ZandalariTroll:
|
||||
case Race.KulTiran:
|
||||
return (int)raceId - 1;
|
||||
case Race.DarkIronDwarf:
|
||||
return 11;
|
||||
case Race.Vulpera:
|
||||
return 12;
|
||||
case Race.MagharOrc:
|
||||
return 13;
|
||||
case Race.MechaGnome:
|
||||
return 14;
|
||||
case Race.DracthyrAlliance:
|
||||
return 16;
|
||||
case Race.DracthyrHorde:
|
||||
return 15;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
public static long GetMaskForRace(Race raceId)
|
||||
{
|
||||
int raceBit = GetRaceBit(raceId);
|
||||
return raceBit >= 0 && raceBit < sizeof(long) * 8 ? (1L << raceBit) : 0;
|
||||
}
|
||||
|
||||
public static bool IsActivePetSlot(PetSaveMode slot)
|
||||
{
|
||||
return slot >= PetSaveMode.FirstActiveSlot && slot < PetSaveMode.LastActiveSlot;
|
||||
@@ -3054,12 +2993,13 @@ namespace Framework.Constants
|
||||
CrossFactionGroupJoined = 1114,
|
||||
CantTargetUnfriendlyInOverworld = 1115,
|
||||
EquipablespellsSlotsFull = 1116,
|
||||
WowLabsPartyErrorTypePartyIsFull = 1117,
|
||||
WowLabsPartyErrorTypeMaxInviteSent = 1118,
|
||||
WowLabsPartyErrorTypePlayerAlreadyInvited = 1119,
|
||||
WowLabsPartyErrorTypePartyInviteInvalid = 1120,
|
||||
WowLabsLobbyMatchmakerErrorEnterQueueFailed = 1121,
|
||||
WowLabsLobbyMatchmakerErrorLeaveQueueFailed = 1122,
|
||||
ItemModAppearanceGroupAlreadyKnown = 1117,
|
||||
WowLabsPartyErrorTypePartyIsFull = 1118,
|
||||
WowLabsPartyErrorTypeMaxInviteSent = 1119,
|
||||
WowLabsPartyErrorTypePlayerAlreadyInvited = 1120,
|
||||
WowLabsPartyErrorTypePartyInviteInvalid = 1121,
|
||||
WowLabsLobbyMatchmakerErrorEnterQueueFailed = 1122,
|
||||
WowLabsLobbyMatchmakerErrorLeaveQueueFailed = 1123,
|
||||
}
|
||||
|
||||
public enum SceneFlags
|
||||
|
||||
@@ -545,6 +545,10 @@ namespace Framework.Constants
|
||||
Unk535 = 535,
|
||||
IgnoreSpellCreatureTypeRequirements = 536,
|
||||
Unk537 = 537,
|
||||
ModFakeInebriationMovementOnly = 538,
|
||||
AllowMountInCombat = 539,
|
||||
ModSupportStat = 540, // NYI
|
||||
ModRequiredMountCapabilityFlags = 541,
|
||||
Total
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Framework.Constants
|
||||
|
||||
public const float TrajectoryMissileSize = 3.0f;
|
||||
|
||||
public const int MaxPowersPerSpell = 4;
|
||||
public const int MaxPowersPerSpell = 5;
|
||||
|
||||
public const uint VisualKitFood = 406;
|
||||
public const uint VisualKitDrink = 438;
|
||||
@@ -763,7 +763,9 @@ namespace Framework.Constants
|
||||
CantBeRecrafted = 316,
|
||||
PassiveReplaced = 317,
|
||||
CantFlyHere = 318,
|
||||
Unknown = 319,
|
||||
DragonridingRidingRequirement = 319,
|
||||
ItemModAppearanceGroupAlreadyKnown = 320,
|
||||
Unknown = 321,
|
||||
|
||||
// Ok Cast Value - Here In Case A Future Version Removes Success And We Need To Use A Custom Value (Not Sent To Client Either Way)
|
||||
SpellCastOk = Success
|
||||
@@ -1397,8 +1399,11 @@ namespace Framework.Constants
|
||||
RequiresADjaradinPillarShard = 831, // Requires A Djaradin Pillar Shard.
|
||||
RequiresAResilientStone = 832, // Requires A Resilient Stone.
|
||||
MyrritCannotCarryAnyMoreMaps = 835, // Myrrit Cannot Carry Any More Maps. Go On A Dig With Him!
|
||||
SomeGiftsAreBetterLeftUndelivered = 836, // Some gifts are better left undelivered.
|
||||
RequiresNiffenCaveDiveKeyandShieldDisabled = 850, // Requires Niffen Cave Dive Key And Shield Disabled.
|
||||
ElusiveCreatureBaitWasRecentlyUsed = 851, // You Cannot Lure Anything In This Area For A Few Minutes. Elusive Creature Bait Was Recently Used.
|
||||
MustBeInQuietPlaceWithinCaerDarrow = 852, // Must be in a suitably quiet place within Caer Darrow.
|
||||
YouDontHaveAnyGlimmerOfLightsActive = 856, // You don't have any Glimmer of Lights active.
|
||||
YouDontHaveTheSwirlingMojoStone = 999, // You Don'T Have The Swirling Mojo Stone Equipped.
|
||||
YouMustBeNearADragonflightOathstone = 1000, // You Must Be Near One Of The Five Dragonflight Oathstones In The Dragon Isles.
|
||||
CanOnlyUseThisItemWhileAirborne = 1001, // You Can Only Use This Item While Airborne.
|
||||
@@ -2500,7 +2505,7 @@ namespace Framework.Constants
|
||||
CreateTraitTreeConfig = 303, // Miscvalue[0] = Traittreeid
|
||||
ChangeActiveCombatTraitConfig = 304,
|
||||
Unk305 = 305,
|
||||
Unk306 = 306,
|
||||
UpdateInteractions = 306,
|
||||
Unk307 = 307,
|
||||
CancelPreloadWorld = 308,
|
||||
PreloadWorld = 309,
|
||||
@@ -2509,6 +2514,7 @@ namespace Framework.Constants
|
||||
Unk312 = 312,
|
||||
ChangeItemBonuses2 = 313, // MiscValue[0] = ItemBonusTreeID to preserve
|
||||
AddSocketBonus = 314, // MiscValue[0] = required ItemBonusTreeID
|
||||
LearnTransmogAppearanceFromItemModAppearanceGroup = 315, // MiscValue[0] = ItemModAppearanceGroupID (not in db2)
|
||||
|
||||
TotalSpellEffects
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user