Jump to content
  • 0

Adding Npcs


Jojo_

Question

Hi
I have a tiny issue to add basic npcs.
Each time I try to add npc in npcdata.txt it does not load.
Just load until processing NPCDATA.TXT file and crash without any error even in logs.
I tried to add a simple thing like copy paste change id + name and adding name in npc_pch but nothing it just crash.
(I just want to add a simple npc that does same ai than another with just different look and id. (agathion)
Yes I have added the AI in ai.obj

 

class 0 ai_ag_fairy_00 : default_npc
class_end

here my line in NPCDATA.TXT
npc_begin citizen 1337001 [ag_fairy_00] category={} level=55 exp=70853089 ex_crt_effect=0 unique=0 s_npc_prop_hp_rate=1 race=etc sex=female skill_list={@s_npc_prop_race_etc;@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_fist} slot_chest=[] slot_rhand=[] slot_lhand=[] collision_radius={5;5} collision_height={3.75;3.75} hit_time_factor=0.6 hit_time_factor_skill=-1 ground_high={180;0;0} ground_low={60;0;0} str=40 int=21 dex=30 wit=20 con=43 men=25 org_hp=1673.05473 org_hp_regen=6.5 org_mp=889.8 org_mp_regen=2.4 base_attack_type=fist base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=10 base_physical_attack=388.11142 base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=265.02979 base_defend=223.6362 base_magic_defend=163.64727 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=2 spiritshot_count=2 clan={} ignore_clan_list={} clan_help_range=0 undying=0 can_be_attacked=1 corpse_time=7 no_sleep_mode=0 agro_range=0 passable_door=0 can_move=1 flying=0 has_summoner=0 targetable=1 show_name_tag=1 npc_ai={[ai_ag_fairy_00]} 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
Edited by Jojo_
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • How's the project doing? Is there any news? It really interesting 🤔
    • thx for answer, i tried and woks encrypting, but i still having crashes 😞 i changed the icon in skillgrp.dat from "icon.skill0003" to "Myicons.misil" as i saved the file before endec and nothing. this is the report i got
    • New Season coming May 2024! First post updated      Website: L2Kain.net  Discord: https://discord.gg/l2kain  Wiki: https://info.kain.ws/   Important Dates   Server Start: TBD  Open Beta Test: 10th of May 2024!   Basic Information     Briefly about the concept of the server! We decided to move away from the standard Mid-Rate server concept and keep the mechanics of our beloved Lineage 2 that everyone loves! Massive battles for epic bosses, battles for profitable farming locations, resource spoilage and equipment crafting, daily instances, a balanced economy and much more. This server is build as a Craft-PvP concept. The goal is to gather players with a variety of preferences in the game and make a high-quality and interesting server with alternative character development options. We are well aware that "grinding" is an integral part of the game, but we diluted the boring and the same type of farming with interesting solutions and non-standard mechanics!   We have prepared a new High Five x25 on Modern Client for you. This server will be another step in the development of the platform and the project as a whole! Your appeals to those. support was not ignored, which means the new server will be even better than the previous one!      ⭐ Promotions and Bonuses for new players!     ⭐ Events and Giveaways daily!   ⭐ Rewards for Voting!   ℹ️ Server Rates Learn more about server rates! Server rates are configured in such a way that farming is best rewarded. Adena, drops, quests, various rewards and prices in the game store are well balanced among themselves!   Basic Server Rates:  ⭐ Experience & Skill Points - x25  ⭐ Adena Drop - x15 & Fixed Chance 66%  ⭐ Drop Rates - x10  ⭐ Spoil Rates - x10   Crafting keys, recipes drop & spoil with fixed amount from 2 to 3 and increased chances on all locations and quests  related to farm them.  ⭐ Quest Rates - x5  ⭐ Fortresses & Sieges - x5  ⭐ Raid Bosses & Epic Bosses - x1  ⭐ Weight Limit - x10      Connect with Us:  Discord: https://discord.gg/l2kain  Facebook: https://www.facebook.com/KainLineage2  TikTok: https://www.tiktok.com/@l2kain.net  YouTube: https://www.youtube.com/@Lineage2Kain
  • Topics

×
×
  • Create New...