Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   AI- Castle Owner (https://postpacific.mmorpg-game.online/showthread.php?t=2760)

Kirikups 09.12.2005 16:02

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

toolpunk 09.12.2005 17:39

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

Kirikups 09.12.2005 21:30

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

SoaPy 09.12.2005 22:17

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

EntroX 10.12.2005 00:14

<offtopic>
No aguanto la curiosidad....eso de infierno rojo es tu equipo favorito de futbol en argentina no? :P
</offtopic>

toolpunk 10.12.2005 09:56

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 :D XD

EntroX 29.12.2005 19:40

That was offtopic :p

toolpunk 29.12.2005 20:24

btw it isnt...
its the name of the web page :P
(he told me :D)

EntroX 29.12.2005 20:27

WebPage? o_O

Flamestrike 29.12.2005 20:33

Stick to the topic lads o.O


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