PDA

View Full Version : [SHARE] NPC ANIMATION GREET, WAVE ETC


demon
27.03.2006, 19:31
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

darkkiss
27.03.2006, 19:54
10x .. you're the best .. works 100%

Megatronpt
27.03.2006, 20:04
You're on a Sharing Spree!
:P

Thx!

What's next? :o

Domzelan
27.03.2006, 20:08
OMG sombody stop demon :))) very good sharing....

Metalmurphy
27.03.2006, 23:14
been shared already

https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=3985&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

m4rk
27.03.2006, 23:29
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

shift s -2
L70
call_super
handler_end

hamidouch
28.03.2006, 01:46
push_const 2 <=== anim type
push_const 3000 <==== ????
push_const 10000 <=====???


anyone know?

Osito2Dancer
28.03.2006, 03:12
been shared already

https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=3985&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
Maybe on citizen?

Oso

demon
28.03.2006, 09:20
been shared already

https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=3985&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


yes it was but WRONG this is correct

Validator
28.03.2006, 10:10
Thx, works good.
Can u add fuction: turn to player (as off)?

demon
28.03.2006, 11:03
i do in my server :)

Validator
28.03.2006, 11:58
Can u share it? :)

demon
28.03.2006, 12:12
nope :|

Morte
28.03.2006, 12:49
push_const 2 <=== anim type
push_const 3000 <==== ????
push_const 10000 <=====???


anyone know?
anisochronous effect i think

hr
28.03.2006, 14:43
push_const 2 <=== anim type
push_const 3000 <==== time
push_const 10000 <=====desire

Metalmurphy
28.03.2006, 16:23
i do in my server :)

I would like to see that.


And btw it wasnt wrong.

demon
28.03.2006, 17:11
i do in my server :)

I would like to see that.


And btw it wasnt wrong.

ok, it wasnt wrong but it was incomplete.

Happy NOW ??

Aspire
28.03.2006, 17:46
i do in my server :)

I would like to see that.


And btw it wasnt wrong.

ok, it wasnt wrong but it was incomplete.

Happy NOW ??

LOOOL
nothing to say more.

Metalmurphy
28.03.2006, 18:53
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

mytynyk
29.03.2006, 06:09
perfect job, ty ty

demon
29.03.2006, 07:23
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

for once in your life can u stop bullshiting ppl ?

we'll let you win next euro np

dont cry now

Megatronpt
29.03.2006, 08:32
Sheesh.. guys.. please stop the bitchfights! :P

//Offtopic

Demon, you'll only win next Euro if Scolari isn't booted...

demon
29.03.2006, 09:29
:P see ya in eurovision :P

Metalmurphy
29.03.2006, 14:28
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

demon
29.03.2006, 14:56
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.

Megatronpt
29.03.2006, 14:59
Nice attitude Metalmurphy....

//Off topic and in Portuguese.

Pá, fdx.. vê lá se moderas a tua atitude.. acho que o caralho do arrogante norueguês, ou dinamarquês te anda a fazer mal.. depois não te queixes.

demon
29.03.2006, 15:02
+1

Metalmurphy
29.03.2006, 15:04
Excuse me?? All my threads on help section im asking for information. yes thats right, INFO ONLY! You dont see me begging for files or for ppl to do my dirty work.

You should search ur topics as well, at least i dont make any "OMG PLX HELP THX!!!" threads oO

Aspire
29.03.2006, 15:11
Go on plz :lol
http://img205.imageshack.us/img205/6426/1427602971428357ffe780518gw.gif

Metalmurphy
29.03.2006, 15:24
Oh and as for the mutilsells i used, i know theres no brain usage, but there was alot of research on retail for it. And seeing the ammount of downloads most ppl on this forum are probably using it.

As for this post, theres no brain usage either, and it was shared already, more then twice.


There's nothing to go on about Aspire. Just lock/delete this thread.

demon
29.03.2006, 16:22
yes u're right

this forum have lots of brainless ppl like u

make shares for them np

:)

Megatronpt
29.03.2006, 16:33
Sheesh.. can you two "kids" stop it? You're ruining the topic?

jouvmaster
31.03.2006, 03:34
good share demon
no more fight
pliz //close topic

(coño metal si tienes una opinion negativa no la espreses estamos para ayudarnos) jojo :evil:

Symbiosis
28.05.2006, 04:32
Ready who can lay out?

ZeroCoOl
28.05.2006, 09:32
hmmm....if i understand all right, i shoul add Demon cod to default_npc class, and add call_super to all children npc(default_npc) to handler 3 //talked in the end of this handler, before handler_end
Like this:
Call_super
Handler_end

if i made all right? why i have a lot of errors in my NPC server? plz help me, if you can!

rodier
03.06.2006, 00:09
which all npcs are children npcs ?
its for example
class citizen : default_npc
?

hel
03.06.2006, 00:19
No. All Demon's code must be in the end of default_npc class.
This ai working on every npc\monsters.

rodier
03.06.2006, 03:08
its really cool and nice :-) ... but why elf woman have same voice as human woman?

toolpunk
03.06.2006, 07:43
'cause they are humans with strange ears? :D

rodier
03.06.2006, 12:39
hehe this can be used on monsters too? I added it to citizens only.. what about using on c3 summon (blue horse)? its default npc too.. ;-D

hel
03.06.2006, 15:11
All animation working correctly, if you add demon's code to default_npc class.
Animation an ALL npc\monsters working greatly!
Just add demon's code to end of the default_npc class.
No more classes needed to modify.

2Rain
03.06.2006, 17:22
May not add code to default_npc, but then must add to every needed npc.