[MANUAL] Npcdata.txt - формат и описание параметров

Тема в разделе "Установка и настройка (Setup and configuration)", создана пользователем root, 28 сен 2014.

  1. root

    root Administrator Команда форума Administrator Moderator Developers Team

    Регистрация:
    23 авг 2014
    Сообщения:
    253
    Симпатии:
    56
    Баллы:
    11
    Формат:
    Код:
    npc_begin warrior 20149 [iron_golem] level=38 acquire_exp_rate=1.748043 acquire_sp=157 unsowing=0 clan={-1} ignore_clan_list={} clan_help_range=300 slot_chest=[] slot_rhand=[] slot_lhand=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_construct;@s_npc_resist_bow4;@s_npc_resist_dagger2;@s_npc_weakness_blunt1;@s_npc_resist_magical_dmg8;@s_npc_resist_bleed3} npc_ai={[iron_golem];{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0};{[DDMagicSlow][email protected]_npc_ice_for_slow3}} category={} race=construct sex=male undying=0 can_be_attacked=1 corpse_time=7 no_sleep_mode=0 agro_range=1000 ground_high={20;0;0} ground_low={20;0;0} exp=12395217 org_hp=886.09975 org_hp_regen=4.5 org_mp=447.96 org_mp_regen=1.8 collision_radius={18;18} collision_height={34;34} str=40 int=21 dex=30 wit=20 con=43 men=10 base_attack_type=sword base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 base_physical_attack=142.020663636364 base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=106.67987 base_defend=163.287157 base_magic_defend=108.62405 physical_avoid_modify=0 soulshot_count=0 spiritshot_count=0 hit_time_factor=0.41 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} hp_increase=0 mp_increase=0 safe_height=100 npc_end
    
    Описание параметров:

    • warrior - тип NPC
    • 20149 - ID NPC
    • [iron_golem] - имя NPC (имя NPC, как вы его будете вбивать в клиенте при вызове)
    • level=38 - уровень NPC
    • acquire_exp_rate=1.748043 acquire_sp=157 - the XP/SP rate that NPC gives (acquire_exp_rate is calculated using Exp/(Level ^ 2) = acquire_exp_rate)
    • clan={-1} clan_help_range=300 - the clan of NPC, the range where the NPC clanies will be agro
    • skill_list={@s_race_construct;@s_npc_resist_bow4;@ s_npc_resist_dagger2;@s_npc_weakness_blunt1;@s_npc _resist_magical_dmg8;@s_npc_resist_bleed3} - the passive skills of the NPC in our chase: race construct , resist bow 4, etc.
    • npc_ai={[iron_golem];{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0};{[DDMagicSlow][email protected]_npc_ice_for_slow3}} - here we have the ai.obj parameters like: name in ai.obj, the NPC socials and what magic he cast
    • category={} race=construct sex=male undying=0 - the NPC category , his race again, his sex, and hes die stat 0 can die
    • can_be_attacked=1 corpse_time=7 no_sleep_mode=0
    =1 can be attacked =0 he can't, corpse time 7 mean in 7s he will despair , sleep mode =0 means if the npc is affected or not by the option "Silent when no user" from the L2NPC. (corrected by FidoW) see below detailes

    • agro_range=1000 ground_high={20;0;0} ground_low={20;0;0} - the range where he keep being agro up/down
    • exp=12395217 org_hp=886.09975 org_hp_regen=4.5 org_mp=447.96 org_mp_regen=1.8 - here is his HP/MP and the regeneration rate of them.
    • str=40 int=21 dex=30 wit=20 con=43 men=10 - here are the NPC parameters
    • base_attack_type=sword base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 base_physical_attack=142.020663636364 base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=106.67987 base_defend=163.287157 base_magic_defend=108.62405
    Here are the attack parameters: type of attack, rage of attack, P attack, M Attack, Attack speed and his P/M defence.

    • soulshot_count=0 spiritshot_count=0 - If he use or not soulshot/spiritshot =0 mean no =1 mean yes 1 soulshot/spiritshot
    • corpse_make_list={} - into the {} comes the spoiles mats with the rate/change ex: {[stem]1;1;99.99} and means 99.99% chance of spoil
    • additional_make_multi_list={} - here comes the NPC droplist same as above.