[Release] Silkroad lua scripts - new quests & more

05/15/2018 22:00 Stratti#106
Quote:
Originally Posted by lamuathu1989 View Post
reupload
Wat?
Links are still working.
02/14/2019 11:58 david2511#107
hi
Help Pls. When i am about to accept quest, client close. Can you tell me where i was wrong? Ty for sharing.
04/21/2019 23:11 bfwpain#108
My Quest Name is blank with all the supporting files updated. any ideas?
04/25/2019 18:41 guckguck#109
It might be a problem with end character formatting of your textfiles.
I would recommend you to get notepad++ and display the end characters of your file:
[Only registered and activated users can see links. Click Here To Register...]

Make sure you got a "CRLF" at every line, no ending with "LF" only. If you want to remove every single "LF" entry, simply follow this procedure:
[Only registered and activated users can see links. Click Here To Register...]

- Search for "\r\n"
- Replace with a non used set of chars like "ÜÜÜ"
- Search for "\n" and replace with space char
- Replace back "ÜÜÜ" to "\r\n"

Afterwards you should have every entry in each textfile seperated into a single line only. The old "\n" format chars will be gone in some item description and so on. You do not need them anymore, because text with will be limited automatically.

If it does not display anything please make sure you have lua entries matched to the textfile entries (SN_...).
04/25/2019 23:44 bfwpain#110
Quote:
Originally Posted by guckguck View Post
It might be a problem with end character formatting of your textfiles.
I would recommend you to get notepad++ and display the end characters of your file:
[Only registered and activated users can see links. Click Here To Register...]

Make sure you got a "CRLF" at every line, no ending with "LF" only. If you want to remove every single "LF" entry, simply follow this procedure:
[Only registered and activated users can see links. Click Here To Register...]

- Search for "\r\n"
- Replace with a non used set of chars like "ÜÜÜ"
- Search for "\n" and replace with space char
- Replace back "ÜÜÜ" to "\r\n"

Afterwards you should have every entry in each textfile seperated into a single line only. The old "\n" format chars will be gone in some item description and so on. You do not need them anymore, because text with will be limited automatically.

If it does not display anything please make sure you have lua entries matched to the textfile entries (SN_...).
Yep I found my problem, Since I converted my text over to english the spacing of the lines have to be exact and my spacing was off by one. and in normal notepad you couldn't see that i needed one more <tab> but I fixed the whole entire quest off of that suggestion. I was just used to editing the quick stuff in notepad. and not notepad++. so Thank you a whole lot!
05/02/2019 02:44 abdallaMohamed2#111
i have problem Describe NPC no have name in my game?
02/26/2020 22:13 Devsome#112
Thanks, good Tutorial
05/17/2020 16:44 MrCheToS#113
Nice <3
09/17/2020 03:20 ramo19#114
dostum bir görevde item verirken male famale itemi karakterın cinsine göre nasıl veiririm ?
01/07/2021 09:15 amazingback#115
Asome
01/29/2021 11:37 hunter2051#116
Quote:
Originally Posted by Stratti View Post
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
i tried but it did not work, can you help me.
Exception in thread "Main" java.lang.UnSupportClassVersion....v.....v....
01/29/2021 13:57 OKeks#117
Please check if you are using the right command:
[Only registered and activated users can see links. Click Here To Register...]

Otherwise I can also upload the quest files for you or you share your sct files.
Please also check your java version, with java 1.8 it is working.
01/30/2021 17:02 tubeo#118
Hi, sorry for dig it, I've done to add all futures as above, however in quest list its only appear "blank (0/1)" (please take a look at picture) how do i fix this issue, thank you :D
01/30/2021 17:06 OKeks#119
Quote:
Originally Posted by tubeo View Post
Hi, sorry for dig it, I've done to add all futures as above, however in quest list its only appear "blank (0/1)" (please take a look at picture) how do i fix this issue, thank you :D
It might be a problem with end character formatting of your textfiles.
I would recommend you to get notepad++ and display the end characters of your file:
Link

Make sure you got a "CRLF" at every line, no ending with "LF" only. If you want to remove every single "LF" entry, simply follow this procedure:
Link

- Search for "\r\n"
- Replace with a non used set of chars like "ÜÜÜ"
- Search for "\n" and replace with space char
- Replace back "ÜÜÜ" to "\r\n"

Afterwards you should have every entry in each textfile seperated into a single line only. The old "\n" format chars will be gone in some item description and so on. You do not need them anymore, because text with will be limited automatically.

If it does not display anything please make sure you have lua entries matched to the textfile entries (SN_...).
01/30/2021 18:35 tubeo#120
Quote:
Originally Posted by OKeks View Post
It might be a problem with end character formatting of your textfiles.
I would recommend you to get notepad++ and display the end characters of your file:
Link

Make sure you got a "CRLF" at every line, no ending with "LF" only. If you want to remove every single "LF" entry, simply follow this procedure:
Link

- Search for "\r\n"
- Replace with a non used set of chars like "ÜÜÜ"
- Search for "\n" and replace with space char
- Replace back "ÜÜÜ" to "\r\n"

Afterwards you should have every entry in each textfile seperated into a single line only. The old "\n" format chars will be gone in some item description and so on. You do not need them anymore, because text with will be limited automatically.

If it does not display anything please make sure you have lua entries matched to the textfile entries (SN_...).
Thank for your fast reply, but i don't really get it. Can you tell me which text file manage the name of quest on quest list tab ?