Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 11:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Re-Release] How to create your own quest

Discussion on [Re-Release] How to create your own quest within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Closed Thread
 
Old   #1
Trade Restricted

 
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
Arrow [Re-Release] How to create your own quest

So many people requested quest scripts or links
so here's old release by #MaDenGo & Stratti
Really helpful for newbie

Program you will need to Work with script program





If you already have This Program Good don't Download this:thumbup1:

Download:
Silkroad lua scripts:



1st step - lua scripts
Ok, first of all you'll have to create the lua script file for your new quest. To do that you create a new lua file in the "Quest" directory. I call it "@SN_QNO_TEST_QUEST.lua", but you can call it however you want I think. (I don't know if the "@" is really necessary but I'll be using it anyway)
Now open the file with any text editor (I'm using notepad++) and enter the following
PHP Code:
function QNO_TEST_QUEST() -- you should match this with your filename!
  
QUESTID LuaGetQuestID("QNO_TEST_QUEST") -- IMPORTANTmust match with the name in your database
  LuaSetStartCodition
(2QSC_QUESTQSC_LEVEL11)
  
QM_CONVERSATION 1
  LuaSetStartMethod
(QM_CONVERSATION1"NPC_CH_SMITH")
  
LuaInsertMissionOrCompleteNpc("NPC_CH_SMITH")
  
LuaQuestInsertNpc(1"NPC_CH_SMITH")
  
LuaSetAchievementLimit(1)
  
LuaSetMissionDataSize(QUESTID1)
  
LuaSetMissionData_EX(QUESTID0MISSION_TYPE_KILL_MONSTER"SN_CON_QNO_TEST_QUEST"1"MOB_CH_MANGNYANG"02001)
  
InsertQuestMenuStringList("NPC_CH_SMITH"8"BASIC_MENUSTRING_GREETING""SN_NPC_CH_POTION_QS""BASIC_MENUSTRING_REQUEST_ACCEPT_QUEST""SN_TALK_QNO_TEST_QUEST_01""BASIC_MENUSTRING_AT_ACCEPT""SN_TALK_QNO_TEST_QUEST_02""BASIC_MENUSTRING_AT_DENY""SN_TALK_QNO_TEST_QUEST_03""BASIC_MENUSTRING_NOT_ACHIEVED""SN_TALK_QNO_TEST_QUEST_04""BASIC_MENUSTRING_INVENTORY_FULL""SN_TALK_QNO_TEST_QUEST_05""BASIC_MENUSTRING_ACHIEVED""SN_TALK_QNO_TEST_QUEST_06""BASIC_MENUSTRING_ACHIEVED_NOW""SN_TALK_QNO_TEST_QUEST_07")
  
LuaSetMissionCompleteNum(0)
  
PAY_ITEM_METHOD_EXACT 1
  LuaSetAchievedItem
(17200001"ITEM_MALL_GLOBAL_CHATTING"10)
  
LuaSetAchievedSkillPont(0)
end 
I'm not going to explain the whole lua code, just a few tips:
- LuaGetQuestID("QNO_TEST_QUEST") must match with the quest name in your database!
- LuaSetStartCodition(2, QSC_QUEST, QSC_LEVEL, 1, 1) describes that the quest with the questId "1" & char level "1" is required to start the
quest
- LuaSetAchievedItem(1, 7200, 0, 0, 1, "ITEM_MALL_GLOBAL_CHATTING", 10) selfexplaining, if you finish the quest you'll get 7200 exp & 10 global chattings

Just look around in other quest files and it'll become clear.

Now save the file and open "QuestList.lua"
Add a new line to the end of the file with the following
PHP Code:
LuaInsertQuest(TYPE_ID"SN_QNO_TEST_QUEST.lua""QNO_TEST_QUEST"

The second & third parameter should of course match the filename & the function name of your quest!

Now, if you are done with that, execute make_questlist.bat and make_quest.bat. This should create two new files, QuestList.sct and Quest.sct. Copy them to YOURSERVER\Script\VIETNAM or YOURSERVER\Script\THAILAND if you are using black rogue files. (make sure you made a backup of the old files)

2nd step - database
Insert the following lines to the shard database:
_RefQuest
Code:
1	816	QNO_TEST_QUEST	0	<??>???? ??	SN_QNO_TEST_QUEST	SN_PAY_QNO_TEST_QUEST	xxx	SN_PAYCON_QNO_TEST_QUEST	SN_NN_QNO_TEST_QUEST	SN_NC_QNO_TEST_QUEST
QNO_TEST_QUEST should match your quest name!

_RefQuestReward
Code:
1	[ID] QNO_TEST_QUEST	1	1	1	0	0	0	0	0	7200	0	0	0	xxx	0	0	0	0	0	xxx	0	xxx	0	xxx
[ID] of _RefQuest table

_RefQuestRewardItems (only if item reward, in my case the reward will be 10 global chattings)
Code:
1	[ID] QNO_TEST_QUEST	0	ITEM_MALL_GLOBAL_CHATTING	xxx	0	10	xxx	0	xxx	0	xxx
[ID] of _RefQuest table
NOTE: If you want to reward multiple items then you'll also have to add multiple lines to the table. (of course, you'll have to modify the lua script too)

Ok, now you are done with the database! If you now start your gameserver you'll hopefully see a new quest initialization!


If you cannot see that, or it shows quest initialize[0][questname], then you have obviously did something wrong

3rd step - client
You have completely added a new quest now! Wait... but only server sided, you'll have to add the quest in the client too. I'm going to show you how to do that. (because I'm great, haha)
Anyways, just follow me, I'm not going to explain everything.

You have to insert a couple of lines. So let's start with the file:
(by the way all files are located at media\server_dep\silkroad\textdata)

questdata.txt
Code:
1	[ID]	QNO_TEST_QUEST	0	<??>???? ??	SN_QNO_TEST_QUEST	SN_PAY_QNO_TEST_QUEST	xxx	SN_PAYCON_QNO_TEST_QUEST	SN_NN_QNO_TEST_QUEST	SN_NC_TEST_QUEST
[ID] of _RefQuest table
Here too, match QNO_TEST_QUEST with your quest name!

questcontentsdata.txt
Code:
QNO_TEST_QUEST	0	0	xxx	1	SN_CON_QNO_TEST_QUEST	xxx	xxx	xxx	xxx	xxx	xxx	xxx	0	xxx	xxx	0
refqusetreward.txt
Code:
[ID]	QNO_TEST_QUEST	1	1	1	0	0	0	0	0	0	7200	0	0	0	xxx	0	0	0	0	xxx	0	xxx	0	xxx
[ID] column of _RefQuest table
Well, basically it's the same as _RefQuestReward table in your database.

refquestrewarditems.txt
Code:
[ID]	QNO_TEST_QUEST	0	ITEM_MALL_GLOBAL_CHATTING	xxx	xxx	0	10	0	xxx	0	xxx
[ID] column of _RefQuest table
It's the same as _RefQuestRewardItems in your database.
Remember, multiple item rewards = multiple lines!
See the number "10"? This is the amount of global chattings

textquest_queststring.txt
Code:
1	SN_TALK_QNO_TEST_QUEST_01	0	0	0	0	0	0	Kill 15 mangyangs lols.	0	0	0	0	0	0	0	
1	SN_TALK_QNO_TEST_QUEST_02	0	0	0	0	0	0	Good. I knew that you would agree to do this. I'll reward you more than enough, of course.	0 	0	0	0	0	0	0	
1	SN_TALK_QNO_TEST_QUEST_03	0	0	0	0	0	0	Hmm. I've misjudged you.	0	0	0	0	0	0	0	
1	SN_TALK_QNO_TEST_QUEST_04	0	0	0	0	0	0	Please kill a few more mangyangs please.	0	0	0	0	0	0	0	
1	SN_TALK_QNO_TEST_QUEST_05	0	0	0	0	0	0	I want to reward you but your inventory is full. Please dispose of some unneccessary items first. 	0	0	0	0	0	0	0	
1	SN_TALK_QNO_TEST_QUEST_06	0	0	0	0	0	0	Thank you. Now I can sleep well. This is your reward. Take this.	0 	0	0	0	0	0	0	
1	SN_TALK_QNO_TEST_QUEST_07	0	0	0	0	0	0	The hunting of Mangyangs is completed. Go and report to Chulsan.	0	0	0	0	0	0	0
These are the different tabs in the NPC, write whatever you want.

textquest_speech&name.txt
Code:
1	SN_QNO_TEST_QUEST	0	0	0	0	0	0	Test quest	0	0	0	0	0	0	0	
1	SN_PAY_QNO_TEST_QUEST	0	0	0	0	0	0	Test quest	0	0	0	0	0	0	0	
1	SN_CON_QNO_TEST_QUEST	0	0	0	0	0	0	Hunt 20 Mangyang (%d)	0	0	0	0	0	0	0
Your quest name and the task.


Done!

** To make your quest daily **
Add this to your luc script


Regards
JoleChow* is offline  
Thanks
5 Users
Old 02/26/2020, 06:38   #2
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481

stop with the copy paste
we already have some releases 10 times or more and people who are too stupid to look for it should just stop to open a server

NorseGodTyr is offline  
Thanks
2 Users
Old 02/26/2020, 08:00   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 159
Received Thanks: 61
You forgot to copy/paste the pictures
guckguck is offline  
Thanks
2 Users
Old 02/26/2020, 08:12   #4
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Quote:
Originally Posted by guckguck View Post
You forgot to copy/paste the pictures
mach ihn doch keine Hoffnung
NorseGodTyr is offline  
Old 02/26/2020, 11:20   #5
Trade Restricted

 
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
Quote:
Originally Posted by NorseGodTyr View Post

stop with the copy paste
we already have some releases 10 times or more and people who are too stupid to look for it should just stop to open a server

Relax, it's just for people who can't reach it, and i gave credits for the creators

Quote:
Originally Posted by guckguck View Post
You forgot to copy/paste the pictures
i don't think needed
JoleChow* is offline  
Old 02/26/2020, 12:10   #6
dotCom
 
Devsome's Avatar
 
elite*gold: 9842
The Black Market: 107/0/0
Join Date: Mar 2009
Posts: 16,834
Received Thanks: 4,667
Quote:
So many people requested quest scripts or links
I only saw one thread.

Quote:
and i gave credits for the creators
Writing the Name, what about linking all your sources from where you copy paste?

Requests to close, Copy only old thread

Edit://
Quote:
You can't only copy paste bro
Devsome is offline  
Thanks
1 User
Old 02/26/2020, 12:22   #7
Trade Restricted

 
elite*gold: LOCKED
Join Date: Feb 2020
Posts: 586
Received Thanks: 174
Quote:
Originally Posted by Devsome View Post
I only saw one thread.


Writing the Name, what about linking all your sources from where you copy paste?

Requests to close, Copy only old thread
i saw 2
#
back to community mod, free to delete the thread if no needs
JoleChow* is offline  
Old 02/26/2020, 13:41   #8
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Quote:
Originally Posted by JoleChow* View Post
Relax, it's just for people who can't reach it, and i gave credits for the creators
Then it would have been enough if you sent them the link or pushed the old thread and not opened a new one aka copy / paste to get some likes ^^
NorseGodTyr is offline  
Old 02/26/2020, 14:34   #9
 
Smith-'s Avatar
 
elite*gold: 0
Join Date: Oct 2017
Posts: 100
Received Thanks: 19
He did it to help other ppl who cant find it easily stop being aggressive guys , thanks will be enough
Smith- is offline  
Old 02/26/2020, 16:52   #10
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Quote:
Originally Posted by Smith- View Post
He did it to help other ppl who cant find it easily stop being aggressive guys and thanks will be enough
Sorry the english site doesn't work anymore please use the german site
NorseGodTyr is offline  
Old 02/26/2020, 19:14   #11
 
Smith-'s Avatar
 
elite*gold: 0
Join Date: Oct 2017
Posts: 100
Received Thanks: 19
Quote:
Originally Posted by NorseGodTyr View Post
Sorry the english site doesn't work anymore please use the german site
well its your problem not mine
Smith- is offline  
Old 02/26/2020, 19:16   #12
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Quote:
Originally Posted by Smith- View Post
well its your problem not mine
google is your friend so use search for idiots
NorseGodTyr is offline  
Old 02/26/2020, 19:23   #13
 
Smith-'s Avatar
 
elite*gold: 0
Join Date: Oct 2017
Posts: 100
Received Thanks: 19
Quote:
Originally Posted by NorseGodTyr View Post
google is your friend so use search for idiots
i got your point but its fine to make others feels that the community isnt so dead even he re post old threat
Smith- is offline  
Old 02/26/2020, 20:29   #14
 
NorseGodTyr's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 2,223
Received Thanks: 1,481
Quote:
Originally Posted by Smith- View Post
i got your point but its fine to make others feels that the community isnt so dead even he re post old threat
Elitepvpers is the largest Silkroad community that is better than the other crappy forums where everything has been copied from elitepvpers and who is too lazy to search should leave the sro community.
NorseGodTyr is offline  
Old 02/26/2020, 20:31   #15
 
elite*gold: 0
Join Date: Apr 2016
Posts: 201
Received Thanks: 47
Piskota is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
★Hotkey Creator★ Create your own hotkey executing your preferred action
05/01/2015 - Coding Releases - 2 Replies
Deutsch Ich möchte dir meinen Hotkey Creator v 1.0 vorstellen, mit welchem es möglich ist, eigene hotkeys zu definieren, die eine von dir ausgewählte Aktion ausführen. Mögliche Aktionen: - Webseite öffnen - Programm oder Dokument ausführen - Aktives Fenster verstecken - Pfad öffnen - Bildschirm sperren
[Release] How to Create your own bypass
02/26/2010 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 2 Replies
http://static.squidoo.com/resize/squidoo_images/-1 /draft_lens1938996module9169178photo_1208536604gre at_smile.jpg Take some computer classes and go to the University. But if you want to save some years of university go and watch this video: YouTube - How to make a program to Bypass a network firewall



All times are GMT +1. The time now is 11:27.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.