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

    • I'll give you my wallet if you want, haha
    • To make up for some of the waiting time we’re hosting a 3v3 Tournament on open Beta, and this time we’re raising the stakes with a $1,300 prize pool 💰   🏆 PRIZE POOL BREAKDOWN (Over 2000$ Worth of prices total)   🥇 1st Place — $700 🥈 2nd Place —$300 🥉 3rd Place — $200 🏅 4th Place — $100  5th -6th Place - $100 in Gold Coins each    All Participating Teams: $50 in Gold!   All Prices will be Paid out instantly after the tour, no waiting time and conditions. This is not simply a marketing move, we want to give back to the community.   📅 Date: Wednesday 06.05.2026 ⏰ Time: 20:00 Central European Timezone (Berlin) 📍Format: 3v3   ⚔️Why join? Cash Prices for top 4 and rewards for all participants Payments to winners sent out straight after the tournament - No waiting time or rules that you have to play live server to obtain the reward. Clean format, smooth matches, and solid prize pool and a chance to experience our brand new files   📝How to join: Form your 3-player team Group Leader Sign up here: ⁠📍・3v3-tour-registration (Include Name of Group, Name of Group Leader)   Be ready on match day!     A separate post with rules for the tournament and class setups will follow shortly.   Tag your teammates, lock in your roster, and get ready to compete. We'll be happy to see you on the OBT!   💬 Questions? Ask in ⁠🎫・ticket or send us a message   See you on L2Dark! 😏   Discord: https://discord.gg/FAJwnFpb8M
    • You should check if that condition is supported by your current sources. You can find this in  DocumentBase#parsePlayerCondition If it isnt there and you want to follow the same pattern of the other item conditions, create a custom condition to parse the classId (or multiple class ids) (there are examples to copy the code). Alternatively, you can create your own condition handler. Your condition should look like this: <cond msgId="1518"> <player classId="ADVENTURER,PALADIN" /> </cond> or <cond msgId="1518"> <player classId="93,5" /> </cond>  
    • it's Interlude client forgot to mention
    • idk if acis have this option, but you can put inside item smth like that atleast on H5         <cond msgId="1518">             <player class_id_restriction="93, 101, 108, 117" /> <!-- Dagger Masters -->         </cond>
  • 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..