PDA

View Full Version : [chinese] some new quest defination techniques


Digital
14.02.2005, 12:38
first of all "love letter quest" introduction

quest flow
LV 1 愛情隨信 說話之島村莊 達靈 金幣:450

1 在說話之島村中央與(達靈)對話得åˆ °《達靈的信函》 說話之島村莊
達靈 達靈的信函

2 將《達靈的信函》交給村莊神殿前水äº •旁的(拉普吉兒)得到《拉普吉兒的æ ‰‹帕》 說話之島村莊
守門人
拉普吉兒 拉普吉兒的手帕

3 將《拉普吉兒的手帕》交給(達靈)å¾ —到《達靈的收據》 說話之島村莊
達靈 達靈的收據

4 將《達靈的收據》交給位於西南方教å  ‚的(教師巴烏洛)得到《巴烏洛的藥æ °´》 說話之島村莊
教師
巴烏洛 巴烏洛的藥水

5 將《巴烏洛的藥水》交回給(達靈)å¾ —到《450金幣》 說話之島村莊
達靈 金幣:450

u can find in questcomp.txt the quest items
[0001] letters_of_love1 {687;688;1079;1080}

{687;688;1079;1080} record of needed quest items
item_name_begin id=687 name=[達靈的信函] description=[達靈寫給拉普吉兒的情書] item_name_end
item_name_begin id=688 name=[拉普吉兒的手帕] description=[拉普吉兒的手帕,拉普吉兒對達\n靈信 函內容所做的回覆。] item_name_end
item_name_begin id=1079 name=[達靈的收據] description=[達靈付給巴烏洛魔法藥水後的收\n據。 必須將此交給巴烏洛] item_name_end
item_name_begin id=1080 name=[巴烏洛的藥水] description=[巴烏洛專為害羞的達靈所特製的\n藥水 ,但是效果還是未知數。] item_name_end

IMPT part flow control of quest is in questdata.txt

////////////////////////////////////////////////////////////////
////
//// 퀘스트 이름 : [사랑은 편지를 타고(letters_of_love1)]
//// 퀘스트 번호 : 001
//// 작성자 : 한재혁
//// 작성일 : 2002 .11
////
////////////////////////////////////////////////////////////////

quest_begin
quest_id = 1
quest_name = [letters_of_love1]
quest_items = { [darings_letter], [rapunzels_kerchief], [darings_receipt], [bauls_potion] }

//store all quest items
// 퀘스트 제시 및 수락
npc_begin
npc_name = [daring]

talk_selected_event_begin
condition = [HaveMemo(talker, @letters_of_love1)==0 &&
GetOneTimeQuestFlag(talker, @letters_of_love1)==0]
choice_string = 0000101
handler(fhtml0, talker) =
[
if (GetMemoCount(talker)<16)
{
if (talker.level > 1)
{
FHTML_SetFileName(fhtml0, "daring_q0001_02.htm");
FHTML_SetInt(fhtml0, "quest_id", @letters_of_love1);
ShowFHTML(talker, fhtml0);
}
else
ShowPage(talker, "daring_q0001_01.htm");
}
else
ShowPage(talker, "fullquest.htm");
]
talk_selected_event_end

talk_selected_event_begin
condition = [HaveMemo(talker, @letters_of_love1)==0 &&
GetOneTimeQuestFlag(talker, @letters_of_love1)==1]
choice_string = 0000101
handler(fhtml0, talker) =
[
ShowPage(talker, "finishedquest.htm");
]
talk_selected_event_end

quest_accepted_event_begin
handler(talker, quest_id) =
[
talker.quest_last_reward_time = 0;
SetMemo(talker, quest_id);
SoundEffect(talker, "ItemSound.quest_accept");
if(OwnItemCount(talker, @darings_letter) == 0)
GiveItem1(talker, @darings_letter, 1);
ShowPage(talker, "daring_q0001_06.htm");
]
quest_accepted_event_end
npc_end


from questdata.txt u could design all sorts of quest!

SOnick
16.02.2005, 16:01
if i think in right direction - i must put this in smthing like questdata.txt -?

Digital
16.02.2005, 16:19
yep :) bingo

SOnick
16.02.2005, 19:02
and - what i must do with same strings in the ai.obj>?

SOnick
16.02.2005, 19:03
and what kind of call i must use for this to work>? a html file call>?

Sauron
05.03.2005, 17:23
which quest data are u using?..coz the one that cames with meifu server is incomplete. clan lvl 4 and 5 quest are missing also coin of magic, and i'm sure there are some more missing to.

serjr
02.06.2005, 14:15
Digital, can you public ai_script.txt and ai_macro.txt please? I don't have one's on my server and nasc.exe whant run whithout them :( Or maybe there is any other way to convert questdata to ai.obj? Sory for newbe questions but i can't find any info about using questdata.txt. Ai.obj is to hard to understand for me (i don't have asm skills ). If there is a way to use quesdata.txt for editing and writing new quests that will be nice.
Sory for bad english :)

wton
18.08.2005, 02:39
somebody that translate to english?