Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 09.12.2005, 16:02   #1
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default AI- Castle Owner

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
i know i can use chamberlain way but i am looking to do it with a npc noc owned by any castle especially.

Any help is welcome, tx
Kirikups is offline  
Old 09.12.2005, 17:39   #2
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

i think it does the following:
1. checks the pledge id that the castle belongs to...
2. checks players pledge id.
3. compares the results.
4. if they arent equal it will jump to branch XXX
toolpunk is offline  
Old 09.12.2005, 21:30   #3
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

tx for your answer, then this part of AI just check if NPC and PC are linked by a castle.
Maybe there is a way to get the PC base ID ? if it is 1 then PC is gludio owner, 2 dion etc ...
btw only clan leader can get s_seal_of_ruler (62977), i though maybe we can try to test if pc got it as it is possible to test if pc have an item or not ?

for exemple what dos this part of AI ?
Code:
...
handler 2	//  SPELLED
variable_begin
	"speller"
	"skill_name_id"
	"myself"
	"_choiceN"
	"_code"
	"_from_choice"
variable_end
push_event	//  skill_name_id
push_const 120
add
fetch_i
push_const 62977	//  s_seal_of_ruler
equal
branch_false LXXXX
...
Regards
Kirikups is offline  
Old 09.12.2005, 22:17   #4
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

// spelled is a handler to do an action if the npc recieve a skill

in this case the skill id is 62977 in skill_pch and is the s_seal_of_ruler
SoaPy is offline  
Old 10.12.2005, 00:14   #5
EntroX
Архивный участник
 
Join Date: May 2005
Posts: 373
Default

<offtopic>
No aguanto la curiosidad....eso de infierno rojo es tu equipo favorito de futbol en argentina no? :P
</offtopic>
EntroX is offline  
Old 10.12.2005, 09:56   #6
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

i can translate i think...
without babelfish or any other help.
so there might be many mistakes. however heres my shot:
Just out of curiousity...is 'infierno rojo' your favourite football/soccer team in argentinia?
/me ownz ya all XD
toolpunk is offline  
Old 29.12.2005, 19:40   #7
EntroX
Архивный участник
 
Join Date: May 2005
Posts: 373
Default

That was offtopic
EntroX is offline  
Old 29.12.2005, 20:24   #8
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

btw it isnt...
its the name of the web page :P
(he told me )
toolpunk is offline  
Old 29.12.2005, 20:27   #9
EntroX
Архивный участник
 
Join Date: May 2005
Posts: 373
Default

WebPage? o_O
EntroX is offline  
Old 29.12.2005, 20:33   #10
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

Stick to the topic lads o.O
Flamestrike is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:51.