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

    • Hi, I’m interested in purchasing a C4 (Chronicle 4) server pack or source code, preferably something that has already been tested and run on a live server. I’m looking for a stable, well-tested project rather than a fresh/unproven build. If you have something available for sale, please send me some details, including the price and what is included.
    • ⚡ High-performance AI tools ready to boost your productivity. Instant delivery on ChatGPT Plus, Claude, and Cursor!
    • To give your server the maximum launch exposure, we built L2Calendar as a calendar-first listing. We are pushing it hard with constant SEO, a 4-language Blog/Vlog, and a Public API to bring real players to your listing — our primary goal is to become the most complete and best-known L2 calendar on the internet.   FREE Server Adding — Auto-Approved, add your server in just 2 minutes at l2calendar.com/addnews. Simply add our button to your website and your listing is auto-approved instantly. We give you the code, you paste it, done. VIP Auto-Approved Instantly No button required. Any VIP listing is approved automatically upon submission. 🎁 All 4 VIP tiers are currently FREE (limited stock), so you can get top placement completely free at l2calendar.com/addnews_vip 4 VIP Tiers — Fully Automated Choose Bronze, Silver, Gold, or Gold+, all pinned above free servers. Select the number of days and your VIP goes live instantly. Manage everything yourself using your Unique ID (xxx-xxx-xxx-xxx) at l2calendar.com/extend-vip — extend or upgrade anytime. A 20% discount will be available when paid tiers return.  VIP4 Announcer + LIVE Countdown Timer, only VIP Gold+ (VIP4) gets the animated homepage announcer with a live ticking countdown (e.g. “Starts in 02:14:33”). It gives upcoming launches extra visibility and creates real hype before opening. EXCLUSIVE: Add to Calendar — Google / Outlook / AppleEvery server card includes an Add to Calendar option. Players can add your opening in one click to Google Calendar, Outlook, or Apple Calendar and receive a native notification when your server starts. More day-one logins, fewer missed launches. Powerful Discovery, players can discover servers by 15 Chronicles (Interlude to Essence), 5 Rate Types (Low / Craft / PvP / GvE / PTS), 12 Feature Labels, and Calendar Date (Today / Tomorrow / Next 10 Days / Past 10 Days + date picker).   Our Website: https://l2calendar.com Collaboration Contact: admin@l2calendar.com
    • Ai server development live!     
  • 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..