Newbie Spellweaver
- Joined
- Apr 23, 2011
- Messages
- 84
- Reaction score
- 5
hey,
i have a problem with reading the mobname.lod file...
Only the first 4 Mobnames are correctly readed, the rest is bugged.
Script:
This is the Result:
Can someone help me to fix that?
Fabi
i have a problem with reading the mobname.lod file...
Only the first 4 Mobnames are correctly readed, the rest is bugged.
Script:
PHP:
#include <array.au3>
Dim $MobName[1]
$number = 1
$File = FileOpen(@ScriptDir & '\data\mobname_ger.lod', 16)
$Read = FileRead($File)
FileClose($File)
$result = StringTrimLeft($Read, 18)
Do
$num = StringLeft($result, 2) //Reading the Mobname size
$result = StringTrimLeft($result, 8) //removing the mobname size
_ArrayAdd($MobName, BinaryToString("0x" & StringLeft($result, $num*2))) //Reading mobname
$result = StringTrimLeft($result, $num *2 +8) //removing mobname + Monster ID
$number = $number +1
Until $number = 500
_ArrayDisplay($MobName)
This is the Result:
Can someone help me to fix that?
Fabi