|
|
|
@ -421,12 +421,12 @@ public class ManageNPCMsg extends ClientNetMsg {
@@ -421,12 +421,12 @@ public class ManageNPCMsg extends ClientNetMsg {
|
|
|
|
|
//Begin Item list for creation.
|
|
|
|
|
writer.putInt(rollableSet.size()); |
|
|
|
|
|
|
|
|
|
for (int ib : rollableSet) { |
|
|
|
|
ItemBase item = ItemBase.getItemBase(ib); |
|
|
|
|
ItemTemplate template = ItemTemplate.itemTemplates.get(ib); |
|
|
|
|
for (int templateID : rollableSet) { |
|
|
|
|
ItemBase item = ItemBase.getItemBase(templateID); |
|
|
|
|
ItemTemplate template = ItemTemplate.itemTemplates.get(templateID); |
|
|
|
|
writer.put((byte) 1); |
|
|
|
|
writer.putInt(0); |
|
|
|
|
writer.putInt(ib); //itemID
|
|
|
|
|
writer.putInt(templateID); //itemID
|
|
|
|
|
writer.putInt(template.item_value); |
|
|
|
|
writer.putInt(600); |
|
|
|
|
writer.put((byte) 1); |
|
|
|
|