|
|
@ -513,17 +513,17 @@ public class OpenFriendsCondemnListMsg extends ClientNetMsg { |
|
|
|
|
|
|
|
|
|
|
|
writer.put((byte) 1); |
|
|
|
writer.put((byte) 1); |
|
|
|
|
|
|
|
|
|
|
|
switch (condemned.getFriendType()) { |
|
|
|
switch (condemned.friendType) { |
|
|
|
case 2: |
|
|
|
case 2: |
|
|
|
PlayerCharacter playerCharacter = (PlayerCharacter) DbManager.getObject(engine.Enum.GameObjectType.PlayerCharacter, condemned.getPlayerUID()); |
|
|
|
PlayerCharacter playerCharacter = (PlayerCharacter) DbManager.getObject(engine.Enum.GameObjectType.PlayerCharacter, condemned.playerUID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
guild = playerCharacter.getGuild(); |
|
|
|
guild = playerCharacter.getGuild(); |
|
|
|
writer.putInt(GameObjectType.PlayerCharacter.ordinal()); |
|
|
|
writer.putInt(GameObjectType.PlayerCharacter.ordinal()); |
|
|
|
writer.putInt(condemned.getPlayerUID()); |
|
|
|
writer.putInt(condemned.playerUID); |
|
|
|
writer.putInt(condemned.getFriendType()); |
|
|
|
writer.putInt(condemned.friendType); |
|
|
|
writer.putInt(GameObjectType.PlayerCharacter.ordinal()); |
|
|
|
writer.putInt(GameObjectType.PlayerCharacter.ordinal()); |
|
|
|
writer.putInt(condemned.getPlayerUID()); |
|
|
|
writer.putInt(condemned.playerUID); |
|
|
|
writer.putInt(0); |
|
|
|
writer.putInt(0); |
|
|
|
writer.putInt(0); |
|
|
|
writer.putInt(0); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
@ -531,9 +531,9 @@ public class OpenFriendsCondemnListMsg extends ClientNetMsg { |
|
|
|
writer.putInt(guild.getObjectUUID()); |
|
|
|
writer.putInt(guild.getObjectUUID()); |
|
|
|
else |
|
|
|
else |
|
|
|
writer.putInt(0); |
|
|
|
writer.putInt(0); |
|
|
|
writer.put(condemned.isActive() ? (byte) 1 : (byte) 0); |
|
|
|
writer.put(condemned.active ? (byte) 1 : (byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put(condemned.isActive() ? (byte) 1 : (byte) 0); |
|
|
|
writer.put(condemned.active ? (byte) 1 : (byte) 0); |
|
|
|
|
|
|
|
|
|
|
|
if (playerCharacter != null) |
|
|
|
if (playerCharacter != null) |
|
|
|
writer.putString(playerCharacter.getFirstName()); |
|
|
|
writer.putString(playerCharacter.getFirstName()); |
|
|
@ -547,16 +547,16 @@ public class OpenFriendsCondemnListMsg extends ClientNetMsg { |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
case 4: |
|
|
|
guild = Guild.getGuild(condemned.getGuildUID()); |
|
|
|
guild = Guild.getGuild(condemned.guildUID); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(condemned.getGuildUID()); |
|
|
|
writer.putInt(condemned.guildUID); |
|
|
|
writer.putInt(condemned.getFriendType()); |
|
|
|
writer.putInt(condemned.friendType); |
|
|
|
writer.putLong(0); |
|
|
|
writer.putLong(0); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(condemned.getGuildUID()); |
|
|
|
writer.putInt(condemned.guildUID); |
|
|
|
writer.putLong(0); |
|
|
|
writer.putLong(0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put(condemned.isActive() ? (byte) 1 : (byte) 0); |
|
|
|
writer.put(condemned.active ? (byte) 1 : (byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
if (guild != null) |
|
|
|
if (guild != null) |
|
|
|
writer.putString(guild.getName()); |
|
|
|
writer.putString(guild.getName()); |
|
|
@ -570,17 +570,17 @@ public class OpenFriendsCondemnListMsg extends ClientNetMsg { |
|
|
|
GuildTag._serializeForDisplay(GuildTag.ERRANT, writer); |
|
|
|
GuildTag._serializeForDisplay(GuildTag.ERRANT, writer); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
case 5: |
|
|
|
guild = Guild.getGuild(condemned.getGuildUID()); |
|
|
|
guild = Guild.getGuild(condemned.guildUID); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(condemned.getGuildUID()); |
|
|
|
writer.putInt(condemned.guildUID); |
|
|
|
writer.putInt(condemned.getFriendType()); |
|
|
|
writer.putInt(condemned.friendType); |
|
|
|
writer.putLong(0); |
|
|
|
writer.putLong(0); |
|
|
|
writer.putLong(0); |
|
|
|
writer.putLong(0); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(GameObjectType.Guild.ordinal()); |
|
|
|
writer.putInt(condemned.getGuildUID()); |
|
|
|
writer.putInt(condemned.guildUID); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put(condemned.isActive() ? (byte) 1 : (byte) 0); |
|
|
|
writer.put(condemned.active ? (byte) 1 : (byte) 0); |
|
|
|
if (guild != null) |
|
|
|
if (guild != null) |
|
|
|
writer.putString(guild.getName()); |
|
|
|
writer.putString(guild.getName()); |
|
|
|
else |
|
|
|
else |
|
|
|