![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Jul 2005
Posts: 242
|
hmm thanks now it makes sense, so that player is marked.. but anyway, i put this code on the default_npc class.. but seems that not just exploiters are going there because this error is spawning like each 2 secs..
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jul 2005
Posts: 123
|
More tutorial plz
|
|
|
|
|
#3 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
![]() push_const 111 push_const 222 push_reg_sp push_reg_sp push_reg_sp sub add fetch_i |
|
|
|
|
|
#4 | ||
|
Архивный участник
Join Date: Oct 2005
Posts: 18
|
Quote:
111 222 111 but you can have the same result using : push_const 111 push_const 222 push_reg_sp push_const 1 sub fetch_i There is a more powerfull way of manipulating the stack that i will present it in the next update of the tutorial, as soon as i find some time. |
||
|
|
|
|
#5 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
Code:
push_const 111 push_const 222 push_reg_sp push_const 1 sub fetch_i |
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Nov 2005
Posts: 28
|
i'm sorry, but i don't fully understand push_reg_sp
shift_sp -2 push_const 1 equal push_reg_sp fetch_i branch_false L33297 if i understand it right, then that would never be false |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Nov 2005
Posts: 28
|
also, how unique do the following need to be?
'Sxxx.' 'Lxxxxx' do they need to be unique throughout the entire AI.obj, the class, or just the handler? |
|
|
|
|
#8 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
i think it needs to be absolutely unique in the whole ai.obj...
at least it wont hurt lol
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Aug 2005
Posts: 42
|
This one must will be a stickie
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
just what is missing is what a function/handler really does...
i mean theres nothing like: AddDoNothingDesire --> the npc receiving this command will do nothing when all conditions are ok. well i dont know if this is what this function does. thats why i am sorta asking for such a list. i still want to write a quest. so i need pretty every piece of info i can get... however its still a great tutorial and great tutorial
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
hello, i try to check if pc (talker) is Caslte Owner in order my npc give an item only if pc owns a castle, i found this but i dont understand what it means exactly:
Code:
shift_sp 1 func_call 126 // func[Castle_GetPledgeId] push_event // talker push_const 32 add fetch_i // pledge_id push_const 664 add fetch_i equal push_reg_sp fetch_i branch_false LXXX |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Aug 2005
Posts: 42
|
a) This post isnt for ask questions. There is a complete forum for help people.
b) That code is the way to obtain if the player talking to the NPC Castle Related, is the clan leader owning the castle to whom the NPC is associated. c) You must have ai.obj knowledge for understand the code. d) If you have more questions please do them at the Lineage2 Help forum...I will be pleased to answer you. |
|
|
|
|
#13 |
|
Архивный участник
Join Date: May 2005
Posts: 105
|
somebody know how i can use the function SetDBValue
Thanks |
|
|
|
|
#14 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 28
|
Quote:
Which reminds me, maybe I should comandeer this thread since the tutorial maker hasn't touched this thread in more than a month. |
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
think what you want...
i promise you less people will look in a [TUTORIAL] thread for answering questions... so i dont mind if the thread gets flooded as hell, but it wont help the people very much. but maybe im wrong. however this is turning in a nonsense discussion about the goddamn rules :lol: |
|
|
|
|
#16 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
Quote:
Question: class some_class1 : default_npc handler 32 // MENU_SELECTED variable_begin "talker" "ask" "reply" "myself" "_choiceN" "_code" "_from_choice" variable_end .... handler_end class_end class some_class2 : some_class1 handler 32 // MENU_SELECTED variable_begin "talker" "ask" "reply" "myself" "_choiceN" "_code" "_from_choice" variable_end .... call_super handler_end class_end npc_ai={[some_class2]} in some_class2 I process this URL menu_select?ask=2&reply=10 in some_class1 I process menu_select?ask=2&reply=11 If user press second URL, ask and reply in some_class1 equal to 2 and 11? Or call_super not pass parameters? |
|
|
|
|
|
#17 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
some_class2 <- some_class1 <- default_npc Event data proccessing flow (from child to parent): some_class2 -> some_class1 -> default_npc ASK & REPLY - is EVENT structure variables If u will pass ask&reply pair to the some_class2 menu_selected handler, it is possible to process EVENT values in menu_selected handler of every parent class. "call_super" never pass the parameters from child to parent class -- sorry for my english, learn russian lang |
|
|
|
|
|
#18 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
Quote:
![]() зачем мне учить русский? если я русский ))) в школе на 4 окончил )))))) |
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: May 2005
Posts: 99
|
call_super keep the parameter in the function
is you have MENU_SELECTED(talker,ask,reply) and do a "call_super", all variables "talker", "ask" & "reply" will have correct value, not reset to 0 in the child. AddDoNothingDesire do nothing, right. In fact it stop to do something, like attack or move. and EventHandler NO_DESIRE is called. |
|
|
|
|
#20 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
Quote:
Maybe, call_super pass parameters to funcs of parent classes. Ask AI lang developers about it
|
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
kvoxi, filrip wrote 2 different things. One about parameters (I asked) and 2nd about func AddNothingDesire (asked somethere above) ))
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
This is complete list of C1 L2NPC.exe AI functions (my first work with IDA)
|
|
|
|
|
#23 |
|
Архивный участник
Join Date: Jan 2006
Posts: 7
|
<rus>Пишу квест на страйдера. такой вот вопрос: у плеера получающего квест должен быть дракончик 55 лвл или выше тогда ему можно разрешить пройти квест на страйдера.... как узнать лвл имеющего в инвентаре дракона? или например лвл заточки вещи?</rus>
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
very nice share
![]() i love it... looks very complete and informative... thx kvoxi |
|
|
|
|
#25 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
This is event variables list
Maybe StaticVoid want add some info. He was promise to do it
|
|
|
|
|