Skip to content

Commit

Permalink
Update PacketStructure.js
Browse files Browse the repository at this point in the history
Fixed #494
  • Loading branch information
MrAntares authored Nov 6, 2024
1 parent 1159b84 commit 04e14a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Network/PacketStructure.js
Original file line number Diff line number Diff line change
Expand Up @@ -11458,15 +11458,14 @@ define(['Utils/BinaryWriter', './PacketVerManager', 'Utils/Struct', 'Core/Config
this.ItemInfo = (function() {
var i, count = (end - fp.tell()) / 31 | 0,
out = new Array(count);
var flag;
for (i = 0; i < count; ++i) {
out[i] = {};
out[i].index = fp.readShort();
out[i].ITID = fp.readUShort();
out[i].type = fp.readUChar();
out[i].IsIdentified = fp.readUChar();
out[i].location = fp.readUShort();
out[i].WearState = fp.readUShort();
out[i].IsDamaged = fp.readUChar();
out[i].location = fp.readULong();
out[i].WearState = fp.readULong();
out[i].RefiningLevel = fp.readUChar();
out[i].slot = {};
out[i].slot.card1 = fp.readUShort();
Expand All @@ -11476,9 +11475,10 @@ define(['Utils/BinaryWriter', './PacketVerManager', 'Utils/Struct', 'Core/Config
out[i].HireExpireDate = fp.readLong();
out[i].bindOnEquipType = fp.readUShort();
out[i].wItemSpriteNumber = fp.readUShort();

// What is it for ?
fp.seek(3, SEEK_CUR);
flag = fp.readUChar();
out[i].IsIdentified = flag & 1;
out[i].IsDamaged = flag & 2;
out[i].PlaceETCTab = flag & 4;
}
return out;
})();
Expand Down

0 comments on commit 04e14a3

Please sign in to comment.