Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 26.03.2006, 04:04   #1
Mark20
Архивный участник
 
Join Date: Jan 2006
Posts: 54
Default NPC Greetings

Well... i try to search in this forum but i cant find this info...

I see in one server (L2OFF of course) where NPCs send greetins to players when you talk to him (like retail), i ask for this in other post and one person answer me that has been shared before, anyone can help me with this ? im believe is somthing in AI, but i cant find any data of this in this forum. i read all mod sections and nothing.

Here is a screenshot


sorry my bad english
Mark20 is offline  
Old 26.03.2006, 04:36   #2
LIRIK
Архивный участник
 
Join Date: Mar 2006
Posts: 38
Default

if you need this yet write me PM, I give you example of my ai.obj
LIRIK is offline  
Old 26.03.2006, 05:30   #3
Alien003
Архивный участник
 
Join Date: Jun 2005
Posts: 143
Default

search for npc animation ..there is a post somewhere already

(never payed much attention to that)
something to do with
func_call 13 // func[AddEffectActionDesire]
Alien003 is offline  
Old 26.03.2006, 13:07   #4
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

Yeah it has been shared more then 2 times
Metalmurphy is offline  
Old 26.03.2006, 19:42   #5
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

u saw it in my server ^^ ?:P
demon is offline  
Old 26.03.2006, 21:15   #6
Mark20
Архивный участник
 
Join Date: Jan 2006
Posts: 54
Default

No, was a C3 server

now, im found a post called NPC Animation.im trying to use data of this post unsusccessfully...

LIRIK send me this...

Code:
handler 4     //  TALK_SELECTED 
     variable_begin 
          "talker" 
          "myself" 
          "_choiceN" 
          "_code" 
          "_from_choice" 
     variable_end 

     push_event     //  talker 
     push_const 32 
     add 
     fetch_i 
S0.     "noquest.htm" 
     push_string S0 
     func_call 43     //  func[ShowPage] 
     shift_sp -2 
     shift_sp -1 
     shift_sp 1 
     push_event     //  talker 
     push_const 32 
     add 
     fetch_i 
     push_const 1 
     push_const 3000 
     push_const 10 
     func_call 13     //  func[AddEffectActionDesire] 
     shift_sp -4 
     shift_sp -1 
handler_end 

handler 32     //  MENU_SELECTED 
     variable_begin 
          "talker" 
          "myself" 
          "_choiceN" 
          "_code" 
          "_from_choice" 
     variable_end 

     shift_sp 1 
     push_event     //  talker 
     push_const 32 
     add 
     fetch_i 
     push_const 1 
     push_const 3000 
     push_const 10 
     func_call 13     //  func[AddEffectActionDesire] 
     shift_sp -4 
     shift_sp -1 
handler_end 

class_end
I use this handlers in default_npc class but isn't working, what is wrong? i think part of animation is this:

Code:
     shift_sp 1 
     push_event     //  talker 
     push_const 32 
     add 
     fetch_i 
     push_const 1 
     push_const 3000 
     push_const 10 
     func_call 13     //  func[AddEffectActionDesire] 
     shift_sp -4 
     shift_sp -1
i try to made changes looking in NPC Animation post but no results
Mark20 is offline  
Old 27.03.2006, 07:16   #7
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

use it on citizen not default_npc
Metalmurphy is offline  
Old 27.03.2006, 07:41   #8
Mark20
Архивный участник
 
Join Date: Jan 2006
Posts: 54
Default

thx Metalmurphy, when i return to house i go to test that.

A lot of thanks!!!
Mark20 is offline  
Old 27.03.2006, 08:14   #9
NN4e
Архивный участник
 
Join Date: Feb 2006
Posts: 207
Default

I use it to all main classes: teleporter, citizen, merchant, custodian... etc
Work nice.
NN4e is offline  
Old 27.03.2006, 13:29   #10
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

AddEffectActionDesire(talker, 1, 3000, 10);
thats it?
hamidouch is offline  
Old 27.03.2006, 13:34   #11
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

can u show me your ai? where u put that exactly.. or learn me how to find on which line to put it at each class.. thanks
rodier is offline  
Old 27.03.2006, 18:42   #12
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

geezus...

the AI is right there what more do u want??
Metalmurphy 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 16:14.