![]() |
|
|
#1 |
|
Архивный участник
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 Any help is welcome, tx |
|
|
|
|
#2 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
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 |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
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 ... |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
// 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 |
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 373
|
<offtopic>
No aguanto la curiosidad....eso de infierno rojo es tu equipo favorito de futbol en argentina no? :P </offtopic> |
|
|
|
|
#6 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
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
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2005
Posts: 373
|
That was offtopic
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
btw it isnt...
its the name of the web page :P (he told me )
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2005
Posts: 373
|
WebPage? o_O
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
Stick to the topic lads o.O
|
|
|
|
|