Results 1 to 1 of 1
  1. #1
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks Thanks Given 
    64
    Thanks Thanks Received 
    525
    Thanked in
    205 Posts
    Rep Power
    14

    HuoShi PAK Unpack Script

    Script by finale00
    Game: HuoShi

    For unpack you need QuickBMS Tool.

    PHP Code:
    #HuoShi PAK Unpacker

    comtype LZO1X
    get FOLDER_NAME filename

    #you can pass arguments to the function
    CallFunction Unpack 1 0 FOLDER_NAME

    #the actual function. Implement the recursive calls appropriately.
    StartFunction Unpack

       
    ###retrieve arguments like this###
       
    set BASE_OFFSET Unpack_arg1
       set FOLDER_NAME Unpack_arg2
       
    print "%BASE_OFFSET% %FOLDER_NAME%"
       
    #####################
       
    idstring "PAKF3001"
       
    get FSIZE long
       get FILES long

       
    for FILES do
          
    getdstring NAME 32
          get OFFSET long
          get SIZE long
          get IS_FOLDER long
          get unk2 long
          savepos BACK

          
    if IS_FOLDER 1
             
             
    #set up the folder name
             
    string NEW_FOLDER_NAME Unpack_arg2
             
    #you should be recursively calling the function here
             #unpack BASE_OFFSET NEW_FOLDER_NAME
          
    else
             goto 
    OFFSET
             getdstring header 2
             
    if header "NZ"
                
    get null short
                get SIZE long
                get ZSIZE long
                math OFFSET 
    += 12
                clog NAME OFFSET ZSIZE SIZE
             
    else
                
    log NAME OFFSET SIZE
             
    endif
          endif

          goto 
    BACK
       next i
    EndFunction 
    HOW TO Use:

    1. Run QuickBMS
    2. Select script
    3. Select file for unpack
    4. Select dir to unpack
    5. Enjoy

Similar Threads

  1. [Info] TZ Online EVP Unpack Script
    By h4x0r in forum Game Files
    Replies: 1
    Last Post: 2012-02-09, 05:13 AM
  2. [Info] DK Online XAC Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-08, 09:31 PM
  3. [Info] All Points Bulletin (APB) PCK Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-04, 06:30 PM
  4. [Info] ShotOnline SOR Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-04, 06:23 PM
  5. [Info] Maestia MVD Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-01-23, 05:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •