|
|
|
@ -476,15 +476,29 @@ public class ManageNPCMsg extends ClientNetMsg {
@@ -476,15 +476,29 @@ public class ManageNPCMsg extends ClientNetMsg {
|
|
|
|
|
else |
|
|
|
|
writer.putInt(-1497023830); |
|
|
|
|
|
|
|
|
|
if ((prefix != null && !item.isRandom()) || (prefix != null && item.isComplete())) |
|
|
|
|
writer.putInt(prefix.getToken()); |
|
|
|
|
else |
|
|
|
|
writer.putInt(0); |
|
|
|
|
if (item.prefixToken == 0) { |
|
|
|
|
if (!item.isComplete()) |
|
|
|
|
writer.putInt(0); |
|
|
|
|
else |
|
|
|
|
writer.putInt(prefix.getToken()); |
|
|
|
|
} else { |
|
|
|
|
if (prefix != null) |
|
|
|
|
writer.putInt(prefix.getToken()); |
|
|
|
|
else |
|
|
|
|
writer.putInt(0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((suffix != null && !item.isRandom()) || (suffix != null && item.isComplete())) |
|
|
|
|
writer.putInt(suffix.getToken()); |
|
|
|
|
else |
|
|
|
|
writer.putInt(0); |
|
|
|
|
if (item.suffixToken == 0) { |
|
|
|
|
if (!item.isComplete()) |
|
|
|
|
writer.putInt(0); |
|
|
|
|
else |
|
|
|
|
writer.putInt(suffix.getToken()); |
|
|
|
|
} else { |
|
|
|
|
if (suffix != null) |
|
|
|
|
writer.putInt(suffix.getToken()); |
|
|
|
|
else |
|
|
|
|
writer.putInt(0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
writer.putString(item.name); |
|
|
|
|
} |
|
|
|
|