Hi .. I make my personal editor that use monster.exe...I put only the batch but I give you an advice, to don't receive the error when you use the long path with monster you must usi a old apy of kernel that give you the path in dos format so you don't have problem.
The code is in vb.net
<DllImport("KERNEL32.DLL")> _
Private Shared Function GetShortPathName(ByVal longPath As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer) As Integer
End Function
this is the declaration of the function
in the code than you do
Dim sPath As New StringBuilder(256)
Dim sPath1 As New StringBuilder(256)
Dim oProcess As New Process
ofdForm.Filter = "dat|*.dat"
ofdForm.ShowDialog()
GetShortPathName(Application.StartupPath, sPath, sPath.Capacity)
GetShortPathName(ofdForm.FileName, sPath1, sPath1.Capacity)
oProcess.StartInfo = New ProcessStartInfo(sPath.ToString & "\monster.exe", "0 " & sPath1.ToString & " " & sPath.ToString & "\temp.txt")
oProcess.Start()
oProcess.WaitForExit()
oProcess.Close()
the ofdForm is a fileOpenDialog in this way you can have the file where you want without have the needed to have in local.
A I look your code (you don't obfuscate it, better you don't put the limit of the number of item you want edit, instead look the idem type and all the type different {"QuestItem", "Item", "Drug", "CommonItem", "GiftBox", "Furniture", "SkillBook", "Ore", "RareItem"}
you don't modify. For the Token you must see in the questitem and use the right order. For Gem look type Gem.
It's all