PDA

View Full Version : I wanna create x-mass tree in town: but i make an error


xarion
11.12.2005, 18:30
NPCdata
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
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
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:

OnlyOne
11.12.2005, 18:48
npcpch.txt good?

xarion
11.12.2005, 18:53
yes, i use L2scriptMaker

[x_mas_tree_a] = 1012619
[x_mas_tree_b] = 1012620

kvoxi
11.12.2005, 19:45
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.

xarion
11.12.2005, 19:47
works fine

kvoxi
11.12.2005, 19:58
IMHO there is only two reasons: bad npcdata.txt or npc_pch.txt. Check both files.

kepler001
11.12.2005, 20:28
and html ?

Silentz0r
11.12.2005, 21:15
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.

rodier
12.12.2005, 00:42
can u show what your xmas tree can ? :)

FidoW
13.12.2005, 23:31
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

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


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 :)

Flamestrike
14.12.2005, 07:04
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 :)

torune
14.12.2005, 08:16
npc_ai={[x_mas_tree_a];{[fnHi] = [x_mas_tree.htm]}}

KTPSMF
14.12.2005, 08:26
i think he does not have described ai, or just pasted bad npc and did not added it to npc_pch

FidoW
14.12.2005, 14:54
npc_ai={[x_mas_tree_a];{[fnHi] = [x_mas_tree.htm]}}
ouch :roll: , is true, thx torune

xarion
14.12.2005, 17:24
npc_ai={[x_mas_tree_a];{[fnHi] = [x_mas_tree.htm]}}

Torune you r the best, thnx man :)

tarvin
23.12.2005, 19:07
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)

Flamestrike
23.12.2005, 19:10
npcdata? Mine are working just fine

tarvin
23.12.2005, 19:20
I can summon x_mas_tree, i see special effects on x_mas but i not see tree:)