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
    64
    Thanked 525 Times in 205 Posts
    Rep Power
    8

    Elsword KOM Unpack Script

    Script by aluigi
    Game: Elsword

    For unpack you need QuickBMS Tool.

    PHP Code:
    # KOM archives (Elsword, GrandChase) 0.1.1
    # script for QuickBMS http://quickbms.aluigi.org

    quickbmsver 0.4.6a
    idstring 
    "KOG "
    get SIGN string
    set VER string SIGN
    string VER 
    &= "V."
    string VER -= -5
    string SIGN 
    >>= " MASSFILE"
    goto 0x34
    get FILES long

    if VER == "V.0.1"   # it's the same of 0.2
        
    set VER string "V.0.2"
    endif

    if 
    SIGN == "THINCLIENT"
        
    if VER == "V.0.2"
            
    get DUMMY long
            get SIZE long
            get DUMMY long
            savepos OFFSET
            math OFFSET 
    += SIZE
            
    for FILES
                get DUMMY long
            next i
        
    else
            print 
    "Error: unsupported KOM version (%VER% / %SIGN%)"
            
    cleanexit
        
    endif

        for 
    FILES
            get NAMESZ byte
            getdstring NAME NAMESZ
            get SIZE long
            get ZSIZE long
            get ZIP byte
            
    if ZIP == 0
                log NAME OFFSET SIZE
            
    else
                
    clog NAME OFFSET ZSIZE SIZE
            
    endif
            
    math OFFSET += ZSIZE
        next i
    else
        if 
    VER == "V.0.2"
            
    get DUMMY long
            savepos BASE_OFF
            math TMP 
    FILES
            math TMP 
    *= 0x48
            math BASE_OFF 
    += TMP
        elif VER 
    == "V.0.3"
            
    get DUMMY long
            getdstring DUMMY 8
            get XMLSZ long
            savepos OFFSET
            log MEMORY_FILE OFFSET XMLSZ
            math OFFSET 
    += XMLSZ
        elif VER 
    == "V.0.4"
            
    get KEY long
            getdstring DUMMY 8
            get XMLSZ long
            savepos OFFSET
            
    if KEY == 0xb290207
                set KEY long 0x6e0acdeb 
    # 64bit number (%lld)
            
    else
                print 
    "Error: unkown relative key value (%KEY%)"
                
    cleanexit
            
    endif
            
    encryption sha1 ""
            
    string KEY EKEY
            encryption bf_ecb QUICKBMS_HASH 
    "" 0 20
            log MEMORY_FILE OFFSET XMLSZ
            encryption 
    "" ""
            
    math OFFSET += XMLSZ
        
    else
            print 
    "Error: unsupported KOM version (%VER% / %SIGN%)"
            
    cleanexit
        
    endif

        for 
    FILES
            
    if VER == "V.0.2"
                
    getdstring NAME 0x3c
                get SIZE long
                get ZSIZE long
                get OFFSET long
                math OFFSET 
    += BASE_OFF
                set ALGO long 0
            
    else
                
    findloc TMP string "Name=" MEMORY_FILE
                math TMP 
    += 4
                
    goto TMP MEMORY_FILE
                
    for 6
                    findloc TMP string 
    "=" MEMORY_FILE
                    math TMP 
    += 2
                    
    goto TMP MEMORY_FILE
                    getct TMP string 0x22 MEMORY_FILE
                    putarray 0 j TMP
                next j

                getarray NAME 0 0
                getarray SIZE 0 1
                getarray ZSIZE 0 2
                getarray ALGO 0 5
            
    endif

            if 
    ALGO == 0
                clog NAME OFFSET ZSIZE SIZE
            
    else
                print 
    "unknown algorithm %ALGO%, contact me"
                
    cleanexit
            
    endif
            
    math OFFSET += ZSIZE
        next i
    endif 
    HOW TO Use:

    1. Run QuickBMS
    2. Select script
    3. Select file for unpack
    4. Select dir to unpack
    5. Enjoy
    Last edited by h4x0r; 2012-08-21 at 07:01 PM.

  2. The Following User Says Thank You to h4x0r For This Useful Post:


Similar Threads

  1. [Info] Lunia CFP / CPV Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-15, 02:49 PM
  2. [Info] HuoShi PAK Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-10, 12:57 PM
  3. [Info] DK Online XAC Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-08, 09:31 PM
  4. [Info] ShotOnline SOR Unpack Script
    By h4x0r in forum Game Files
    Replies: 0
    Last Post: 2012-02-04, 06:23 PM
  5. Elsword online
    By jonathanvduppen in forum Other MMO
    Replies: 0
    Last Post: 2011-07-17, 08:31 AM
Visitors found this page by searching for:

elsword unpack

elsword kopelsword trainerkom unpackelsword kop fileelsword scriptelsword kop filesscript elswordpowered by vBulletin japanese mathematicselsword kom unpackerelsword unpackerelsword .kopquickbms 0.4.6a downloaderro de script elswordelsword japanese voice kopelsword .kop fileselsword japanese voice downloadelsword offsetelsword find offsetelsword jpn voice pack downloadelsword client script.kop packelsword Pack kopkom unpacker downloadedit elsword kom

Posting Permissions

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