Jump to content
  • 0

problem when adding new npc


Question

Posted

hi, I want to add new npc to server... I did same thing before but now i'm getting error that i've never seen.

 

when I try to summon this npc with builder character Im getting error:

undefined or unregistered classId[1037018]

undefined or unregistered name[]

invalid npc name [] at file [.\NpcSocket.cpp], line[232]

[0][0][0][0][0][0][0]

 

 

 

npcdata.txt:

npc_begin	citizen	37018	[server_buffer]		category={}	level=70	exp=429634523	ex_crt_effect=1	unique=0	s_npc_prop_hp_rate=1	race=fairy	sex=female	skill_list={@s_npc_prop_race_fairy;@s_npc_prop_hp_lv_p0;@s_npc_prop_mp_lv_p0;@s_npc_prop_pa_lv_p0;@s_npc_prop_ma_lv_p0;@s_npc_prop_pd_lv_p0;@s_npc_prop_md_lv_p0;@s_npc_prop_armor_type_n;@s_npc_prop_weapon_type_sword;@s_full_magic_defence}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	collision_radius={5;5}	collision_height={25;25}	hit_time_factor=0.72	hit_time_factor_skill=-1	ground_high={120;0;0}	ground_low={80;0;0}	str=40	int=21	dex=30	wit=20	con=43	men=20	org_hp=2444.46819	org_hp_regen=7.5	org_mp=1345.8	org_mp_regen=2.7	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=688.86373	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=470.40463	base_defend=295.91597	base_magic_defend=216.53847	base_attribute_attack={none;0}	base_attribute_defend={150;150;150;150;150;150;150}	physical_avoid_modify=0	shield_defense_rate=0	shield_defense=0	safe_height=100	soulshot_count=0	spiritshot_count=0	clan={}	ignore_clan_list={}	clan_help_range=300	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	passable_door=0	can_move=1	flying=0	has_summoner=1	targetable=1	show_name_tag=1	npc_ai={[hellfire_buffer];{[fnHi]=[hellfire_buffer.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0}}	event_flag={0}	unsowing=1	acquire_exp_rate=0	acquire_sp=0	acquire_rp=0	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	ex_item_drop_list={}	npc_end

 

npc_pch.txt:

[server_buffer] = 1037018

 

 

Npcgrp.dat:

37018	LineageMonster.pixy	LineageMonsters.pixy_m00	2	LineageMonstersTex.pixy_t00	LineageMonstersTex.pixy_t01						0			22	4416	13	4408	9	4410	9	4411	9	4412	13	4413	13	4414	3	4011	5	4282	1	11643	1	14622	1																	1.37500000	0		1				2	MonSound.Hit_Soul_7	MonSound.Hit_Soul_8				3	MonSound.pixy_dmg_1	MonSound.pixy_dmg_2	MonSound.pixy_dmg_3	0			1	0								LineageEffect.p_u002_a	0	50.00000000	250.00000000	70.00000000	0	1	0			

 

npcName-e.dat:

37018	a,Server Buffer\0	a,	9C	E8	A9	-1

 

Recommended Posts

  • 0
Posted
2 hours ago, girogius said:

 

I fixed npc errors... I copied that skills because originals have time about 19 min, I want same buffs for buffer but different time 1 hour, how can i do this right way?

 

Edit: thank you for your time.

Skills aren't super easily copied, which version of L2 are you working on?

 

Here's the usual process:

 

1. Find and copy skill entry in skilldata.txt, give new ID

2. Find and copy skill entry in skillgrp.dat, give same new ID

3. Find and copy skill entry in skillname-e.dat, give same new ID

4. Find and copy skill entry in skillsoundgrp.dat, give same new ID

5. Generate the skill entry in skill_pch.txt. This follows a specific algorithm, it isn't as easy as npc_pch or item_pch. Cubafull shared one for HF, you can find it here:

 

 

You're welcome, good luck.

  • 0
Posted (edited)

You have an extra space after [server_buffer] in npcdata.txt, maybe it's that.

 

It's definitely a server-side issue, so don't worry about the .dat files. Did you remember to restart cache too?

Edited by Bumble
  • 0
Posted (edited)
1 hour ago, Bumble said:

You have an extra space after [server_buffer] in npcdata.txt, maybe it's that.

 

It's definitely a server-side issue, so don't worry about the .dat files. Did you remember to restart cache too?

 

yes I restarted cache 10 times 😞 also removed that extra space but still not working

Edited by girogius
  • 0
Posted

Can you post your error log from npcserver and l2server?

 

There's a chance there's nothing wrong with this entry, but one of the NPCs above it is not working right. NPCServer loads NPCs from npcdata.txt from the top, and if it finds an incorrect entry, it stops. All the NPCs up to that point are still loaded. If this is the case, the NPC you're trying to spawn is never loaded.

  • Upvote 1
  • 0
Posted (edited)
13 minutes ago, Bumble said:

Can you post your error log from npcserver and l2server?

 

There's a chance there's nothing wrong with this entry, but one of the NPCs above it is not working right. NPCServer loads NPCs from npcdata.txt from the top, and if it finds an incorrect entry, it stops. All the NPCs up to that point are still loaded. If this is the case, the NPC you're trying to spawn is never loaded.

i have 2 custom npc the firs one is loading but buffer no, the biffer is under manager liek this:

 

//server manager
npc_begin	citizen	37017	[server_manager]	category={}	level=80	exp=4200000000	ex_crt_effect=1	unique=0	s_npc_prop_hp_rate=1	race=construct	sex=female	skill_list={@s_npc_prop_race_construct;@s_npc_prop_hp_lv_p0;@s_npc_prop_mp_lv_p0;@s_npc_prop_pa_lv_p0;@s_npc_prop_ma_lv_p0;@s_npc_prop_pd_lv_p0;@s_npc_prop_md_lv_p0;@s_npc_prop_armor_type_n;@s_npc_prop_weapon_type_sword;@s_npc_abnormal_immunity;@s_full_magic_defence}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	collision_radius={25;25}	collision_height={47.5;47.5}	hit_time_factor=0.6	hit_time_factor_skill=-1	ground_high={1;0;0}	ground_low={1;0;0}	str=40	int=21	dex=30	wit=20	con=43	men=20	org_hp=3290.11306877694	org_hp_regen=8.5	org_mp=1674.8	org_mp_regen=3	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=970.537548504614	base_critical=4	physical_hit_modify=5	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=662.751329129412	base_defend=341.375	base_magic_defend=249.80341	base_attribute_attack={none;0}	base_attribute_defend={20;20;20;20;20;20;0}	physical_avoid_modify=0	shield_defense_rate=0	shield_defense=0	safe_height=100	soulshot_count=0	spiritshot_count=0	clan={}	ignore_clan_list={}	clan_help_range=0	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=0	passable_door=0	can_move=0	flying=0	has_summoner=0	targetable=1	show_name_tag=1	npc_ai={[server_manager]};{[fnHi]=[server_manager.htm]};	unsowing=1	acquire_exp_rate=0	acquire_sp=0	acquire_rp=0	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	ex_item_drop_list={}	npc_end


//buffer
npc_begin	guard	37018	[server_buffer]	category={}	level=80	exp=4200000000	ex_crt_effect=1	unique=0	s_npc_prop_hp_rate=1	race=fairy	sex=female	skill_list={@s_npc_prop_race_fairy;@s_npc_prop_hp_lv_p0;@s_npc_prop_mp_lv_p0;@s_npc_prop_pa_lv_p5;@s_npc_prop_ma_lv_p5;@s_npc_prop_pd_lv_p5;@s_npc_prop_md_lv_p5;@s_npc_prop_armor_type_n;@s_npc_prop_weapon_type_sword}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	collision_radius={5;5}	collision_height={25;25}	hit_time_factor=0.72	hit_time_factor_skill=-1	ground_high={120;0;0}	ground_low={80;0;0}	str=40	int=21	dex=30	wit=20	con=43	men=20	org_hp=2880.37628	org_hp_regen=8.5	org_mp=1674.8	org_mp_regen=3	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=894.75854	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=611.00409	base_defend=341.375	base_magic_defend=249.80341	base_attribute_attack={none;0}	base_attribute_defend={150;150;150;150;150;150;150}	physical_avoid_modify=0	shield_defense_rate=0	shield_defense=0	safe_height=100	soulshot_count=0	spiritshot_count=0	clan={@all_elemental2_clan}	ignore_clan_list={}	clan_help_range=300	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	passable_door=0	can_move=1	flying=0	has_summoner=0	targetable=1	show_name_tag=1	npc_ai={[bloody_pixy];{[fnHi]=[bloody_pixy001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0}};	unsowing=1	acquire_exp_rate=0	acquire_sp=0	acquire_rp=0	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	ex_item_drop_list={}	npc_end

 

inside npcserver logs server_manager is only mentioned once idk if its a problem

 

03/24/2021 01:34:39.606, MakerLog(Territory: npc_buffer_oren_01 (82674, 54141, -1488)) Set MaxZ or MinZ Failed 
03/24/2021 01:34:39.606, MakerLog(Territory:            npc_buffer_oren_01 , minZ[-1480])'s (  82674,   54141,   -1488) NPC[server_manager] is outsider. [NSD]

Edited by girogius
  • 0
Posted

The MakerLog territories is not an issue, it's just saying that the spawn point of the NPC is currently out of the designated spawn area. It doesn't prevent spawning.

 

The example you just showed is different from the example in your first post. The new server_buffer you just showed, is now a guard and now has the AI of a bloody_pixy. Why is it different this time?

 

 

  • 0
Posted (edited)
2 minutes ago, Bumble said:

The MakerLog territories is not an issue, it's just saying that the spawn point of the NPC is currently out of the designated spawn area. It doesn't prevent spawning.

 

The example you just showed is different from the example in your first post. The new server_buffer you just showed, is now a guard and now has the AI of a bloody_pixy. Why is it different this time?

 

 

 

i'm just changing things trying to make it work...

I copied pixy because the npc have pixy textures

Edited by girogius
  • 0
Posted (edited)

Try placing it earlier in the npcdata.txt and see if the error persists.

 

Edit: Also make sure the class (citizen) and AI is functional. You want an AI that inherits from the citizen AI.

Edited by Bumble
  • 0
Posted
6 minutes ago, Bumble said:

Try placing it earlier in the npcdata.txt and see if the error persists.

 

Edit: Also make sure the class (citizen) and AI is functional. You want an AI that inherits from the citizen AI.

 

i put buffer top of manager and now buffer working and manager not... 

for manager is says unregistered class id like it was for buffer before 

  • 0
Posted (edited)

Yeah, something is wrong in between those two NPCs. Are they right after each other? Or are there NPCs in between?

Edited by Bumble
  • 0
Posted
Just now, Bumble said:

Yeah, something is wrong in between those two NPCs. Are they right after each other? Or are there NPCs in between?

yes they are together no npcs between

  • 0
Posted (edited)
7 minutes ago, Bumble said:

Can you upload your npc_pch and npcdata.txt somewhere so i can look closer

 

 

https://drive.google.com/file/d/1-YlAtMgq_Ez3Ffe2D2vyCB9baI03HHQM/view?usp=sharing

 

just changed to citizen and added my own ai named hellfire_buffer, ai have no problem it showing html.. 

Edited by girogius
  • 0
Posted
3 minutes ago, Bumble said:

I'm not seeing anything wrong in those. Could you upload the logs?

 

server logs: https://drive.google.com/file/d/1wJtNOoWhRoSunUwa3WexR66bIKXN1fYY/view?usp=sharing

 

npc logs: https://drive.google.com/file/d/1z0ogffOyDVoZkCQTWtJs47TdIJiSCqGx/view?usp=sharing

Guest
This topic is now closed to further replies.


  • Posts

    • @Darafamboos let him know that this is already shared
    • Selling for 35 us umodel that opens any ukx , utx and static meshes from samurai updat 542 protocol . Leave me a pm if needed. 
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • NEW HIDDENSTASH KEY SYSTEM INTRODUCED TO THE SITE   **Earn While You Spend - Introducing HS Cashback!**   Every purchase on our site now rewards you with **HS Keys cashback**   EVERY ONE WHO REGISTERS IN SITE UNTILL 15TH OF MAY GETS 2000 HS KEYS IN HES BALANE   Here's how it works:       **1 USD = 1000 HS Keys**   **Get 3% cashback** on every purchase   **Use your HS Keys to **save on your next order**   ---   ### ⚡ Why this is awesome   * Every order gives you value back   * Stack it with promos & HS usage   * Turn your spending into future discounts   ---   ### Example   Spend **$10** → Get **300 HS Keys** back   Spend **$50** → Get **1500 HS Keys** back   ---   ### Smart system (built for fairness)   * Cashback is rounded to keep things balanced   * Prevents abuse from tiny orders   * Rewards real buyers   ---   ### Start earning now   Every purchase = progress toward your next discount   Shop now and build your HS balance!   #cashback #gamingdeals #d2r #rewards #loyalty   Stay safe out there, heroes - and happy hunting! www.d2rhiddenstash.com     We just launched our new Affiliate Program — and it’s the easiest way to earn HS Keys.   Invite your friends using your personal link.   Example: If your friend spends $10 → you get 300 HS Keys No limits. No effort. Just share your link.   Get your referral link here: www.d2rhiddenstash.com/profile     Start earning today
    • It’s time for something new to rise. In a world filled with short-lived projects and empty promises, Emerge was created with a different vision — a vision built on experience, precision, and long-term commitment. This is not just another server launch. This is the beginning of something that is meant to last. 🌑 Eclipse x10 – A New Beginning Eclipse x10 is designed for players who seek more than just fast progression. It is built for those who value competition, balance, and a real Lineage II experience. From the very first day, every system has been carefully adjusted to provide a smooth and fair journey — where both solo players and clans can thrive. No shortcuts. No chaos. Only a structured and competitive world. ⚔️ What Awaits You • A balanced mid-rate environment (x10 core progression) • Stable and optimized gameplay • Fair systems with focus on long-term play • Competitive PvP and rewarding PvE • Active and dedicated administration • A project built with vision, not temporary hype 📊 Server Rates Basic: EXP/SP: x10 Adena: x5 Drop: x5 Spoil: x5 Secondary: Quests: x1 Seal Stones: x5 Life Stone Drop: x1 Enchant Scroll Drop: x1 Bosses: Raid Boss EXP/SP: x1 Raid Boss Drop: x1 Epic Boss EXP/SP: x1 Epic Boss Drop: x1 Enchant: Safe: +3 Max: +16 📅 Launch Information Grand Opening: 5 June 2026 The countdown has already begun. Clans are forming. Strategies are being prepared. The question is — will you be ready? 🔗 Join the Community Every strong server begins with a strong community. Be part of it from the very start. 💬 Discord: https://discord.gg/l2emerge 🌐 Website: https://www.l2emerge.com  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..