|
|
|
@ -430,19 +430,10 @@ public class ManageNPCMsg extends ClientNetMsg {
@@ -430,19 +430,10 @@ public class ManageNPCMsg extends ClientNetMsg {
|
|
|
|
|
} |
|
|
|
|
ArrayList<MobLoot> itemList = npc.getRolling(); |
|
|
|
|
|
|
|
|
|
if (itemList.isEmpty()) |
|
|
|
|
writer.putInt(0); |
|
|
|
|
else { |
|
|
|
|
if (itemList.size() < npc.getRank()) |
|
|
|
|
writer.putInt(itemList.size()); |
|
|
|
|
else |
|
|
|
|
writer.putInt(npc.getRank()); |
|
|
|
|
writer.putInt(itemList.size()); |
|
|
|
|
|
|
|
|
|
for (Item i : itemList) { |
|
|
|
|
|
|
|
|
|
if (itemList.indexOf(i) >= npc.getRank()) |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
ItemBase ib = i.getItemBase(); |
|
|
|
|
|
|
|
|
|
writer.put((byte) 0); // ? Unknown45
|
|
|
|
@ -495,7 +486,7 @@ public class ManageNPCMsg extends ClientNetMsg {
@@ -495,7 +486,7 @@ public class ManageNPCMsg extends ClientNetMsg {
|
|
|
|
|
|
|
|
|
|
writer.putString(i.getCustomName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
writer.putInt(0); |
|
|
|
|
writer.putInt(0); |
|
|
|
|