Hello,
first of all, sorry for bumping this old thread!
Since I have received alot of requests on how to decompile the .sct files I will show you a simple way today.
You should know that the .sct files just contain compiled Lua bytecode. Nothing special. Most of you already tried
[Only registered and activated users can see links. Click Here To Register...] to decompile the files, but it gets confused. So we'll have to modify it's source code a bit.
However, instead of LuaDec I'll be using
[Only registered and activated users can see links. Click Here To Register...] (which is an open source Lua decompiler written in Java), which worked better for me.
The problem is that Quest.sct and Event.sct can contain multiple lua files.
So what I did is when a .sct contains multiple "root" functions, save each function to an individual file, otherwise save it into a single file. You can check the modifications by yourself in the attached source (modified files Main.java, LFunction.java, LFunctionType.java).
Keep in mind that this is a very dirty approach in my opinion and should only be used for decompiling silkroad's .sct files!
I have attached a compiled java binary so you can directly use it. I have also attached the modified source code so you can build it on your own.
Usage: java -jar unluac.jar <filetodecompile>
Sincerly yours,
Stratti