|
|
|
@ -96,7 +96,7 @@ public class ManageNPCMsg extends ClientNetMsg {
@@ -96,7 +96,7 @@ public class ManageNPCMsg extends ClientNetMsg {
|
|
|
|
|
writer.putString("A weapon suited to laying siege"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void serializeGuardList(ByteBufferWriter writer, int minion) { |
|
|
|
|
private static void serializeGuardList(ByteBufferWriter writer, int minion, Mob captain) { |
|
|
|
|
|
|
|
|
|
writer.putInt(1); |
|
|
|
|
|
|
|
|
@ -106,7 +106,7 @@ public class ManageNPCMsg extends ClientNetMsg {
@@ -106,7 +106,7 @@ public class ManageNPCMsg extends ClientNetMsg {
|
|
|
|
|
writer.putInt(minion); |
|
|
|
|
writer.putInt(1); |
|
|
|
|
writer.putInt(minion); |
|
|
|
|
writer.putInt(1); |
|
|
|
|
writer.putInt(captain.getRank());//minion rank
|
|
|
|
|
writer.put((byte) 0); |
|
|
|
|
|
|
|
|
|
writer.putInt(600); //roll time
|
|
|
|
@ -669,7 +669,7 @@ public class ManageNPCMsg extends ClientNetMsg {
@@ -669,7 +669,7 @@ public class ManageNPCMsg extends ClientNetMsg {
|
|
|
|
|
ConcurrentHashMap<Mob, Integer> siegeMinions = mobA.getSiegeMinionMap(); |
|
|
|
|
|
|
|
|
|
writer.putInt(siegeMinions.size() + 1); |
|
|
|
|
serializeGuardList(writer, mobA.getContract().getContractID()); //Guard
|
|
|
|
|
serializeGuardList(writer, mobA.getContract().getContractID(), mobA); //Guard
|
|
|
|
|
|
|
|
|
|
if (siegeMinions != null && siegeMinions.size() > 0) |
|
|
|
|
|
|
|
|
|