PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static string FilePath = @"C:/";
static void Main()
{
using (BinaryReader Reader = new BinaryReader(new FileStream(FilePath + @"MagicType.dat", FileMode.Open)))
{
TextWriter TW = new StreamWriter(@"C:\MagicType.txt");
uint TotalSpells = Reader.ReadUInt32();
TW.WriteLine("Total Spells: " + TotalSpells);
TW.WriteLine();
for (int i = 0; i < TotalSpells; i++)
{
TW.WriteLine("ID: " + Reader.ReadUInt16());
TW.WriteLine("Type: " + Reader.ReadByte());
TW.WriteLine("Sort: " + Reader.ReadUInt32());
TW.WriteLine("Name: " + Reader.ReadByte());
TW.WriteLine();
}
TW.Close();
Reader.Close();
}
Console.WriteLine("Decryption Done!");
Console.ReadLine();
}
}
}
Here's a part of the decrypted content:
Code:
Total Spells: 655 ID: 10000 Type: 0 Sort: 2560256 Name: 0 ID: 10002 Type: 0 Sort: 2560768 Name: 0 ID: 10004 Type: 0 Sort: 2562560 Name: 0 ID: 10011 Type: 0 Sort: 2563072 Name: 0 ID: 10013 Type: 0 Sort: 2565120 Name: 0 ID: 10021 Type: 0 Sort: 2565632 Name: 0 ID: 10023 Type: 0 Sort: 2572800 Name: 0 ID: 10051 Type: 0 Sort: 2573312 Name: 0 ID: 10053 Type: 0 Sort: 2573824 Name: 0 ID: 10100 Type: 0 Sort: 2598400 Name: 0