Core/Players: Implemented PlayerDataElementAccount, PlayerDataElementCharacter, PlayerDataFlagAccount and PlayerDataFlagCharacter

Port From (https://github.com/TrinityCore/TrinityCore/commit/60400d25f5fff2dabd4aa74bbdbc0d2370360a35)
This commit is contained in:
Hondacrx
2025-08-19 16:29:13 -04:00
parent df197587a3
commit a9fc9f454f
18 changed files with 710 additions and 26 deletions
@@ -450,8 +450,8 @@ namespace Framework.Constants
PlayerWeaponHighWatermarkAboveOrEqual = 375, /*NYI*/
PlayerHeadHighWatermarkAboveOrEqual = 376, /*NYI*/
PlayerHasDisplayedCurrencyLessThan = 377, /*NYI*/ // Player has {CurrencyTypes} less than {#Amount} (value visible in ui is taken into account, not raw value)
PlayerDataFlagAccountIsSet = 378, /*NYI*/ // Player {PlayerDataFlagAccount} is set
PlayerDataFlagCharacterIsSet = 379, /*NYI*/ // Player {PlayerDataFlagCharacter} is set
PlayerDataFlagAccountIsSet = 378, // Player {PlayerDataFlagAccount} is set
PlayerDataFlagCharacterIsSet = 379, // Player {PlayerDataFlagCharacter} is set
PlayerIsOnMapWithExpansion = 380, // Player is on map that has {ExpansionID}
PlayerHasCompletedQuestOnAccount = 382, /*NYI*/ // Player has previously completed quest "{QuestV2}" on account
@@ -462,12 +462,16 @@ namespace Framework.Constants
PlayerIsInSoloRBG = 387, /*NYI*/ // Player is in solo RBG (BG Blitz)
PlayerHasCompletedCampaign = 388, /*NYI*/ // Player has completed campaign "{Campaign}"
TargetCreatureClassificationEqual = 389, // Creature classification is {CreatureClassification}
PlayerDataElementCharacterEqual = 390, /*NYI*/ // Player {PlayerDataElementCharacter} is greater than {#Amount}
PlayerDataElementAccountEqual = 391, /*NYI*/ // Player {PlayerDataElementAccount} is greater than {#Amount}
PlayerDataElementCharacterBetween = 390, // Player {PlayerDataElementCharacter} is between {#Amount} and {#Amount2}
PlayerDataElementAccountBetween = 391, // Player {PlayerDataElementAccount} is between {#Amount} and {#Amount2}
PlayerHasCompletedQuestOrIsReadyToTurnIn = 392, // Player has previously completed quest "{QuestV2}" or is ready to turn it in
PlayerTitle = 393, // Player is currently using "{ChrTitles}" title
PlayerWeeklyCurrencyIsRelOpFromMax = 397, /*NYI*/ // Player weekly {CurrencyTypes} is {RelOp} {#Amount} from currency weekly limit
PlayerIsInGuild = 404, // Player is in a guild
PlayerAvgItemLevelRelOp = 415, /*NYI*/ // Player average item level {AvgItemLevelCategory} is {RelOp} {#Amount}
}
public enum CriteriaFailEvent : byte
+6
View File
@@ -1969,6 +1969,12 @@ namespace Framework.Constants
GearDiff = 8
}
public enum PlayerDataElementType
{
Int64 = 0,
Float = 1
}
public enum PlayerInteractionType
{
None = 0,
@@ -22,6 +22,7 @@ namespace Framework.Constants
public const int ExploredZonesSize = 240;
public const int ExploredZonesBits = sizeof(ulong) * 8;
public const int DataFlagValueBits = sizeof(ulong) * 8;
public const ulong MaxMoneyAmount = 99999999999UL;
public const int MaxActionButtons = 180;
@@ -2620,7 +2620,7 @@ namespace Framework.Constants
CraftItem = 288, // Miscvalue[0] = Craftingdataid
ModifyAuraStacks = 289, // Miscvalue[0] = 0 Means Add, = 1 Means Set
ModifyCooldown = 290,
ModifyCooldowns = 291, // Miscvalue[0] = Spellfamily, Miscvalue[1] = Maybe Bit Index For Family Flags? Off By 1 For The Only Spell Using This Effect
ModifyCooldowns = 291, // Miscvalue[0] = Spellfamily, Miscvalue[1] = bit index for family flags
ModifyCooldownsByCategory = 292, // Miscvalue[0] = Category
ModifyCharges = 293, // Miscvalue[0] = Charge Category
CraftLoot = 294, // Miscvalue[0] = Craftingdataid
@@ -2664,10 +2664,10 @@ namespace Framework.Constants
Unk332 = 332,
Unk333 = 333,
Unk334 = 334,
Unk335 = 335,
Unk336 = 336,
Unk337 = 337,
Unk338 = 338,
SetPlayerDataElementAccount = 335, // MiscValue[0] = PlayerDataElementAccount
SetPlayerDataElementCharacter = 336, // MiscValue[0] = PlayerDataElementCharacter
SetPlayerDataFlagAccount = 337, // MiscValue[0] = PlayerDataFlagAccount
SetPlayerDataFlagCharacter = 338, // MiscValue[0] = PlayerDataFlagCharacter
UiAction = 339,
Unk340 = 340,
LearnWarbanScene = 341,