Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 30.04.2007, 13:43   #1
ZeniMax
Архивный участник
 
Join Date: May 2006
Posts: 209
Default [Help]New NPC with his htm

Hi
This is my code:

Code:
class 1 evento_npc : default_npc
parameter_define_begin
	string fnHi "evento_npc001.htm"
parameter_define_end
class_end

class 1 donaciones_npc : default_npc
parameter_define_begin
	string fnHi "donaciones_npc001.htm"
parameter_define_end
class_end
Code:
npc_begin	citizen	13853	[evento_npc]	level=70	acquire_exp_rate=0.1	acquire_sp=10	unsowing=1	clan={}	ignore_clan_list={}	clan_help_range=300	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	shield_defense_rate=0	shield_defense=0	skill_list={@s_race_humanoid}	npc_ai={[evento_npc];{[fnHi]=[evento_npc001.htm]}}	category={}	race=human	sex=female	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	ground_high={120;0;0}	ground_low={50;0;0}	exp=429634528	org_hp=2444.5	org_hp_regen=7.5	org_mp=1345.8	org_mp_regen=2.7	collision_radius={8;8}	collision_height={20.5;20.5}	str=40	int=21	dex=30	wit=20	con=43	men=10	base_attack_type=fist	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=6xx.xx	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=470.4	base_defend=2xx.xx	base_magic_defend=2xx.xx	physical_avoid_modify=0	soulshot_count=0	spiritshot_count=0	hit_time_factor=0.6	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	hp_increase=0	mp_increase=0	safe_height=100	npc_end
npc_begin	citizen	13854	[donaciones_npc]	level=70	acquire_exp_rate=0.1	acquire_sp=10	unsowing=1	clan={}	ignore_clan_list={}	clan_help_range=300	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	shield_defense_rate=0	shield_defense=0	skill_list={@s_race_humanoid}	npc_ai={[donaciones_npc];{[fnHi]=[donaciones_npc001.htm]}}	category={}	race=human	sex=female	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	ground_high={120;0;0}	ground_low={50;0;0}	exp=429634528	org_hp=2444.5	org_hp_regen=7.5	org_mp=1345.8	org_mp_regen=2.7	collision_radius={8;8}	collision_height={20.5;20.5}	str=40	int=21	dex=30	wit=20	con=43	men=10	base_attack_type=fist	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=6xx.xx	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=470.4	base_defend=2xx.xx	base_magic_defend=2xx.xx	physical_avoid_modify=0	soulshot_count=0	spiritshot_count=0	hit_time_factor=0.6	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	hp_increase=0	mp_increase=0	safe_height=100	npc_end
Code:
[evento_npc] = 1013853
[donaciones_npc] = 1013854
The NPC spawns correct, I can see the npc. But when I talk with the NPC I dont see the html window and not have the npc animation... maybe the IA is wrong?
ZeniMax is offline  
Old 30.04.2007, 13:50   #2
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

You can delete the part from AI.obj and simple put this in npcdata:

npc_ai={[citizen];{[fnHi]=[evento_npc001.htm]}}


default_npc class dont have an AI to show fnHi parameter, citizen yes.
FidoW is offline  
Old 30.04.2007, 13:54   #3
ZeniMax
Архивный участник
 
Join Date: May 2006
Posts: 209
Default

Thanks fidow, but If I want to add a custom IA? (for example for a buyllist..)
Edit: need change this?

class 1 evento_npc : default_npc
to
class 1 evento_npc : citizen
ZeniMax is offline  
Old 03.05.2007, 00:24   #4
katso
Архивный участник
 
Join Date: Mar 2006
Posts: 70
Default

Quote:
Originally Posted by ZeniMax View Post
Thanks fidow, but If I want to add a custom IA? (for example for a buyllist..)
Edit: need change this?

class 1 evento_npc : default_npc
to
class 1 evento_npc : citizen
class 1 evento_npc : default_npc
to
class 1 evento_npc : merchant

Greetings.
katso 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:30.