[Release] Silkroad lua scripts - new quests & more

03/23/2015 09:41 Xavius Nemesis#76
original knight-captain quest in this file? or i need edit from game server?
03/24/2015 10:34 Duty*#77
Thanks for release
05/07/2015 18:55 raptter#78
wanna make daily quest from where to edit this setting
answer me please ty :)
05/09/2015 22:57 Timlock#79
Quote:
Originally Posted by blapanda View Post
Aha, yeah, whatever your problem is, have fun with it.
Mastering the art of whatever by recalling the nonsense that people spreading here from other threads. If acting against such sounds stupid to you, than you are the only one who thinks that way.
Other than that, don't prejudice or judge without previous context, or if you didn't understand anything related to the recalled point.
If you where not a dick about it, I would of given you the answer... and its very very simple... I guess however not every idiot can figure it out.
02/14/2016 08:54 Black Shield#80
Hello guys any body still here

i trying to add new Quest but the problem is, it dose not appear at the NPC
the Quest File in the topic (Vsro new) have 637 file for 637 Quest
and my Database _RefQuest Got 1042 Quest without my new Quest
GameServer.exe (Loading Logs)
[Only registered and activated users can see links. Click Here To Register...]
05/29/2016 14:08 Stratti#81
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
05/30/2016 21:15 Bocc1337#82
thx was looking for something like this.
11/04/2016 23:38 spinal2#83
Thanks Alot
11/06/2016 19:11 lepitismak#84
I can put more than one requirement in each quest? For example:

Kill 10x mob A
Kill 10x mob B

?
11/06/2016 19:57 blapanda#85
Quote:
Originally Posted by lepitismak View Post
I can put more than one requirement in each quest? For example:

Kill 10x mob A
Kill 10x mob B

?
Yes, you can.

[Only registered and activated users can see links. Click Here To Register...]

Should be self explanatory.
11/06/2016 20:54 lepitismak#86
Quote:
Originally Posted by blapanda View Post
Yes, you can.

[Only registered and activated users can see links. Click Here To Register...]

Should be self explanatory.

Thank you very much
I will do this.

About the awards, I Brochure Add more than one? A roller for example.

Quote:
Originally Posted by blapanda View Post
Yes, you can.

[Only registered and activated users can see links. Click Here To Register...]

Should be self explanatory.
in this case it shows quest to collect certain item of the mob. in my case I need to account for the kill.

100x The mob
100x mob B

You know how to do this?

you use this: "MISSION_TYPE_GATHER_ITEM_FROM_MONSTER"
i will use this: "MISSION_TYPE_KILL_MONSTER"

and when i use this with mutiple mobs quest dont show on npc
11/06/2016 22:49 spinal2#87

Its a Hard Work to do, due need be a large pool with others Luamission.

I can do it for you for $USD !
12/20/2016 01:32 H34D_B4NG3R#88
You ppl are amazing asking money for some shit you can figure out in 2 minutes, opening random lua scripts. You can bind all the files into one and go through all of them really fast..hard work really

Now to add conditions like kill 100 x mob a, kill 100x mob b

LuaSetMissionData_EX(QUESTID, 0, MISSION_TYPE_KILL_MONSTER, "SN_CON_QNO_TEST_QUEST", 1, "MOB_A", 0, 100, 0, 1)
LuaSetMissionData_EX(QUESTID, 0, MISSION_TYPE_KILL_MONSTER, "SN_CON_QNO_TEST_QUEST", 1, "MOB_B", 0, 100, 0, 1)
01/14/2017 02:58 sonniboy#89
Just in case someone is wondering how to let the quests show up on Help-Questlist. It's the gameguidedata.txt :)
01/19/2017 12:09 guckguck#90
Quote:
Originally Posted by Stratti View Post
Hello,
...
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
Hi Stratti, your tool is working smoothly for quests and list files.
Using it to decode the event.sct will fail for me with a string out of index error. Could you please check it?

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]