So guys someone have a item decryptor working with old patches? I mean patches like 4267 or lower?
I really need one.
Thanks
I really need one.
Thanks
FileStream File = new FileStream(Constants.ItemTypePath, FileMode.Open);
BinaryReader Reader = new BinaryReader(File);
uint Amount = Reader.ReadUInt32();
ItemDetail _IDetail;
for (int i = 0; i < Amount; i++)
Reader.ReadUInt32();
for (int i = 0; i < Amount; i++)
{
_IDetail = new ItemDetail();
_IDetail.ID = Reader.ReadUInt32();
for (int x = 0; x < 16; x++)
{
_IDetail.Name += (char)Reader.ReadByte();
}
_IDetail.Name = _IDetail.Name.Trim('\0');
_IDetail.Class = Reader.ReadByte();
_IDetail.Prof = Reader.ReadByte();
_IDetail.Level = Reader.ReadUInt16();
_IDetail.Vit_Req = Reader.ReadUInt16();
_IDetail.Str_Req = Reader.ReadUInt16();
_IDetail.Dex_Req = Reader.ReadUInt16();
_IDetail.Spi_Req = Reader.ReadUInt16();
_IDetail.TradeType = (byte)Reader.ReadUInt32();
_IDetail.Price = Reader.ReadUInt32();
File.Seek(4, SeekOrigin.Current);
_IDetail.Damage_Max = Reader.ReadUInt16();
_IDetail.Damage_Min = Reader.ReadUInt16();
_IDetail.Defense_Add = Reader.ReadUInt16();
_IDetail.Dex_Add = Reader.ReadUInt16();
_IDetail.Dodge_Add = Reader.ReadUInt16();
_IDetail.HP_Add = Reader.ReadUInt16();
_IDetail.MP_Add = Reader.ReadUInt16(); ;
_IDetail.Dura = Reader.ReadUInt16();
_IDetail.MaxDura = Reader.ReadUInt16();
_IDetail.Magic_Attack = Reader.ReadUInt16();
_IDetail.MDefense_Add = Reader.ReadUInt16();
File.Seek(6, SeekOrigin.Current);
_IDetail.Range = (byte)Reader.ReadUInt16();
_IDetail.Frequency = Reader.ReadUInt16();
for (int x = 0; x < 16; x++)
{
_IDetail.Description += (char)Reader.ReadByte();
}
_IDetail.Description = _IDetail.Description.Trim('\0');
if (!_Itemdata.ContainsKey(_IDetail.ID))
_Itemdata.Add(_IDetail.ID, _IDetail);
File.Seek(112, SeekOrigin.Current);
}
BinaryWriter :) If you know the exact structure, you just have to rewrite it.Quote:
Thanks Kov I will try this script.
But also I have made an C# project to Read the .dat file.
And was a 60% success I mean:
1) The File was been loaded.
2) The Console was created a file with the itemtype
But How I how to revers it back?
To remake it .dat again?
HereQuote:
Thanks Kov I will try this script.
But also I have made an C# project to Read the .dat file.
And was a 60% success I mean:
1) The File was been loaded.
2) The Console was created a file with the itemtype
But How I how to revers it back?
To remake it .dat again?