Jump to content
  • 0

How to make a mob "aggressive" in L2Off?


blackdevils

Question

3 answers to this question

Recommended Posts

  • 0

Hi
Here an example of Aggresive monster (Krator ( A golem that send nice wind ball if you try to run away in Cruma Tower) in NPCData. 

npc_begin    warrior    20217    [krator]    category={}    level=44    exp=23180550    ex_crt_effect=0    unique=0    s_npc_prop_hp_rate=2    race=construct    sex=male    skill_list={@s_npc_prop_race_construct;@s_npc_prop_hp_lv_m2;@s_npc_prop_mp_lv_p0;@s_npc_prop_pa_lv_n1;@s_npc_prop_ma_lv_n1;@s_npc_prop_pd_lv_p5;@s_npc_prop_md_lv_p3;@s_npc_prop_armor_type_n;@s_npc_prop_weapon_type_blunt;@s_npc_resist_sleep_ex5;@s_npc_resist_poison_ex5;@s_npc_resist_bleed_ex5;@s_npc_resist_bow1;@s_npc_weakness_blunt1}    slot_chest=[]    slot_rhand=[]    slot_lhand=[]    collision_radius={20;25}    collision_height={31;37.5}    hit_time_factor=0.41    hit_time_factor_skill=-1    ground_high={23;0;0}    ground_low={23;0;0}    str=40    int=21    dex=30    wit=20    con=43    men=20    org_hp=1138.62924    org_hp_regen=5.5    org_mp=584    org_mp_regen=2.1    base_attack_type=blunt    base_attack_range=40    base_damage_range={0;0;80;120}    base_rand_dam=50    base_physical_attack=222.23112    base_critical=1    physical_hit_modify=9    base_attack_speed=253    base_reuse_delay=0    base_magic_attack=151.75505    base_defend=173.43552    base_magic_defend=126.91259    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=0    spiritshot_count=0    clan={@porta_clan}    ignore_clan_list={}    clan_help_range=400    undying=0    can_be_attacked=1    corpse_time=7    no_sleep_mode=0    agro_range=1000    passable_door=0    can_move=1    flying=0    has_summoner=0    targetable=1    show_name_tag=1    npc_ai={[krator];{[MoveAroundSocial]=116};{[MoveAroundSocial1]=116};{[MoveAroundSocial2]=116};{[IsAggressive]=1};{[AttackRange]=2};{[Skill02_Check_Dist]=1};{[Skill02_Dist_Min]=700};{[Attack_DecayRatio]=30};{[SoulShot]=100};{[SoulShotRate]=10};{[SpiritShot]=100};{[SpiritShotRate]=5};{[LongRangeGuardRate]=5};{[Skill02_ID]=@s_mega_storm_strike_for_slow4}}    event_flag={1}    unsowing=0    acquire_exp_rate=4.130438    acquire_sp=522    acquire_rp=0    corpse_make_list={{[silver_nugget];1;3;52.4276};{[orcish_glaive_blade];1;1;2.056};{[rp_earing_of_protection];1;1;13.3744}}    additional_make_list={}    additional_make_multi_list={{{{[adena];1032;2115;100}};70};{{{[mithril_boots];1;1;0.2489};{[mithril_boots_design];1;1;10.8622};{[chain_boots];1;1;0.2489};{[chain_boots_part];1;1;10.8622};{[karmian_boots];1;1;0.2489};{[karmian_boots_fabric];1;1;10.8622};{[plate_leather_boots];1;1;0.2489};{[plate_leather_boots_lining];1;1;10.8622};{[dwarven_chain_boots];1;1;0.2489};{[dwarven_chain_boots_part];1;1;10.8622};{[boots_of_seal];1;1;0.2489};{[boots_of_seal_pattern];1;1;10.8622};{[reinforce_mithril_gloves];1;1;0.2489};{[reinforce_mithril_gloves_design];1;1;10.8622};{[chain_gloves];1;1;0.2489};{[chain_gloves_design];1;1;10.8622};{[karmian_gloves];1;1;0.2489};{[karmian_gloves_fabric];1;1;10.8623}};5.6958};{{{[thread];1;1;74.1443};{[silver_nugget];1;1;14.8289};{[iron_thread];1;1;3.7072};{[compound_braid];1;1;2.4715};{[rp_earing_of_protection];1;1;1.8914};{[rp_demon's_hose];1;1;0.8059};{[rp_stiletto];1;1;0.1292};{[rp_adv_comp_bspiritshot_c];1;1;0.1236};{[general_46_c];1;1;1.4829};{[special_46_c];1;1;0.3707};{[rare_46_c];1;1;0.0371};{[unique_46_c];1;1;0.0073}};27.849}}    ex_item_drop_list={}    npc_end


Now the part you need to change is in "npc_ai" (still in this line not AI.obj only NPCDATA.TXT is needed to make a monstrer aggresive:

 

{[IsAggressive]=1};

1 mean it is aggresive 0 mean passive simple as that :)
Now be sure to check it's aggresive range 
 

agro_range=1000

in general most of high level skill that 900-1000 for mage. (600 for buffs if i am right)

also if you want to link your monster each other put them in "clan"

clan={@porta_clan}    ignore_clan_list={}    clan_help_range=400

This mean Krator is in porta clan and will agro you if you hit anything from that clan in distance of 400 from him not you :P (I think if you played a bit Lineage you know what this mean)

 

Edited by Jojo_
  • Upvote 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...