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

    • Maneco is 100% correct, there is a hacker, my acc was accessed and my email was also asking for LTC, because if not, he would leak my things, but he doesn't know that I can also find him and you can be sure he will die!!!
    • Vilmis is the biggest scammer in history. He bans his members when they complain about something. I know more than one who's banned him. He updates shit, but he charges you like he's doing something serious.
    • I did not want to, but I will tell a few things (just because of other members that might understand something wrong): 1. Nothing held as hostage some kinda customer of yours. I think even now could find your donate panel code at my source code. So, stop spreading a lie because of your head progressive diseases. 2. Don't use my old customer's post as counterargument. We all had the worst customers which think they are the righest ones no matter what. He was one of them. He caused a lot of problems to me. Also, he was rude and disrespectful. 3. You're just simply hater. No matter what good I'm gonna say you gonna say in reverse. Smarter people sees the truth. 4. Look, you don't like me, I don't like you, but it's unnecessary to comment all post about my project and write everything worst just because you hate me. 😉
    • I've seen this many times, to be honest, let's hope that this time it will actually happen. I would suggest building something that helps develop trust within the community's sales. It could be something similar to FunPay, for example, which ensures secure trades for both the seller and the buyer, along with a rating system for both parties. I would also recommend doing something about the voting site, which has been paused for I don't know how many years since the Fiverr failure. Last but not least, I’d suggest creating an open blog or at least publishing weekly articles that can attract more people to the forum or encourage members to return and read them. The topics of these articles could include overviews and opinions on L2 or GTA V servers, PUBG, Fortnite, tech news, coding updates, or even general news that the author finds interesting.   How could you know such an information? 🤔 And yeah I agree on the part about the poor management
    • ➡ Discount for your purchase: JUNE2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock