Core/Guild: Implemented guild master dethrone

This commit is contained in:
hondacrx
2018-04-22 16:42:26 -04:00
parent 2c3a0bcb02
commit c2b882eb45
15 changed files with 80 additions and 41 deletions
@@ -1000,7 +1000,7 @@ namespace Game.Network.Packets
public override void Read()
{
Player = _worldPacket.ReadPackedGuid(); ;
Player = _worldPacket.ReadPackedGuid();
byte[] stringLengths = new byte[SharedConst.MaxDeclinedNameCases];
+11 -4
View File
@@ -438,16 +438,16 @@ namespace Game.Network.Packets
public override void Write()
{
_worldPacket.WriteBit(SelfPromoted);
_worldPacket.WriteBits(NewLeaderName.GetByteCount(), 6);
_worldPacket.WriteBits(OldLeaderName.GetByteCount(), 6);
_worldPacket.WriteBits(NewLeaderName.GetByteCount(), 6);
_worldPacket.WritePackedGuid(OldLeaderGUID);
_worldPacket.WriteUInt32(OldLeaderVirtualRealmAddress);
_worldPacket.WritePackedGuid(NewLeaderGUID);
_worldPacket.WriteUInt32(NewLeaderVirtualRealmAddress);
_worldPacket.WriteString(NewLeaderName);
_worldPacket.WriteString(OldLeaderName);
_worldPacket.WriteString(NewLeaderName);
}
public ObjectGuid NewLeaderGUID;
@@ -981,7 +981,7 @@ namespace Game.Network.Packets
public override void Write()
{
_worldPacket .WriteInt64( RemainingWithdrawMoney);
_worldPacket.WriteInt64(RemainingWithdrawMoney);
}
public long RemainingWithdrawMoney;
@@ -1023,7 +1023,7 @@ namespace Game.Network.Packets
{
_worldPacket.WriteUInt32(tab.TabIndex);
_worldPacket.WriteBits(tab.Name.GetByteCount(), 7);
_worldPacket.WriteBits(tab.Icon.GetByteCount(), 9);;
_worldPacket.WriteBits(tab.Icon.GetByteCount(), 9);
_worldPacket.WriteString(tab.Name);
_worldPacket.WriteString(tab.Icon);
@@ -1245,6 +1245,13 @@ namespace Game.Network.Packets
public bool Sticky;
}
class GuildReplaceGuildMaster : ClientPacket
{
public GuildReplaceGuildMaster(WorldPacket packet) : base(packet) { }
public override void Read() { }
}
public class GuildSetGuildMaster : ClientPacket
{
public GuildSetGuildMaster(WorldPacket packet) : base(packet) { }
+1 -1
View File
@@ -724,7 +724,7 @@ namespace Game.Network.Packets
public void Read(WorldPacket data)
{
Context = data.ReadUInt8();
uint bonusListIdSize = data.ReadUInt32(); ;
uint bonusListIdSize = data.ReadUInt32();
BonusListIDs = new List<uint>();
for (uint i = 0u; i < bonusListIdSize; ++i)
@@ -43,7 +43,7 @@ namespace Game.Network.Packets
public override void Read()
{
Data.Read(_worldPacket);
VehicleRecID = _worldPacket.ReadInt32(); ;
VehicleRecID = _worldPacket.ReadInt32();
}
public MovementAck Data;