![]() |
[SHARE] NPC ANIMATION GREET, WAVE ETC
its simple
In AI.OBJ into CLASS default_npc adding handlers: [php:1:eafcdb47f6] handler 3 // TALKED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end shift_sp 1 push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i push_const 1 push_const 3000 push_const 10000 func_call 13 // func[AddEffectActionDesire] shift_sp -4 shift_sp -1 handler_end handler 5 // SEE_CREATURE variable_begin "creature" "i0" "myself" "_choiceN" "_code" "_from_choice" variable_end shift_sp 1 push_const 4 func_call 55 // func[Rand] shift_sp -1 push_const 0 equal branch_false L74001 L74000 shift_sp 1 push_event // myself push_const 28 add fetch_i // sm push_const 2400 add fetch_i push_const 2 push_const 3000 push_const 10000 func_call 13 // func[AddEffectActionDesire] shift_sp -4 shift_sp -1 L74001 handler_end [/php:1:eafcdb47f6] check for duplicate L branches In all children classes (for all NPC) find "handler 3 // TALKED" and before string "handler_end" in this handler insert "call_super" if u make it correct ALL vendors will start cocial move greetings etc its perfect for demo make an account to my server hehe :P |
10x .. you're the best .. works 100%
|
You're on a Sharing Spree!
:P Thx! What's next? :o |
OMG sombody stop demon :))) very good sharing....
|
been shared already
https://postpacific.loc-online.com/f...985&highlight= and more then once on other posts as well that i can't find Also its a mistake to add it to default_npc |
Thanks a lot Demon, tested 100% and works
In case anyone has the same doubt I have you have to put the 'call_super' just before the 'handler_end' no matter if it's like this Code:
shift s -2 |
push_const 2 <=== anim type
push_const 3000 <==== ???? push_const 10000 <=====??? anyone know? |
Quote:
Oso |
Quote:
yes it was but WRONG this is correct |
Thx, works good.
Can u add fuction: turn to player (as off)? |
i do in my server :)
|
Can u share it? :)
|
nope :|
|
Quote:
|
push_const 2 <=== anim type
push_const 3000 <==== time push_const 10000 <=====desire |
Quote:
And btw it wasnt wrong. |
Quote:
Happy NOW ?? |
Quote:
nothing to say more. |
How is it incomplete? Its only incomplete if ur a completle morron and can't add the code to ur own AI. It's the reason why most ppl dont learn stuff, others do all the work for them. What was posted was MORE then enough.
Btw i would still like to see that |
perfect job, ty ty
|
Quote:
we'll let you win next euro np dont cry now |
Sheesh.. guys.. please stop the bitchfights! :P
//Offtopic Demon, you'll only win next Euro if Scolari isn't booted... |
:P see ya in eurovision :P
|
Dude what the fuck has my nationality have anything to do with this?
Secondly what exactly did i say that was bullshit? Third and last, fuck off! Oh and im still waiting to see that |
Metalmurphy, why u're comming to mod section for ?
i saw in search that your favorite section is game help, there you have 18 from your 20 threads..asking us for help. So next time someone posts something for the general good try not to be rude BECAUSE U NEVER SHARED A SHIT except that stupid multisell for duals which is copy paste without brain usage.. Someone close threat plz. thx. |
| All times are GMT. The time now is 15:58. |