Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Help (https://postpacific.mmorpg-game.online/forumdisplay.php?f=37)
-   -   ≈ writing new quests and fixing old one (https://postpacific.mmorpg-game.online/showthread.php?t=721)

serjr 23.05.2005 13:55

writing new quests and fixing old one
 
Всем привет! У меня небольшой вопрос по поводу правки квестов (использую Project C2 сервер), на сколько я понял после изменения скриптов в questsdata.txt етот файл както надо скомпилировать, вопрос чем и как? вродебы nasc.exe этим занимается, но чтото не могу его заставить скушать questsdata. Изивините за нюбский вопрос :)

Hello everybody! I have a question about questsdata.txt (project C2 server), As I understand after making changes in this file you need to compile it in ai.obj, can somebody say how to do it? Sorry for newbee question :)

Livid 23.05.2005 16:03

Вообще-то ai.obj... Это основное.
Там еще хтмлки поправить надобно. Вот. Удачи.
А, ну да, еще pch там добавить новый ид и от этого плясать. В общем, принцип я изложил, но жара мешает думать. Всем спасибо, до новых встреч.

Actually, ai.obj is primary... And you need to edit htmls (or I should rather say "add"?)
Oh, almost forgot about pch. You need to add new quest id there.
So, that's main principle (sorry, but heat doesn't allow me to think cleary). That's all, thanks to everyone, see you next time.

gamedeveloper 24.05.2005 01:30

Re: writing new quests and fixing old one
 
Quote:

Originally Posted by serjr
Всем привет! У меня небольшой вопрос по поводу правки квестов (использую Project C2 сервер), на сколько я понял после изменения скриптов в questsdata.txt етот файл както надо скомпилировать, вопрос чем и как? вродебы nasc.exe этим занимается, но чтото не могу его заставить скушать questsdata. Изивините за нюбский вопрос :)

Hello everybody! I have a question about questsdata.txt (project C2 server), As I understand after making changes in this file you need to compile it in ai.obj, can somebody say how to do it? Sorry for newbee question :)

У тебя есть рабочий nasc.exe? Вышли пожалуйста на мыло или скажи, где скачал?

Livid 24.05.2005 04:41

Он в комплекте беты 3 был... Только он не пашет толком. Я вообще не понимаю, за каким дьяволом он может понадобиться. Вроде всё и без него отлично делается.

nasc.exe was in Beta-3 archive. But it doesn't work as it should. Actually, I don't understand why should we need it, cuz everything works even without usin' it.

serjr 24.05.2005 08:05

Quote:

Originally Posted by Livid
Вообще-то ai.obj... Это основное.
Там еще хтмлки поправить надобно. Вот. Удачи.
А, ну да, еще pch там добавить новый ид и от этого плясать. В общем, принцип я изложил, но жара мешает думать. Всем спасибо, до новых встреч.

ну про html понятно что надо править, меня интересует вопрос именно касательно ai.obj он скажем так не очень удобоварим для понятия и редактирования писать на скриптовом языке как .txt файлах гораздо проще, как проделать конвертацию изменений из .txt в ai.obj? А если такого способа нет то тогда зачем вообще .txt файлы???

About html i understud. About ai.obj i don't like its content becouse its to hard for me to understand, ilike much more .txt script language. Is any way to convert .txt script to ai.obj? and if no such way for what reason .txt files exists?

Livid 24.05.2005 12:20

Гы. А ai.obj не повторяет тхтшки. Это отдельный элемент.
В тхтшках дефайны и параметры. А ai.obj - это реальный механизм обработки.

Heh. Ai.obj do not contain info in txts and vice versa. It is seperate element. Txts work mostly as static DB, while ai.obj actually works with this dbs.

serjr 24.05.2005 12:26

значит я не так понял буду разбираться дальше....

Oh I misunderstood, then will continue digging.

BuDDha 02.06.2005 08:01

Quote:

Originally Posted by Livid
Гы. А ai.obj не повторяет тхтшки. Это отдельный элемент.
В тхтшках дефайны и параметры. А ai.obj - это реальный механизм обработки.

Heh. Ai.obj do not contain info in txts and vice versa. It is seperate element. Txts work mostly as static DB, while ai.obj actually works with this dbs.

разве? ведь изначально questsdata.txt в сервере не используется, только ai.obj
ведь изначально спрашивали именно про questsdata.txt

what you mean? questsdata.txt use not on the server , only ai.obj determine the quests.

Livid 02.06.2005 11:38

Гм. Покопался в файлах сервера, квестдаты не нашел :D
Вопрос: а откуда вы вообще такой файл взяли?

Hm. Looked thru server files... havent' found questdata. Where have you found that file?

serjr 02.06.2005 11:52

download with server l2C2 (c1 modifed) from internet
here example quest
Quote:

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

// ??? ?? ? ??
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

// Now, Memo state = 1 !!!


This kind of scripting is much more understable then ai.obj for me :)

Livid 02.06.2005 12:28

Просьба послать весь файл. А, еще ai_script.txt было бы неплохо.
I would like you to send me the whole file. And, one more, ai_script.txt would be nice.

livid@fromru.com

serjr 02.06.2005 12:34

Here it is

Livid 02.06.2005 13:04

Hey, do you have files like "ai_script.txt", "ai_macro.txt"?

serjr 02.06.2005 13:06

i will try to find if you now what to do with them ;)

Livid 02.06.2005 13:13

Very blurry... K... what I got so far that QuestDataChecker requires ai_script and nasc wishes something gone out from MacroDataChecker. I need more info to get it work =) May be we'll do it.

serjr 02.06.2005 13:58

Hmm can't find ai_*.txt :( will try to search maybe tomorrow will find something :(

BuDDha 03.06.2005 14:15

Quote:

Originally Posted by Livid
Гм. Покопался в файлах сервера, квестдаты не нашел :D
Вопрос: а откуда вы вообще такой файл взяли?

Hm. Looked thru server files... havent' found questdata. Where have you found that file?

ну не все сидят на глючных С2
мы работаем с обычным немодифицированным С1
questsdata.txt идет в составе утилиты L2import и предназначена для компиляции через Л2импорт в ai.obj читаемый сервером

Well not everyone use on bagged c2
we work with usual not modified C1
questsdata.txt goes in structure of utility L2import and is intended for compilation through l2import in ai.obj readable by a server

BuDDha 07.06.2005 08:52

ну неправильно выразился
компилируется через nasc.exe, только довольно глючно
ладно, я сам уже разобралчся как работает аи.обж

serjr 09.06.2005 12:59

found compiler
 
found compiler with ai_*.txt but can't attach it ;(

файл доступен по адресу: webfile.ru/345271 до 16:53 xx.xx.2005.

Livid 09.06.2005 13:59

Да, я нашел уже. Только толку не много от него. Квестдата, макросы и тп не достают даже до уровня С1. Мне проще работать и дальше с ai.obj чем переписывать на скрипты еще 2 метра кода. Вот так.

Sauron 13.06.2005 22:34

here u ve

http://www.gamersx.com.ar/sauron/sources.rar

TuMBLer 14.06.2005 11:18

i cant understand how it works =(
maybe som1 share sercet ?
how to edit ai.obj ?

looks like its only requests to other files...

Я никак не могу понять как это работает =(
Может поделитесь секретом как редактировать этот ai.obj

там похоже только ссылки на переменные.

Sauron 15.06.2005 19:56

u can edit ai.obj like everyone have been doing or modify sources and compile a newone, then copy the code and paste it on actual ai.obj, coz those sources al pretty old.

2Rain 03.08.2005 08:54

Cдаётся мне, что serjr запостил сюда кусок файла из ява-эмулятора. ;)

serjr 03.08.2005 08:58

сам ты ява, ето все есть в beta3final

archy 03.08.2005 09:10

ai.obj is qute simple to understand, you just need to think a bit ASM and a bit like a 5 year old..

serjr 03.08.2005 09:13

asm is not my hobby-horse ;)

Professor F 09.08.2005 23:56

ASM rulez!


All times are GMT. The time now is 23:01.