Show castle icon on chat.
This commit is contained in:
parent
e85db6c835
commit
2afcbf6bd6
@ -198,9 +198,9 @@ public class CreatureSay implements IClientOutgoingPacket
|
||||
final PlayerInstance player = World.getInstance().getPlayer(_objectId);
|
||||
if (player != null)
|
||||
{
|
||||
if (((_chatType == ChatType.CLAN) || (_chatType == ChatType.ALLIANCE)) && (player.getClan() != null))
|
||||
if ((player.getClan() != null) && ((_chatType == ChatType.CLAN) || (_chatType == ChatType.ALLIANCE)))
|
||||
{
|
||||
packet.writeC(player.getClan().getCastleId());
|
||||
packet.writeC(0); // unknown clan byte
|
||||
}
|
||||
|
||||
final int rank = RankManager.getInstance().getPlayerGlobalRank(player);
|
||||
@ -220,6 +220,15 @@ public class CreatureSay implements IClientOutgoingPacket
|
||||
{
|
||||
packet.writeC(3);
|
||||
}
|
||||
|
||||
if (player.getClan() != null)
|
||||
{
|
||||
packet.writeC(player.getClan().getCastleId());
|
||||
}
|
||||
else
|
||||
{
|
||||
packet.writeC(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -198,9 +198,9 @@ public class CreatureSay implements IClientOutgoingPacket
|
||||
final PlayerInstance player = World.getInstance().getPlayer(_objectId);
|
||||
if (player != null)
|
||||
{
|
||||
if (((_chatType == ChatType.CLAN) || (_chatType == ChatType.ALLIANCE)) && (player.getClan() != null))
|
||||
if ((player.getClan() != null) && ((_chatType == ChatType.CLAN) || (_chatType == ChatType.ALLIANCE)))
|
||||
{
|
||||
packet.writeC(player.getClan().getCastleId());
|
||||
packet.writeC(0); // unknown clan byte
|
||||
}
|
||||
|
||||
final int rank = RankManager.getInstance().getPlayerGlobalRank(player);
|
||||
@ -220,6 +220,15 @@ public class CreatureSay implements IClientOutgoingPacket
|
||||
{
|
||||
packet.writeC(3);
|
||||
}
|
||||
|
||||
if (player.getClan() != null)
|
||||
{
|
||||
packet.writeC(player.getClan().getCastleId());
|
||||
}
|
||||
else
|
||||
{
|
||||
packet.writeC(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user