![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Архивный участник
Join Date: Sep 2005
Posts: 220
|
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
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 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
Create NPC failed.getobject failed There is no NPC named [x_mas_tree_a] at file NPCsocket.cpp[/highlight:021dc7c3bc] Help :cry: |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Apr 2005
Posts: 98
|
npcpch.txt good?
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2005
Posts: 220
|
yes, i use L2scriptMaker
[x_mas_tree_a] = 1012619 [x_mas_tree_b] = 1012620 |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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. |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Sep 2005
Posts: 220
|
works fine
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
IMHO there is only two reasons: bad npcdata.txt or npc_pch.txt. Check both files.
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
and html ?
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Apr 2005
Posts: 122
|
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. |
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
can u show what your xmas tree can ?
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
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 |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Sep 2005
Posts: 408
|
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
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
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
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Jul 2005
Posts: 371
|
npc_ai={[x_mas_tree_a];{[fnHi] = [x_mas_tree.htm]}}
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Oct 2005
Posts: 367
|
i think he does not have described ai, or just pasted bad npc and did not added it to npc_pch
|
|
|
|
|
#15 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
|
|
|
|
|
|
#16 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 220
|
Quote:
|
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Oct 2005
Posts: 75
|
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) |
|
|
|
|
#18 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
npcdata? Mine are working just fine
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Oct 2005
Posts: 75
|
I can summon x_mas_tree, i see special effects on x_mas but i not see tree
|
|
|
|
|