المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : وضع الكويست في اي NPC , طريقة وضع اي كويست في اي NPC , نقل الكويست من NPC لآخر


MarOz
11-04-2015, 09:06 PM
انا دلوقتي عملت كويتسة جديد عاوز احطها في npc الي يعجبني ازاي ؟

Neoon
11-04-2015, 09:28 PM
بسم الله


اولا:
لازم يكون عندك البرامج دي
http://www.microsoft.com/en-us/downl....aspx?id=15336 (http://www.microsoft.com/en-us/download/details.aspx?id=15336)
http://www.microsoft.com/en-us/downl...ils.aspx?id=29 (http://www.microsoft.com/en-us/download/details.aspx?id=29)
http://www.microsoft.com/en-us/downl....aspx?id=17718 (http://www.microsoft.com/en-us/download/details.aspx?id=17718)

وطبعا برنامج ال Lua من هنا http://luaforwindows.googlecode.com/..._v5.1.4-46.exe (http://luaforwindows.googlecode.com/files/LuaForWindows_v5.1.4-46.exe)

وملف ال كويستات من هنا
http://www.mediafire.com/?wz5wncn34q45cjb

اعمل Extract للملف ده ادخل على فولدير Quest

اعمل ملف .lua جديد
http://i.imgur.com/8wVRqY4.png
http://i.imgur.com/VbN3Z01.png

ضيف ده

كود:
function QNO_TEST_QUEST() -- you should match this with your filename! QUESTID = LuaGetQuestID("QNO_TEST_QUEST") -- IMPORTANT: must match with the name in your database LuaSetStartCodition(2, QSC_QUEST, QSC_LEVEL, 1, 1) QM_CONVERSATION = 1 LuaSetStartMethod(QM_CONVERSATION, 1, "NPC_CH_SMITH") LuaInsertMissionOrCompleteNpc("NPC_CH_SMITH") LuaQuestInsertNpc(1, "NPC_CH_SMITH") LuaSetAchievementLimit(1) LuaSetMissionDataSize(QUESTID, 1) LuaSetMissionData_EX(QUESTID, 0, MISSION_TYPE_KILL_MONSTER, "SN_CON_QNO_TEST_QUEST", 1, "MOB_CH_MANGNYANG", 0, 20, 0, 1) 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(1, 7200, 0, 0, 1, "ITEM_MALL_GLOBAL_CHATTING", 10) LuaSetAchievedSkillPont(0) end

http://i.imgur.com/w82Or9c.png

دلوقتي خلصنا من الملف دا

منروح على QuestList.lua
ومنضيف السطر

كود:
LuaInsertQuest(TYPE_ID, "SN_QNO_TEST_QUEST.lua", "QNO_TEST_QUEST")
http://i.epvpimg.com/WotRc.png

وبعدين منشغل ال make_questlist.bat و make_quest.bat
بدا لازم ينعملوا ملفين QuestList.sct and Quest.sct.
مننسخ على YOURSERVER\Script\VIETNAM او YOURSERVER\Script\THAILAND

طبعا تاكد انك عامل backup لكل شيء بحالة كان في غلط

ننتقل للداتابيس

_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
_RefQuestReward
Code:

كود:
1 QUESTID* 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 column of _RefQuest table
_RefQuestRewardItems (بس اذا كان في reward)
Code:

كود:
1 QUESTID* QNO_TEST_QUEST 0 ITEM_MALL_GLOBAL_CHATTING xxx 0 10 xxx 0 xxx 0 xxx*QUESTID
QUESTID* = هوا الكويست id من ال Refquest يعني الرقم لي راح يطلع مكان ال 816

اذا اردت ان تتاكد شغل السرفر لازم تطلع الرسالة دي بل SR_GAMESERVER
http://i.epvpimg.com/qCFUe.png
طبعا غير الرقم وحسب اسم الكويست
اذا طلعت ايا رسالة غيرها فعندك غلط


نروح عل media

نعمل extract ل media\server_dep\silkroad\textdata)

questdata.txt

كود:
1 QUESTID* 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
questcontentsdata.txt

كود:
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

كود:
QUESTID* 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
refquestrewarditems.txt

كود:
QUESTID* QNO_TEST_QUEST 0 ITEM_MALL_GLOBAL_CHATTING xxx xxx 0 10 0 xxx 0 xxx
refquestrewarditems.txt = _Refquestrewarditems
يعني تغير حسب ال Reward لي حاطتها

textquest_otherstring.txt

كود:
1 SN_PAYCON_QNO_TEST_QUEST 0 0 0 0 0 0 <sml2><strong><font color="255,226,74,0"> ◈ Mission</font></strong><br>Hunt 20 Mangyangs<br><br><strong><font color="255,226,74,0"> ◈ Reward</font></strong><br>Experience 7200 / 10 Global Chattings<br><br><strong><font color="255,226,74,0"> ◈ Form</font></strong><br>Available Once<br><br><strong><font color="255,226,74,0"> ◈ NPC</font></strong><br>Chulsan the blacksmith of Jangan<br><br><strong><font color="255,226,74,0"> ◈ Monster</font></strong><br>Mangyang<br><br><font color="255,44,15,1"><strong> ◈ Scenario</strong><br>Bla some quest description goes here</font></sml2> 0 0 0 0 0 1 SN_NN_QNO_TEST_QUEST 0 0 0 0 0 0 Chulsan, blacksmith of Jangan 0 0 0 0 0 0 1 SN_NC_QNO_TEST_QUEST 0 0 0 0 0 0 Available Once 0 0 0 0 0 0
بالكود ده بتغير كلام ال NPC

textquest_queststring.txt

كود:
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

textquest_speech&name.txt

كود:
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
وطبعا QUESTID* زي في الداتابيس يعني الرقم لي راح يطلع من الداتابيس مكان الرقم 816

منقول من شخص في المنتدى :)

http://forum.tawwat.com/images-topics/images/fa/0025.gif
http://forum.tawwat.com/images-topics/images/ac/0022.gif

http://forum.tawwat.com/images-topics/images/ac/0014.gif


http://forum.tawwat.com/images-topics/images/ne/0006.gif

http://forum.tawwat.com/images-topics/images/ne/0015.gif

http://forum.tawwat.com/images-topics/images/ac/0014.gif

http://forum.tawwat.com/images-topics/images/ac/0022.gif

UnStoppable!
11-04-2015, 09:58 PM
بسم الله


اولا:
لازم يكون عندك البرامج دي
http://www.microsoft.com/en-us/downl....aspx?id=15336 (http://www.microsoft.com/en-us/download/details.aspx?id=15336)
http://www.microsoft.com/en-us/downl...ils.aspx?id=29 (http://www.microsoft.com/en-us/download/details.aspx?id=29)
http://www.microsoft.com/en-us/downl....aspx?id=17718 (http://www.microsoft.com/en-us/download/details.aspx?id=17718)

وطبعا برنامج ال Lua من هنا http://luaforwindows.googlecode.com/..._v5.1.4-46.exe (http://luaforwindows.googlecode.com/files/LuaForWindows_v5.1.4-46.exe)

وملف ال كويستات من هنا
http://www.mediafire.com/?wz5wncn34q45cjb

اعمل Extract للملف ده ادخل على فولدير Quest

اعمل ملف .lua جديد
http://i.imgur.com/8wVRqY4.png
http://i.imgur.com/VbN3Z01.png

ضيف ده

كود:
كود:
function QNO_TEST_QUEST() -- you should match this with your filename! QUESTID = LuaGetQuestID("QNO_TEST_QUEST") -- IMPORTANT: must match with the name in your database LuaSetStartCodition(2, QSC_QUEST, QSC_LEVEL, 1, 1) QM_CONVERSATION = 1 LuaSetStartMethod(QM_CONVERSATION, 1, "NPC_CH_SMITH") LuaInsertMissionOrCompleteNpc("NPC_CH_SMITH") LuaQuestInsertNpc(1, "NPC_CH_SMITH") LuaSetAchievementLimit(1) LuaSetMissionDataSize(QUESTID, 1) LuaSetMissionData_EX(QUESTID, 0, MISSION_TYPE_KILL_MONSTER, "SN_CON_QNO_TEST_QUEST", 1, "MOB_CH_MANGNYANG", 0, 20, 0, 1) 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(1, 7200, 0, 0, 1, "ITEM_MALL_GLOBAL_CHATTING", 10) LuaSetAchievedSkillPont(0) end

http://i.imgur.com/w82Or9c.png

دلوقتي خلصنا من الملف دا

منروح على QuestList.lua
ومنضيف السطر

كود:
كود:
LuaInsertQuest(TYPE_ID, "SN_QNO_TEST_QUEST.lua", "QNO_TEST_QUEST")
http://i.epvpimg.com/WotRc.png

وبعدين منشغل ال make_questlist.bat و make_quest.bat
بدا لازم ينعملوا ملفين QuestList.sct and Quest.sct.
مننسخ على YOURSERVER\Script\VIETNAM او YOURSERVER\Script\THAILAND

طبعا تاكد انك عامل backup لكل شيء بحالة كان في غلط

ننتقل للداتابيس

_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
_RefQuestReward
Code:

كود:
كود:
1 QUESTID* 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 column of _RefQuest table
_RefQuestRewardItems (بس اذا كان في reward)
Code:

كود:
كود:
1 QUESTID* QNO_TEST_QUEST 0 ITEM_MALL_GLOBAL_CHATTING xxx 0 10 xxx 0 xxx 0 xxx*QUESTID
QUESTID* = هوا الكويست id من ال Refquest يعني الرقم لي راح يطلع مكان ال 816

اذا اردت ان تتاكد شغل السرفر لازم تطلع الرسالة دي بل SR_GAMESERVER
http://i.epvpimg.com/qCFUe.png
طبعا غير الرقم وحسب اسم الكويست
اذا طلعت ايا رسالة غيرها فعندك غلط


نروح عل media

نعمل extract ل media\server_dep\silkroad\textdata)

questdata.txt

كود:
كود:
1 QUESTID* 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
questcontentsdata.txt

كود:
كود:
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

كود:
كود:
QUESTID* 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
refquestrewarditems.txt

كود:
كود:
QUESTID* QNO_TEST_QUEST 0 ITEM_MALL_GLOBAL_CHATTING xxx xxx 0 10 0 xxx 0 xxx
refquestrewarditems.txt = _Refquestrewarditems
يعني تغير حسب ال Reward لي حاطتها

textquest_otherstring.txt

كود:
كود:
1 SN_PAYCON_QNO_TEST_QUEST 0 0 0 0 0 0 <sml2><strong><font color="255,226,74,0"> â—ˆ Mission</font></strong><br>Hunt 20 Mangyangs<br><br><strong><font color="255,226,74,0"> â—ˆ Reward</font></strong><br>Experience 7200 / 10 Global Chattings<br><br><strong><font color="255,226,74,0"> â—ˆ Form</font></strong><br>Available Once<br><br><strong><font color="255,226,74,0"> â—ˆ NPC</font></strong><br>Chulsan the blacksmith of Jangan<br><br><strong><font color="255,226,74,0"> â—ˆ Monster</font></strong><br>Mangyang<br><br><font color="255,44,15,1"><strong> â—ˆ Scenario</strong><br>Bla some quest description goes here</font></sml2> 0 0 0 0 0 1 SN_NN_QNO_TEST_QUEST 0 0 0 0 0 0 Chulsan, blacksmith of Jangan 0 0 0 0 0 0 1 SN_NC_QNO_TEST_QUEST 0 0 0 0 0 0 Available Once 0 0 0 0 0 0
بالكود ده بتغير كلام ال NPC

textquest_queststring.txt

كود:
كود:
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

textquest_speech&name.txt

كود:
كود:
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
وطبعا QUESTID* زي في الداتابيس يعني الرقم لي راح يطلع من الداتابيس مكان الرقم 816

منقول من شخص في المنتدى :)

http://forum.tawwat.com/images-topics/images/fa/0025.gif
http://forum.tawwat.com/images-topics/images/ac/0022.gif

http://forum.tawwat.com/images-topics/images/ac/0014.gif


http://forum.tawwat.com/images-topics/images/ne/0006.gif

http://forum.tawwat.com/images-topics/images/ne/0015.gif

http://forum.tawwat.com/images-topics/images/ac/0014.gif

http://forum.tawwat.com/images-topics/images/ac/0022.gif



تمام

MarOz
12-04-2015, 12:05 AM
DEEP ممكن LINK الاكونت بتاع الفيس

Neoon
12-04-2015, 12:07 AM
بعتهولك في رسالة زائر

youssef13
12-04-2015, 01:26 AM
ممنوع طلبات فيس او تيم فيور .. الخ
+ ممنوع يبقى ليك موضوعين غير مُجابين
http://www.silkroad4arab.com/vb/showthread.php?t=583658

حكتفى بالغلق + اختيار افضل اجابة
يغلق ##