Core/Misc: First set of required db changes for 9.0
Port From (https://github.com/TrinityCore/TrinityCore/commit/4ca29f3cb050896a8a6c1fea5b2364b2b11c22cd)
This commit is contained in:
@@ -357,7 +357,7 @@ namespace Game.Networking.Packets
|
||||
InstanceGroupSize = new Optional<uint>();
|
||||
|
||||
RestrictedAccountMaxLevel = new Optional<uint>();
|
||||
RestrictedAccountMaxMoney = new Optional<uint>();
|
||||
RestrictedAccountMaxMoney = new Optional<ulong>();
|
||||
}
|
||||
|
||||
public override void Write()
|
||||
|
||||
@@ -1261,7 +1261,7 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
}
|
||||
|
||||
struct MonsterSplineAnimTierTransition
|
||||
public struct MonsterSplineAnimTierTransition
|
||||
{
|
||||
public int TierTransitionID;
|
||||
public uint StartTime;
|
||||
@@ -1277,7 +1277,7 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
}
|
||||
|
||||
class MonsterSplineUnknown901
|
||||
public class MonsterSplineUnknown901
|
||||
{
|
||||
public Array<Inner> Data = new Array<Inner>(16);
|
||||
|
||||
@@ -1303,13 +1303,13 @@ namespace Game.Networking.Packets
|
||||
|
||||
public class TeleportLocation
|
||||
{
|
||||
public Vector4 Pos;
|
||||
public Position Pos;
|
||||
public int Unused901_1 = -1;
|
||||
public int Unused901_2 = -1;
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteVector4(Pos);
|
||||
data.WriteXYZO(Pos);
|
||||
data.WriteInt32(Unused901_1);
|
||||
data.WriteInt32(Unused901_2);
|
||||
}
|
||||
|
||||
@@ -1006,7 +1006,7 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
|
||||
public class QuestRewards
|
||||
{
|
||||
{
|
||||
public uint ChoiceItemCount;
|
||||
public uint ItemCount;
|
||||
public uint Money;
|
||||
@@ -1016,20 +1016,20 @@ namespace Game.Networking.Packets
|
||||
public uint Honor;
|
||||
public uint Title;
|
||||
public uint FactionFlags;
|
||||
public Array<int> SpellCompletionDisplayID = new Array<int>(SharedConst.QuestRewardDisplaySpellCount);
|
||||
public int[] SpellCompletionDisplayID = new int[SharedConst.QuestRewardDisplaySpellCount];
|
||||
public uint SpellCompletionID;
|
||||
public uint SkillLineID;
|
||||
public uint NumSkillUps;
|
||||
public uint TreasurePickerID;
|
||||
public Array<QuestChoiceItem> ChoiceItems = new Array<QuestChoiceItem>(SharedConst.QuestRewardChoicesCount);
|
||||
public Array<uint> ItemID = new Array<uint>(SharedConst.QuestRewardItemCount);
|
||||
public Array<uint> ItemQty = new Array<uint>(SharedConst.QuestRewardItemCount);
|
||||
public Array<uint> FactionID = new Array<uint>(SharedConst.QuestRewardReputationsCount);
|
||||
public Array<int> FactionValue = new Array<int>(SharedConst.QuestRewardReputationsCount);
|
||||
public Array<int> FactionOverride = new Array<int>(SharedConst.QuestRewardReputationsCount);
|
||||
public Array<int> FactionCapIn = new Array<int>(SharedConst.QuestRewardReputationsCount);
|
||||
public Array<uint> CurrencyID = new Array<uint>(SharedConst.QuestRewardCurrencyCount);
|
||||
public Array<uint> CurrencyQty = new Array<uint>(SharedConst.QuestRewardCurrencyCount);
|
||||
public QuestChoiceItem[] ChoiceItems = new QuestChoiceItem[SharedConst.QuestRewardChoicesCount];
|
||||
public uint[] ItemID = new uint[SharedConst.QuestRewardItemCount];
|
||||
public uint[] ItemQty = new uint[SharedConst.QuestRewardItemCount];
|
||||
public uint[] FactionID = new uint[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionValue = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionOverride = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public int[] FactionCapIn = new int[SharedConst.QuestRewardReputationsCount];
|
||||
public uint[] CurrencyID = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public uint[] CurrencyQty = new uint[SharedConst.QuestRewardCurrencyCount];
|
||||
public bool IsBoostSpell;
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
|
||||
@@ -394,14 +394,25 @@ namespace Game.Networking.Packets
|
||||
public ObjectGuid CastID;
|
||||
}
|
||||
|
||||
class CastFailed : ServerPacket
|
||||
class CastFailedBase : ServerPacket
|
||||
{
|
||||
public ObjectGuid CastID;
|
||||
public int SpellID;
|
||||
public SpellCastVisual Visual;
|
||||
public SpellCastResult Reason;
|
||||
public int FailedArg1 = -1;
|
||||
public int FailedArg2 = -1;
|
||||
public int FailedArg2 = -1;
|
||||
|
||||
public CastFailedBase(ServerOpcodes opcode, ConnectionType connectionType) : base(opcode, connectionType) { }
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
class CastFailed : CastFailedBase
|
||||
{
|
||||
public SpellCastVisual Visual;
|
||||
|
||||
public CastFailed() : base(ServerOpcodes.CastFailed, ConnectionType.Instance) { }
|
||||
|
||||
@@ -418,14 +429,8 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
}
|
||||
|
||||
class PetCastFailed : ServerPacket
|
||||
class PetCastFailed : CastFailedBase
|
||||
{
|
||||
public ObjectGuid CastID;
|
||||
public int SpellID;
|
||||
public SpellCastResult Reason;
|
||||
public int FailedArg1 = -1;
|
||||
public int FailedArg2 = -1;
|
||||
|
||||
public PetCastFailed() : base(ServerOpcodes.PetCastFailed, ConnectionType.Instance) { }
|
||||
|
||||
public override void Write()
|
||||
|
||||
Reference in New Issue
Block a user