Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 27.03.2006, 19:31   #1
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default [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
demon 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 15:59.