Code:
.Const
MapObj DD 5777628h
DirPathObj DD 61D4FC0h
.Data
Lorencia DB "Terrain01.att"
Dungeon DB "Terrain02.att"
Devias DB "Terrain03.att"
MapDefineItem DD 00403D05h
GetPathName DD 0040332Dh
LoadMap DD 004039D6h
AddMaps Proc
Local Counter:Dword
push ebx
push esi
push edi
mov Counter, 0
jmp LoadLorencia
Checker:
cmp Counter, 1
je LoadDungeon
cmp Counter, 2
je LoadDevias
LoadLorencia:
mov eax, Counter
imul eax, eax, 50698h
add eax, MapObj
call MapDefineItem
mov ecx, Counter
push ecx
lea edx, Lorencia
push edx
mov ecx, DirPathObj
call GetPathName
push eax
mov edx, Counter
imul edx, edx, 50698
add edx, MapObj
Call LoadMap
mov eax, Counter
add eax, 1
mov Counter, eax
jmp Checker
LoadDungeon:
mov eax, Counter
imul eax, eax, 50698h
add eax, MapObj
call MapDefineItem
mov ecx, Counter
push ecx
lea edx, Dungeon
push edx
mov ecx, DirPathObj
call GetPathName
push eax
mov edx, Counter
imul edx, edx, 50698
add edx, MapObj
Call LoadMap
mov eax, Counter
add eax, 1
mov Counter, eax
jmp Checker
LoadDevias:
mov eax, Counter
imul eax, eax, 50698h
add eax, MapObj
call MapDefineItem
mov ecx, Counter
push ecx
lea edx, Devias
push edx
mov ecx, DirPathObj
call GetPathName
push eax
mov edx, Counter
imul edx, edx, 50698
add edx, MapObj
Call LoadMap
mov eax, Counter
add eax, 1
mov Counter, eax
jmp Checker
Well and like that you can add all maps including kantru and all the shit you like too ¬¬, anyway no need hex edit or nothing just add to DLL and be happy xD.