Script by aluigi
Game: Dark Blood Online
For unpack you need QuickBMS Tool.
PHP Code:
# Dark Blood Online
# script for QuickBMS http://quickbms.aluigi.org
#idstring "P\0P\0K\0\0"
goto 0x218
get HEAD_SIZE long
savepos BASE_OFF
math BASE_OFF += HEAD_SIZE
get FILES long
get DUMMY long
get DUMMY byte
get DUMMY short
get DUMMY long
for i = 0 < FILES
callfunction GET_UGLYSTRING 1
set NAME string TMPNAME
callfunction GET_UGLYSTRING 1
get CRC long
get ZSIZE long
get SIZE long
get OFFSET long
get DUMMY byte
if DUMMY != 1
print "DUMMY != 1: contact me"
cleanexit
endif
math OFFSET += BASE_OFF
log NAME OFFSET SIZE
next i
startfunction GET_UGLYSTRING
math NAMESZ = 0
math j = 0
do
get T byte
math TMP = T
math TMP &= 0x7f
math TMP2 = j
math TMP2 *= 7
math TMP <<= TMP2
math NAMESZ += TMP
math j += 1
while T <= 0x7f
getdstring TMPNAME NAMESZ
set TMPNAME unicode TMPNAME
endfunction
HOW TO Use:
- Run QuickBMS
- Select script
- Select file for unpack
- Select dir to unpack
- Enjoy