Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   NPC Greetings (https://postpacific.loc-online.com/showthread.php?t=3790)

Mark20 26.03.2006 04:04

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
http://img116.imageshack.us/img116/4175/greetins2ct.jpg

sorry my bad english

LIRIK 26.03.2006 04:36

if you need this yet write me PM, I give you example of my ai.obj

Alien003 26.03.2006 05:30

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]

Metalmurphy 26.03.2006 13:07

Yeah it has been shared more then 2 times

demon 26.03.2006 19:42

u saw it in my server ^^ ?:P

Mark20 26.03.2006 21:15

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

Metalmurphy 27.03.2006 07:16

use it on citizen not default_npc

Mark20 27.03.2006 07:41

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

A lot of thanks!!!

NN4e 27.03.2006 08:14

I use it to all main classes: teleporter, citizen, merchant, custodian... etc
Work nice.

hamidouch 27.03.2006 13:29

AddEffectActionDesire(talker, 1, 3000, 10);
thats it?

rodier 27.03.2006 13:34

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

Metalmurphy 27.03.2006 18:42

geezus...

the AI is right there what more do u want??


All times are GMT. The time now is 16:19.