Posts: 82
Threads: 16
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2012
Reputation:
0
Hey,
I have searched searched but not find any help ^^ So I ask here, I want to read out the .lod files anyone know a way to do this with auto it? I think it can work with binary read and stringsplit so I tried it but only fails..
Greetz.
Posts: 768
Threads: 40
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2011
Reputation:
0
try to start with a simple file like mobname.lod
int MaxID
repeat until end of file {
int id
int namelength
string name
}
Posts: 82
Threads: 16
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2012
Reputation:
0
Okay I had tested a little bit and got this :
#include <array.au3>
Dim $MobName[1]
$number = 1
$File = FileOpen('mobname_usa.lod', 16)
$Read = FileRead($File)
FileClose($File)
$result = StringTrimLeft($Read, 18)
Do
$num = StringLeft($result, 2)
$result = StringTrimLeft($result, 8)
_ArrayAdd($MobName, BinaryToString("0x" & StringLeft($result, $num*2)))
$result = StringTrimLeft($result, $num *2 +8)
$number = $number +1
Until $number = 500
_ArrayDisplay($MobName)
not my work it's from fabi202cool copied
Posts: 82
Threads: 16
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2012
Reputation:
0
Your going to have to make your own classes for AutoIt as it doesn't read files by a specific criteria.
Hmm I don't know but I fail everytime, can you help me please how to do? any example would be great