Updated to 8.2.0.31429 (scripts disabled atm, they still need updated)
Code Port from TrinityCore https://github.com/TrinityCore/TrinityCore Casc from WoW-Tools https://github.com/WoW-Tools/CASCExplorer
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteUInt32(Result);
|
||||
_worldPacket.WriteUInt32((uint)Result);
|
||||
_worldPacket.WriteUInt32(GarrSiteID);
|
||||
}
|
||||
|
||||
@@ -64,9 +64,9 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(FactionIndex);
|
||||
_worldPacket.WriteUInt32(Garrisons.Count);
|
||||
_worldPacket.WriteUInt32(FollowerSoftCaps.Count);
|
||||
_worldPacket.WriteUInt32(FactionIndex);
|
||||
_worldPacket.WriteInt32(Garrisons.Count);
|
||||
_worldPacket.WriteInt32(FollowerSoftCaps.Count);
|
||||
|
||||
foreach (FollowerSoftCapInfo followerSoftCapInfo in FollowerSoftCaps)
|
||||
followerSoftCapInfo.Write(_worldPacket);
|
||||
@@ -86,7 +86,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteUInt32(Sites.Count);
|
||||
_worldPacket.WriteInt32(Sites.Count);
|
||||
foreach (GarrisonRemoteSiteInfo site in Sites)
|
||||
site.Write(_worldPacket);
|
||||
}
|
||||
@@ -116,8 +116,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(GarrTypeID);
|
||||
_worldPacket.WriteUInt32(Result);
|
||||
_worldPacket.WriteInt32((int)GarrTypeID);
|
||||
_worldPacket.WriteUInt32((uint)Result);
|
||||
BuildingInfo.Write(_worldPacket);
|
||||
_worldPacket.WriteBit(PlayActivationCinematic);
|
||||
_worldPacket.FlushBits();
|
||||
@@ -149,8 +149,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(GarrTypeID);
|
||||
_worldPacket.WriteUInt32(Result);
|
||||
_worldPacket.WriteInt32((int)GarrTypeID);
|
||||
_worldPacket.WriteUInt32((uint)Result);
|
||||
_worldPacket.WriteUInt32(GarrPlotInstanceID);
|
||||
_worldPacket.WriteUInt32(GarrBuildingID);
|
||||
}
|
||||
@@ -167,8 +167,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(GarrTypeID);
|
||||
_worldPacket.WriteUInt32(Result);
|
||||
_worldPacket.WriteInt32((int)GarrTypeID);
|
||||
_worldPacket.WriteUInt32((uint)Result);
|
||||
_worldPacket.WriteUInt32(BuildingID);
|
||||
}
|
||||
|
||||
@@ -183,8 +183,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(GarrTypeID);
|
||||
_worldPacket.WriteUInt32(Result);
|
||||
_worldPacket.WriteInt32((int)GarrTypeID);
|
||||
_worldPacket.WriteUInt32((uint)Result);
|
||||
_worldPacket.WriteUInt32(BuildingID);
|
||||
}
|
||||
|
||||
@@ -206,9 +206,9 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(GarrTypeID);
|
||||
_worldPacket.WriteUInt32(BlueprintsKnown != null ? BlueprintsKnown.Count : 0);
|
||||
_worldPacket.WriteUInt32(SpecializationsKnown != null ? SpecializationsKnown.Count : 0);
|
||||
_worldPacket.WriteUInt32((uint)GarrTypeID);
|
||||
_worldPacket.WriteInt32(BlueprintsKnown != null ? BlueprintsKnown.Count : 0);
|
||||
_worldPacket.WriteInt32(SpecializationsKnown != null ? SpecializationsKnown.Count : 0);
|
||||
if (BlueprintsKnown != null)
|
||||
foreach (uint blueprint in BlueprintsKnown)
|
||||
_worldPacket.WriteUInt32(blueprint);
|
||||
@@ -236,7 +236,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteUInt32(Landmarks.Count);
|
||||
_worldPacket.WriteInt32(Landmarks.Count);
|
||||
foreach (GarrisonBuildingLandmark landmark in Landmarks)
|
||||
landmark.Write(_worldPacket);
|
||||
}
|
||||
@@ -250,7 +250,7 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(GarrTypeID);
|
||||
_worldPacket.WriteInt32((int)GarrTypeID);
|
||||
PlotInfo.Write(_worldPacket);
|
||||
}
|
||||
|
||||
@@ -276,8 +276,8 @@ namespace Game.Network.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32(GarrTypeID);
|
||||
_worldPacket .WriteUInt32(Result);
|
||||
_worldPacket.WriteInt32((int)GarrTypeID);
|
||||
_worldPacket .WriteUInt32((uint)Result);
|
||||
Follower.Write(_worldPacket);
|
||||
}
|
||||
|
||||
@@ -337,9 +337,9 @@ namespace Game.Network.Packets
|
||||
{
|
||||
data.WriteUInt32(GarrPlotInstanceID);
|
||||
data.WriteUInt32(GarrBuildingID);
|
||||
data.WriteUInt32(TimeBuilt);
|
||||
data.WriteUInt32((uint)TimeBuilt);
|
||||
data.WriteUInt32(CurrentGarSpecID);
|
||||
data.WriteUInt32(TimeSpecCooldown);
|
||||
data.WriteUInt32((uint)TimeSpecCooldown);
|
||||
data.WriteBit(Active);
|
||||
data.FlushBits();
|
||||
}
|
||||
@@ -366,7 +366,7 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(Durability);
|
||||
data.WriteUInt32(CurrentBuildingID);
|
||||
data.WriteUInt32(CurrentMissionID);
|
||||
data.WriteUInt32(AbilityID.Count);
|
||||
data.WriteInt32(AbilityID.Count);
|
||||
data.WriteUInt32(ZoneSupportSpellID);
|
||||
data.WriteUInt32(FollowerStatus);
|
||||
|
||||
@@ -399,9 +399,9 @@ namespace Game.Network.Packets
|
||||
{
|
||||
data.WriteUInt64(DbID);
|
||||
data.WriteUInt32(MissionRecID);
|
||||
data.WriteUInt32(OfferTime);
|
||||
data.WriteUInt32((uint)OfferTime);
|
||||
data.WriteUInt32(OfferDuration);
|
||||
data.WriteUInt32(StartTime);
|
||||
data.WriteUInt32((uint)StartTime);
|
||||
data.WriteUInt32(TravelDuration);
|
||||
data.WriteUInt32(MissionDuration);
|
||||
data.WriteUInt32(MissionState);
|
||||
@@ -448,7 +448,7 @@ namespace Game.Network.Packets
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteUInt32(GarrMssnBonusAbilityID);
|
||||
data.WriteUInt32(StartTime);
|
||||
data.WriteUInt32((uint)StartTime);
|
||||
}
|
||||
|
||||
public uint GarrMssnBonusAbilityID;
|
||||
@@ -460,7 +460,7 @@ namespace Game.Network.Packets
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteInt32(GarrTalentID);
|
||||
data.WriteInt32(ResearchStartTime);
|
||||
data.WriteUInt32((uint)ResearchStartTime);
|
||||
data.WriteInt32(Flags);
|
||||
}
|
||||
|
||||
@@ -473,20 +473,20 @@ namespace Game.Network.Packets
|
||||
{
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteInt32(GarrTypeID);
|
||||
data.WriteInt32(GarrSiteID);
|
||||
data.WriteInt32(GarrSiteLevelID);
|
||||
data.WriteUInt32(Buildings.Count);
|
||||
data.WriteUInt32(Plots.Count);
|
||||
data.WriteUInt32(Followers.Count);
|
||||
data.WriteUInt32(Missions.Count);
|
||||
data.WriteUInt32(MissionRewards.Count);
|
||||
data.WriteUInt32(MissionOvermaxRewards.Count);
|
||||
data.WriteUInt32(MissionAreaBonuses.Count);
|
||||
data.WriteUInt32(Talents.Count);
|
||||
data.WriteUInt32(CanStartMission.Count);
|
||||
data.WriteUInt32(ArchivedMissions.Count);
|
||||
data.WriteInt32(NumFollowerActivationsRemaining);
|
||||
data.WriteUInt32((uint)GarrTypeID);
|
||||
data.WriteUInt32(GarrSiteID);
|
||||
data.WriteUInt32(GarrSiteLevelID);
|
||||
data.WriteInt32(Buildings.Count);
|
||||
data.WriteInt32(Plots.Count);
|
||||
data.WriteInt32(Followers.Count);
|
||||
data.WriteInt32(Missions.Count);
|
||||
data.WriteInt32(MissionRewards.Count);
|
||||
data.WriteInt32(MissionOvermaxRewards.Count);
|
||||
data.WriteInt32(MissionAreaBonuses.Count);
|
||||
data.WriteInt32(Talents.Count);
|
||||
data.WriteInt32(CanStartMission.Count);
|
||||
data.WriteInt32(ArchivedMissions.Count);
|
||||
data.WriteUInt32(NumFollowerActivationsRemaining);
|
||||
data.WriteUInt32(NumMissionsStartedToday);
|
||||
|
||||
foreach (GarrisonPlotInfo plot in Plots)
|
||||
@@ -497,14 +497,14 @@ namespace Game.Network.Packets
|
||||
|
||||
foreach (List<GarrisonMissionReward> missionReward in MissionRewards)
|
||||
{
|
||||
data.WriteUInt32(missionReward.Count);
|
||||
data.WriteInt32(missionReward.Count);
|
||||
foreach (GarrisonMissionReward missionRewardItem in missionReward)
|
||||
missionRewardItem.Write(data);
|
||||
}
|
||||
|
||||
foreach (List<GarrisonMissionReward> missionReward in MissionOvermaxRewards)
|
||||
{
|
||||
data.WriteUInt32(missionReward.Count);
|
||||
data.WriteInt32(missionReward.Count);
|
||||
foreach (GarrisonMissionReward missionRewardItem in missionReward)
|
||||
missionRewardItem.Write(data);
|
||||
}
|
||||
@@ -582,7 +582,7 @@ namespace Game.Network.Packets
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteUInt32(GarrSiteLevelID);
|
||||
data.WriteUInt32(Buildings.Count);
|
||||
data.WriteInt32(Buildings.Count);
|
||||
foreach (GarrisonRemoteBuildingInfo building in Buildings)
|
||||
building.Write(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user