Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 11.12.2005, 18:30   #1
xarion
Архивный участник
 
Join Date: Sep 2005
Posts: 220
Default I wanna create x-mass tree in town: but i make an error

NPCdata
Code:
npc_begin	citizen	12619	[x_mas_tree_a]	level=66	exp=2719752xx.xx5	acquire_exp_rate=1.2	undying=1	can_be_attacked=0	acquire_sp=360	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=80	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=bow	base_can_penetrate=0	base_attack_range=1100	base_damage_range={0;0;80;120}	base_rand_dam=0	str=40	int=21	dex=30	wit=20	con=43	men=10	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=2.7	ground_low={80;0;10}	ground_high={120;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=67xx.xx009186617	org_mp=1219.8	base_defend=5xx.xx5040328361	base_magic_attack=5xx.xx5709791816	base_magic_defend=2xx.xx7189482006	base_physical_attack=40xx.xx431336161		physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=293	base_reuse_delay=0	base_critical=8	magic_use_speed_modify=0	status={normal}	align=-4900	collision_radius=8	collision_height=24.0	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[x_mas_tree];[fnHi] = [x_mas_tree.htm]}	corpse_time=7	no_sleep_mode=0	npc_end
npc_begin	citizen	12620	[x_mas_tree_b]	level=66	exp=2719752xx.xx5	acquire_exp_rate=1.2	undying=1	can_be_attacked=0	acquire_sp=360	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=80	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=bow	base_can_penetrate=0	base_attack_range=1100	base_damage_range={0;0;80;120}	base_rand_dam=0	str=40	int=21	dex=30	wit=20	con=43	men=10	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=2.7	ground_low={80;0;10}	ground_high={120;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=67xx.xx009186617	org_mp=1219.8	base_defend=5xx.xx5040328361	base_magic_attack=5xx.xx5709791816	base_magic_defend=2xx.xx7189482006	base_physical_attack=40xx.xx431336161		physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=293	base_reuse_delay=0	base_critical=8	magic_use_speed_modify=0	status={normal}	align=-4900	collision_radius=8	collision_height=24.0	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={[x_mas_tree];[fnHi] = [x_mas_tree.htm]}	corpse_time=7	no_sleep_mode=0	npc_end
Ai
Code:
class x_mas_tree_a : citizen
parameter_define_begin
	string fnHi "x_mas_tree.htm"
	parameter_define_end
class_end

class x_mas_tree_b : citizen
parameter_define_begin
	string fnHi "x_mas_tree.htm"
	parameter_define_end
class_end
NPCpos
Code:
territory_begin	[20_22_NPC_031201_01]	{{0;0;-3148;-2828};{18973;0;-3148;-2828};{18973;145264;-3148;-2828};{0;145264;-3148;-2828}}	territory_end
npcmaker_begin	[20_22_NPC_031201_01]	initial_spawn = all	maximum_npc=1
npc_begin	[x_mas_tree_a]	pos = {18873;145164;-3128;49152}	total=1	respawn=1min	npc_end
npcmaker_end
[highlight=red:021dc7c3bc]Object.cpp undefined or unregistred
Create NPC failed.getobject failed
There is no NPC named [x_mas_tree_a] at file NPCsocket.cpp[/highlight:021dc7c3bc]
Help :cry:
xarion is offline  
Old 11.12.2005, 18:48   #2
OnlyOne
Архивный участник
 
Join Date: Apr 2005
Posts: 98
Default

npcpch.txt good?
OnlyOne is offline  
Old 11.12.2005, 18:53   #3
xarion
Архивный участник
 
Join Date: Sep 2005
Posts: 220
Default

yes, i use L2scriptMaker

[x_mas_tree_a] = 1012619
[x_mas_tree_b] = 1012620
xarion is offline  
Old 11.12.2005, 19:45   #4
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

Summon NPCs with ID less than x_mas_tree_a_ID.
For example : //summon 12618
If summon_cmd is not work (u got a same error) - check ur npcdata.txt (rows above [x_mas_tree_a]) - search last good summon ID, check this ID and ID+1 rows in the npcdata.txt.
kvoxi is offline  
Old 11.12.2005, 19:47   #5
xarion
Архивный участник
 
Join Date: Sep 2005
Posts: 220
Default

works fine
xarion is offline  
Old 11.12.2005, 19:58   #6
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

IMHO there is only two reasons: bad npcdata.txt or npc_pch.txt. Check both files.
kvoxi is offline  
Old 11.12.2005, 20:28   #7
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

and html ?
kepler001 is offline  
Old 11.12.2005, 21:15   #8
Silentz0r
Архивный участник
 
Join Date: Apr 2005
Posts: 122
Default

NPCDATA: npc_ai={[x_mas_tree];[fnHi] = [x_mas_tree.htm]} corpse_time=7 no_sleep_mode=0 npc_end

you have in AI Config, x_mas_tree_a and b not only x_mas_tree. check that.
Silentz0r is offline  
Old 12.12.2005, 00:42   #9
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

can u show what your xmas tree can ?
rodier is offline  
Old 13.12.2005, 23:31   #10
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

i have the same error, y try to change npc_ai={[x_mas_tree] ... with npc_ai={[x_mas_tree_a] but i have the same error.

Sorry my english :s
FidoW is offline  
Old 14.12.2005, 05:05   #11
bwgreen
Архивный участник
 
Join Date: Sep 2005
Posts: 408
Default

Well, I'm only using mine for decoration - with no AI and they spawn perfectly.

Code:
npc_begin	warrior	12619	[x_mas_tree_a]	level=70	exp=4296345xx.xx5	acquire_exp_rate=4	undying=1	can_be_attacked=0	acquire_sp=120	race=human	sex=male	temper=100	safe_height=100	org_jump=15	skill_list={@s_full_magic_defence}	magic_list={}	max_item=80	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	base_attack_type=bow	base_can_penetrate=0	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	str=40	int=21	dex=30	wit=20	con=43	men=10	hp_increase=40	mp_increase=7	org_hp_regen=7.5	org_mp_regen=2.7	ground_low={80;0;10}	ground_high={120;-30;30}	underwater_low={50;0;10}	underwater_high={0;0;30}	fly_low={0;0;10}	fly_high={0;-30;30}	float_low={0;0;10}	float_high={0;-30;30}	org_earshot=100	sight={0;0;2500;120;5}	agro_range=1000	org_hp=24xx.xx818899627	org_mp=1345.8	base_defend=2xx.xx597408024	base_magic_attack=4xx.xx4627426724	base_magic_defend=2xx.xx8467292763	base_physical_attack=6xx.xx4851683855	physical_hit_modify=4.75	physical_avoid_modify=0	base_attack_speed=253	base_reuse_delay=0	base_critical=4	magic_use_speed_modify=0	status={normal}	align=0	collision_radius=8	collision_height=2	category={}	clan={}	clan_help_range=300	guild={}	pledge={}	pledge_leader=0	alliance={}	alliance_leader=0	ignore_clan_list={}	ruler=0	ruling_domain={}	npc_ai={}	corpse_time=7	no_sleep_mode=0	npc_end
Oh yea.. and you may wanna use my NPCdata, as mine won't attack anyone who goes near it like every NPCdata which has ever been released
bwgreen is offline  
Old 14.12.2005, 07:04   #12
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

Hehe yeah, I added the trees to as decoration so players were hitting them all the time and then i switched to the attacking ones :P
Damn i was fun
Flamestrike is offline  
Old 14.12.2005, 08:16   #13
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

npc_ai={[x_mas_tree_a];{[fnHi] = [x_mas_tree.htm]}}
torune is offline  
Old 14.12.2005, 08:26   #14
KTPSMF
Архивный участник
 
Join Date: Oct 2005
Posts: 367
Default

i think he does not have described ai, or just pasted bad npc and did not added it to npc_pch
KTPSMF is offline  
Old 14.12.2005, 14:54   #15
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by torune
npc_ai={[x_mas_tree_a];{[fnHi] = [x_mas_tree.htm]}}
ouch :roll: , is true, thx torune
FidoW is offline  
Old 14.12.2005, 17:24   #16
xarion
Архивный участник
 
Join Date: Sep 2005
Posts: 220
Default

Quote:
Originally Posted by torune
npc_ai={[x_mas_tree_a];{[fnHi] = [x_mas_tree.htm]}}
Torune you r the best, thnx man
xarion is offline  
Old 23.12.2005, 19:07   #17
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default

oh a have problem two...
i summon x_mas tree on town but ya see only light effect, green tree not see( in file lineagedecos i see texture x_mass_tree and on npcdata.grp
this texture write propertly two. (i use pp.commutity)
tarvin is offline  
Old 23.12.2005, 19:10   #18
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

npcdata? Mine are working just fine
Flamestrike is offline  
Old 23.12.2005, 19:20   #19
tarvin
Архивный участник
 
Join Date: Oct 2005
Posts: 75
Default

I can summon x_mas_tree, i see special effects on x_mas but i not see tree
tarvin 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 18:13.