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
01/18/2021 22:54:05.262, invalid char [/] at line [88346]
01/18/2021 22:54:05.262, invalid char [/] at line [88346]
01/18/2021 22:54:05.262, [.\NpcMakerDB.cpp][115] Parsing NPC Spawn file failed, at line[88346]

 

It looks like something's up with your npcpos.txt.

  • 0
Posted
9 minutes ago, Bumble said:

01/18/2021 22:54:05.262, invalid char [/] at line [88346]
01/18/2021 22:54:05.262, invalid char [/] at line [88346]
01/18/2021 22:54:05.262, [.\NpcMakerDB.cpp][115] Parsing NPC Spawn file failed, at line[88346]

 

It looks like something's up with your npcpos.txt.

 

88346 is a last line and i cant see nothing wrong 😕

 

npcpos.txt: https://drive.google.com/file/d/12DuLphFa3TR1Tq9abbOHHisJYpMimceX/view?usp=sharing

  • 0
Posted (edited)

Yeah sorry, I was looking at one of the older logs.

 

I'm looking through this now, I'll let you know if I find something.

 

Edit:

 

03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_movement1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_combat1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_condition1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_critical1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_magic1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_shield_defence1)
03/24/2021 02:01:59.154, [.\ObjectDB.cpp][813] Parsing Objects file failed line(9693)

 

These are not good. Duplicated skills can cause trouble.

 

Edited by Bumble
  • 0
Posted (edited)
17 hours ago, Bumble said:

Yeah sorry, I was looking at one of the older logs.

 

I'm looking through this now, I'll let you know if I find something.

 

Edit:

 

03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_movement1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_combat1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_condition1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_critical1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_magic1)
03/24/2021 02:01:57.237, [.\Skill.cpp][1878] Duplicated skill (m_s_improve_shield_defence1)
03/24/2021 02:01:59.154, [.\ObjectDB.cpp][813] Parsing Objects file failed line(9693)

 

These are not good. Duplicated skills can cause trouble.

 

 

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.

Edited by girogius
  • 0
Posted
1 minute ago, Bumble said:

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.

I was thinking about this way but i thought there was a easier way, its so painful :d 😕  thanks

  • 0
Posted
On 3/24/2021 at 10:40 PM, Bumble said:

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.

 

I created program that can edit buff times.. just in case if you will need it

 

[Share] [L2 OFF] Buff time editor - Server Shares & Files [L2OFF] - MaxCheaters.com | Lineage 2 Development Marketplace Bots and Cheats

Guest
This topic is now closed to further replies.


  • Posts

    • [New Server] L2Aquila — Gracia Final x9300 No Wipe | Custom Farming Zones Hi all, Rolling a fresh Gracia Final x9300 server — stable core, dedicated box, no wipe, no close, 24/7. WHAT TO EXPECT • 9300x EXP / 3000x SP / 5500x Adena / Safe +3 / Max +25 • Custom Shop + Custom Farming Zones • Free Starter Pack with 20 Custom Coins • Accounts auto-created on first login — no registration • Olympiads, TvT, CTF, offline trading, buff shop LINKS • Website & downloads: https://l2aquila.com/downloads/ • Forum: https://l2aquila.com/forum/ • Discord: https://discord.gg/5ZyBRvG4k • Gameplay tour: https://youtu.be/5QS8qpDG_wc • Install guide: https://youtu.be/F_BfBeiof-s Happy to answer any questions here. Feedback welcome!
    • [New Server] L2Aquila — Gracia Final x9300 No Wipe | Custom Farming Zones Hi all, Rolling a fresh Gracia Final x9300 server — stable core, dedicated box, no wipe, no close, 24/7. WHAT TO EXPECT • 9300x EXP / 3000x SP / 5500x Adena / Safe +3 / Max +25 • Custom Shop + Custom Farming Zones • Free Starter Pack with 20 Custom Coins • Accounts auto-created on first login — no registration • Olympiads, TvT, CTF, offline trading, buff shop LINKS • Website & downloads: https://l2aquila.com/downloads/ • Forum: https://l2aquila.com/forum/ • Discord: https://discord.gg/5ZyBRvG4k • Gameplay tour: https://youtu.be/5QS8qpDG_wc • Install guide: https://youtu.be/F_BfBeiof-s Happy to answer any questions here. Feedback welcome!
    • Hey everyone! A few of us are currently brainstorming and designing a new Lineage 2 private server. Our goal is to capture that classic L2 atmosphere we all fell in love with back in the day, but with a modern, refined feel. We’re aiming for a community-driven, dynamic server where good PvP, meaningful progression, clan life, and that nostalgic L2 vibe take center stage—a place where it just feels good to log in and play. Instead of deciding everything on our own behind closed doors, we want to build something the community actually wants to play on. We’ve put together a short survey to gather your thoughts: What did you love most about older/classic servers? What burnout factors or mechanics are you tired of? What systems or QoL (quality of life) features would you like to see? What red flags make you avoid a server entirely? It only takes a few minutes to fill out, and every single response helps us shape the vision for this project. We can't promise every single idea will be implemented, but we promise to read and consider all of your feedback.   https://docs.google.com/forms/d/e/1FAIpQLScKXptLs9ci_y8PfSmfy9dr2iSvZ9KI9dF3qDaKeFgg9RAaMQ/viewform?pli=1   Thanks a lot for your time and help in bringing this project to life! Let us know your thoughts in the comments as well.
    • Standard Google accounts added in login:password format; aged 7–14 days on average after registration; high quality, manually registered!
  • 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..