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

    • Acabei de liberar no TopL2.com o nosso MOD Oficial de VoteSystem, criado para servidores Lineage 2 que querem parar de sofrer com voto “fake” e reward entregue sem controle.   O que ele faz? O mod integra seu GameServer com o site TopL2, valida o voto do jogador e só então libera a recompensa — tudo com mais segurança, rastreio e controle.   Principais vantagens Voto verificado: o servidor confirma o voto registrado no site Reward mais seguro: evita abuso/duplicação e reduz exploit Cooldown configurável por jogador Logs e rastreio para auditoria e suporte   Instalação rápida, com arquivos organizados e prontos para copiar/aplicar   Disponível para download no https://TopL2.com   Se você é admin e quer profissionalizar seu sistema de votos e entregar reward com segurança, esse mod é pra você.  
    • Geia sas paidia eimai new edw mesa kai tha ithela na kanw mia erwtisi an kapoios mporei na me voithisei! Exw highfive (L2JMobius) kai thelw na valw custom weapons alla den exw sql file mporw na ta perasw xwris sql file kai na exw mono ta xml arxeia gia na ta valw stats/items?
    • ## [1.4.0] - 2026-01-28   ### ✨ New Features - **Vote System**: Lineage 2 servers can now use our vote–reward system. Players vote on the website and claim rewards in-game (1 vote = 1 claim) - **Vote Page**: On each server’s page (`/servers/<server>`), a **“Vote for Server”** button opens a dedicated vote page with cooldown info and optional Turnstile verification - **By Votes View**: The **“By Votes”** tab on the main page shows **actual vote counts** per server - **API Documentation**: New **API Docs** page at `/docs` (and footer link) with HMAC auth, endpoints, and examples for game server integration - **Vote API (My Servers)**: Server owners can open **“Vote API”** in My Servers to manage credentials, cooldown, allowed IPs, and open the docs   ### 🔄 Improvements - **Server Pages**: Single-server data is cached and loads faster; server pages can be opened by ID or by name (e.g. `/servers/my-server-name`) - **API Root**: Visiting the API root redirects to the docs URL configured in admin (default: site docs page) - **Admin Panel**: New **“Vote System”** tab for global settings (Turnstile, API security, default cooldown, docs URL)   ### 🔐 Security & Reliability - Turnstile (CAPTCHA) support for vote submissions to reduce abuse - HMAC-protected game server API for secure vote check/claim and stats
  • 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..