Browse Source

More itembase refactor work

combat-2
MagicBot 8 months ago
parent
commit
8b98a3f2a1
  1. 8
      src/engine/net/client/msg/ManageNPCMsg.java

8
src/engine/net/client/msg/ManageNPCMsg.java

@ -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);

Loading…
Cancel
Save