Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing a new Diablo II CDKey Changer
#1
I'm trying to make a CDKey Changer in Visual Basic but I'm very nOOb in programming.
I already know that :

d2sfx.mpq\data\global\sfx\cursor\curindx.wav ( User Name )
d2sfx.mpq\data\global\sfx\cursor\wavindx.wav ( Regular key )
d2char.mpq\data\global\chars\am\cof\amblxbow.cof ( Expansion key )


What i must do:
1.Make the GUI
2.Exctact the files from mpq files
3.Read the files
4.Edit the files
5.Compress the files in mpq files

1 & 2 done
3 not done (the files are encrypted)
4 & 5 easy to be done (but not done)

Does anyone knows how can i decrypt the files so i can read and edit them?
Maybe there is a open source (in VB) or a Componet that i can use.


Thanks in advance.
Reply
#2
Well first of, why make a new one? The old works just fine.
Reply
#3
I have no experiance modifying MPQ files myself.. you can take a look at this page. I know that some game image files can easily be opened and edited with WinRar (used to do it in GunZ Online)... but I cannot remember how.

I will get back to you after looking into it more.
Reply
#4
Get win MPQ. You can find it Here. Woth it you can look in MPQ files, Get stuff out of them, and even out things in.
[SIGPIC][/SIGPIC]
Reply
#5
Quote:Well first of, why make a new one? The old works just fine.
The old one doesn't change to CD Key inside the mpq files but creates a new one cdkey.mpq

Quote:I have no experiance modifying MPQ files myself..
I already found a way to extract and insert files to mpq files.

The only thing i want to know is how to decrypt the text inside the files (curindx.wav, wavindx.wav, amblxbow.cof) so i can read and edit them.

I think i has something to do with storm.dll, but i am not sure, and i can't import this dll as a referance in Visual Basic.
Reply
#6
Code:
a = LoadLibrary("storm.dll")
GetProcAddress(a,"FunctionName")

thats how you would import a function in VB. obviously it would be wise to read the registry to find out where d2 is installed then use that path + "storm.dll" in LoadLibrary. But if you wanted to save work you could just put the program in the d2 folder and use

Code:
public declare function "FunctionName" lib "Storm.dll" (ByVal Param1 as datatype, ByVal Param2 as datatype)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  d2nt doesn't kill diablo Shembleton 2 576 06-12-2012, 03:12 PM
Last Post: comper
  won't kill diablo or baal ortho 1 174 06-12-2012, 03:09 PM
Last Post: comper
  Complete Diablo 2 Unique Pickit script for D2Nt bot Jammer74 68 32,368 05-03-2012, 07:01 AM
Last Post: comper
  Original Diablo Script + TP? namp 1 213 03-06-2012, 09:11 AM
Last Post: comper
  Baal and Diablo scripts Pube89 9 360 01-26-2012, 06:13 AM
Last Post: comper
  im looking for a bot (diablo 2 1.13d) bobyjinjin 1 923 01-23-2012, 09:54 PM
Last Post: comper
  D2nt closes diablo fully after every run cormin 2 379 12-08-2011, 07:02 AM
Last Post: qqwweerr
  Help with writing a SCRIPT rustabusta 1 1,184 09-22-2011, 02:48 PM
Last Post: bugme143
  Diablo 2 LOD 1.13c MapHack - D2MR (Clean/Undetected) DNA64 10 117,622 08-28-2011, 07:08 AM
Last Post: Midnight
  MF-Rush-Leech-AuraStack bot & Kuk Bot FOR Diablo 2-1.13c zakarumes 0 614 08-28-2011, 12:06 AM
Last Post: zakarumes

Forum Jump:


Users browsing this thread: 1 Guest(s)