Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 27.03.2006, 10:11   #1
Dank0ne
Архивный участник
 
Join Date: Jan 2006
Posts: 24
Default [Request] NPC that speaks?

How I can make that a npc speaks when I want (at general chat)?
Dank0ne is offline  
Old 27.03.2006, 12:49   #2
snikr
Архивный участник
 
Join Date: Mar 2006
Posts: 57
Default

When you want I don't know, for boss that's the way (maybe you already know this):

npcdata:

Quote:
npc_begin warrior 493 [tiger_hornet] level=26 exp=2497077.5 acquire_exp_rate=xx.xx

...

ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[tiger_hornet];{[ShoutMsg1]=[1000118]};{[ShoutMsg2]=[1000119]};{[ShoutMsg3]=[1000120]};{[ShoutMsg4]=[1000121]}} corpse_time=7 no_sleep_mode=0 npc_end
fstring
Quote:
1000118 [''Que tal sabe la miel de este lugar?!]
1000119 ['Dame algo dulce, deliciosa miel dorada!]
1000120 [Si me das algo de miel, te perdonare la vida...]
1000121 [Si hubiera encontrado algo de miel... no habria perdido contra alguien como tu.]

These are the messages he'll say:
1-When it respawns.
2-Every X time (when it's not been attacked).
3-When a player attacks it.
4-When it dies.

So, for bosses, it's easy, add new fstrings and put them into the npc.
snikr is offline  
Old 27.03.2006, 14:45   #3
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

You have to edit the AI for the NPC you want to "shout" also.

Oso
Osito2Dancer is offline  
Old 27.03.2006, 15:14   #4
Dank0ne
Архивный участник
 
Join Date: Jan 2006
Posts: 24
Default

Tnx, I will try
Dank0ne is offline  
Old 12.04.2006, 02:37   #5
wen
Архивный участник
 
Join Date: Sep 2005
Posts: 21
Default

there 3 ways to do it
1.-by npc data u have to set some strings at strings file.
2.- By using Shout function. Shout ("blabla");
3.- Say function. Say("BlaBla");

last two ones on ai.

Use NASC to compile it.
wen is offline  
Old 12.04.2006, 02:51   #6
Sire
Архивный участник
 
Join Date: Feb 2006
Posts: 87
Default

shift_sp 1
push_const 1000007
S269. ""
push_string S269
S270. ""
push_string S270
S271. ""
push_string S271
S272. ""
push_string S272
S273. ""
push_string S273
func_call 89 // func[MakeFString]
shift_sp -6
func_call 37 // func[Say]
shift_sp -1
shift_sp -1

Change the String numbers so they are unique in your AI.obj. Replace 1000007 with the number for the string in fstring.txt
Sire is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 19:08.