I was a player of Silkroad Online but since I've quit I've been playing/trying other mmos til I found Altlantica Online.
I saw one post (maybe done in ancient times) that someone wanted to decrypt ndt files and so I did my try.
Perhaps you all have one already but anyway, I was willing to share.
It's made in Python and I did it in one day.
Code:
from Tkinter import *
from tkFileDialog import askopenfilename
import struct
filename = askopenfilename()
if len(filename) == 0:
exit()
outputfilename = filename[:-4] + '.txt'
f = open(filename, 'rb')
buf = f.read()
f.close()
HEADER_SIZE = 0x18
seed = struct.unpack('<H', buf[12:14])[0]
output = []
for i in xrange(HEADER_SIZE, len(buf)-1):
v = struct.unpack('<B', buf[i])[0]
v -= seed
v = v & 0xFF
b2 = struct.unpack('<B', buf[i+1])[0]
x = v ^ b2
output.append(x)
f = open(outputfilename, 'wb')
for v in output:
f.write(struct.pack('B', v)[0])
f.close()
exit()
).Anyway, I think the code it's not so complicated to follow.
Note: this script, will EAT the last byte of the file, hehe... but it's nice for a first release.
Note2: if you think this is useful I could work on it further.






