ist ja schön und gut
Aber was soll man damit anfangen?
Muss man das direkt imgame schreiben
also wieder ".Addquest ..."?
Oder wo muss man was machen?
Nein...Das musste in deinem Data/QuestData eingeben....Musst dich aber damit auskennen, sonst hats kein Sinn
Muss in .lua gespeichert sein und in der qsdfiles.idx angegeben sein!
Hier z.B. ein Template:
Code:
--------------------------------------------------------------------------------------------------------------------
------------------------------------------ SpecialQuestDrop template -------------------------------------------
--------------------------------------------------------------------------------------------------------------------
g_szQuestName = "..."
g_dwQuestID = 1337
g_szNPCNameStart = "..."
g_szNPCNameEnd = g_szNPCNameStart
g_dwChgEXP = 1337
g_dwChgPenya = 1337
g_dwReqMinLVL = 1337
g_dwReqMaxLVL = 1337
g_RewardItems = { {1337,1},{1338,2},{1339,3},... } -- {itemID,amount}
g_QuestItems = { {6025,1,20,3000000000} } -- {itemID,amount,monid,probability(3000000000=100%)}
g_szReqJobs = {"MERCENARY","MAGICIAN","ASSIST","ACROBAT"}
g_szAddDialogs = {"bla!"}
g_szFinishDialogs = {"blubb!"}
g_szCannotFinishDialogs = {"pfff...."}
--------------------------------------------------------------------------------------------------------------------
-------------------------------------------- Do not change from here on ----------------------------------------
--------------------------------------------------------------------------------------------------------------------
AddQuest(g_dwQuestID,g_szQuestName,0,3)
AddState(g_dwQuestID,0,-1)
SetStartNPC(g_dwQuestID,0,g_szNPCNameStart)
SetStartRequiredLVL(g_dwQuestID,0,g_dwReqMinLVL,g_dwReqMaxLVL)
for i = 1 , table.getn(g_szReqJobs) , 1 do
AddStartRequiredJob(g_dwQuestID,0,g_szReqJobs[i])
end
AddStartNPCTextButton(g_dwQuestID,0,g_szQuestName,g_dwQuestID,1)
AddState(g_dwQuestID,1,-1)
SetEndNPC(g_dwQuestID,1,g_szNPCNameStart)
AddEndNPCTextButton(g_dwQuestID,1,g_szQuestName,g_dwQuestID,1)
for i = 1 , table.getn(g_szAddDialogs) , 1 do
AddEndNPCDialog(g_dwQuestID,1,g_szAddDialogs[i])
end
AddEndNPCAnswerButton(g_dwQuestID,1,"BTN_ADD_QUEST","__YES__",g_dwQuestID,2);
AddEndNPCAnswerButton(g_dwQuestID,1,"BTN_DONT_ADD_QUEST","__NO__",g_dwQuestID,0);
AddState(g_dwQuestID,2,0)
SetStartNPC(g_dwQuestID,2,g_szNPCNameStart)
AddStartNPCTextButton(g_dwQuestID,2,g_szQuestName,g_dwQuestID,2)
for i = 1 , table.getn(g_szCannotFinishDialogs) , 1 do
AddStartNPCDialog(g_dwQuestID,2,g_szCannotFinishDialogs[i])
end
SetEndNPC(g_dwQuestID,2,g_szNPCNameEnd)
for i = 1 , table.getn(g_QuestItems) , 1 do
AddEndRequiredItem(g_dwQuestID,2,g_QuestItems[i][1],g_QuestItems[i][2])
AddQuestDrop(g_dwQuestID,2,g_QuestItems[i][3],g_QuestItems[i][1],g_QuestItems[i][4],g_QuestItems[i][2])
end
AddEndNPCTextButton(g_dwQuestID,2,g_szQuestName,g_dwQuestID,2)
for i = 1 , table.getn(g_szFinishDialogs) , 1 do
AddEndNPCDialog(g_dwQuestID,2,g_szFinishDialogs[i])
end
AddEndNPCAnswerButton(g_dwQuestID,2,"BTN_FINISH_QUEST","__OK__",g_dwQuestID,3)
AddState(g_dwQuestID,3,14)
for i = 1 , table.getn(g_QuestItems) , 1 do
AddEndRemoveItem(g_dwQuestID,3,g_QuestItems[i][1],g_QuestItems[i][2])
end
for i = 1 , table.getn(g_RewardItems) , 1 do
AddEndAddItem(g_dwQuestID,3,g_RewardItems[i][1],g_RewardItems[i][2])
end
SetEndChangePenya(g_dwQuestID,3,g_dwChgPenya)
SetEndChangeEXP(g_dwQuestID,3,g_dwChgEXP)
#Updated(Bsp zu den Commands,die mit der Zeit aktualliesiert werdn)
[GUIDE]Making Quest LOTF. Hey Look is Me, Yea. Good Guide,Basic, SO PRO! 12/23/2009 - CO2 PServer Guides & Releases - 13 Replies Hello again Elite Pvpers.
This is for LOTF.
I want to show you how to creat your own basic quest.
Lets look on the steps we are going through:
1. Making the steps for the quests
2. Making it save to database everytime go to next step
3. Making the npc's for the quest
PLEASE READ EVERYTHING I HAVE WRITTEN CAUSE IS IMPORTANT IF YOU DONT WANT ERROR
Well there is those 3 steps.
how to dont lost your commands tokens of Moonbox quest in Death Tactic. 01/18/2009 - CO2 Programming - 2 Replies how to dont lost your commands tokens of Moonbox quest in Death Tactic.
Ok...here we go....I am not good at english but im sure you will understand it =P btw it work...Press thanks
You need to have bless with 2 characters..(the one who have the tokens...and the other who will receive it)
OK...when you have 2 or more tactic...and you get Death Tactic it willl help you...You just need to put on Offline TG both chars..then when you apparear in that place...(Hut,of the offline tg) trade all...
how to dont lost your commands tokens of Moonbox quest in Death Tactic. 01/05/2009 - CO2 Programming - 4 Replies Ok...here we go....I am not good at english but im sure you will understand it =P btw it work...Press thanks
You need to have bless with 2 characters..(the one who have the tokens...and the other who will receive it)
OK...when you have 2 or more tactic...and you get Death Tactic it willl help you...You just need to put on Offline TG both chars..then when you apparear in that place...(Hut,of the offline tg) trade all the tokens to the man who is in tc) then you can go to your map in death...
[Request] Quest Wroking With Commands Only 11/20/2008 - CO2 Private Server - 5 Replies 1st my English bad
---
am Starting NPC Working with Command i like this idea from CoZero Source
but i Think i have something wrong when i code it
i jz need any idea to Finish it There my code
There is command
if (Splitter == "/queststart")
{