Jump to content
  • 0

Npcdata Questions


Question

Posted (edited)

Hello,

 

I have some pretty newbie questions and info to confirm about  the npcdata script that I plan on modifying. If anyone could help =)

 

I will put a line as an example:

npc_begin    warrior    21342    [ketra_orc_overseer]    category={}    level=78    exp=1511275834    ex_crt_effect=0    unique=0    s_npc_prop_hp_rate=2    race=humanoid    sex=male    skill_list={@s_npc_prop_race_humanoid;@s_npc_prop_hp_lv_m2;@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_blunt;@s_npc_high_level_9}    slot_chest=[]    slot_rhand=[worldtree's_branch]    slot_lhand=[]    collision_radius={10;10}    collision_height={23;23}    hit_time_factor=0.34    hit_time_factor_skill=-1    ground_high={160;0;0}    ground_low={10;0;0}    str=40    int=21    dex=30    wit=20    con=43    men=20    org_hp=3107.6436594    org_hp_regen=8.925    org_mp=1883.736    org_mp_regen=3.1518    base_attack_type=blunt    base_attack_range=40    base_damage_range={0;0;80;120}    base_rand_dam=50    base_physical_attack=1033.1240034    base_critical=1    physical_hit_modify=16    base_attack_speed=253    base_reuse_delay=0    base_magic_attack=740.577283506    base_defend=380.23713    base_magic_defend=268.304676    base_attribute_attack={none;0}    base_attribute_defend={20;20;20;20;20;20;0}    physical_avoid_modify=7    shield_defense_rate=0    shield_defense=0    safe_height=100    soulshot_count=0    spiritshot_count=0    clan={@ketra_orc_clan}    ignore_clan_list={}    clan_help_range=300    undying=0    can_be_attacked=1    corpse_time=7    no_sleep_mode=0    agro_range=300    passable_door=0    can_move=1    flying=0    has_summoner=0    targetable=1    show_name_tag=1    npc_ai={[ketra_orc_overseer];{[MoveAroundSocial]=90};{[MoveAroundSocial1]=75};{[MoveAroundSocial2]=90};{[FriendShip1]=@q_ketra_friendship_1};{[FriendShip2]=@q_ketra_friendship_2};{[FriendShip3]=@q_ketra_friendship_3};{[FriendShip4]=@q_ketra_friendship_4};{[FriendShip5]=@q_ketra_friendship_5};{[SpiritShot]=100};{[SpeedBonus]=40};{[HealBonus]=1};{[SpiritShotRate]=50};{[W_LongRangeDDMagic]=@s_npc_prominence_magic_only9};{[W_ShortRangeDDMagic]=@s_npc_fire_burn_magic_only9};{[RangeDD]=@s_npc_blazing_circle9};{[Buff1]=@s_clan_haste2};{[Buff2]=@s_clan_shield3};{[DeBuff]=@s_single_poison9};{[DeBuff1]=@s_b_k_stone}}    event_flag={1}    unsowing=0    acquire_exp_rate=4.752176    acquire_sp=3441    acquire_rp=0    corpse_make_list={{[sealed_draconic_leather_armor_part];1;1;4.1193};{[sealed_draconic_leather_gloves_fabric];1;1;11.8371};{[sealed_draconic_leather_boots_design];1;1;11.8371}}    additional_make_list={}    additional_make_multi_list={{{{[adena];4098;8367;100}};70};{{{[elysian_low];1;1;1.5221};{[elysian_head];1;1;23.4849};{[worldtree's_branch_low];1;1;1.5221};{[worldtree's_branch_head];1;1;23.4617};{[dragon_flame_head_low];1;1;1.5221};{[dragon_flame_head_piece];1;1;23.4849};{[doom_crusher_low];1;1;1.5221};{[doom_crusher_head];1;1;23.4801}};0.4482};{{{[charcoal];1;3;27.6689};{[suede];2;6;13.8345};{[admantite_nugget];1;1;3.3203};{[mold_hardener];1;1;0.7218};{[mold_lubricant];1;1;1.6601};{[scrl_of_ench_am_s];1;1;0.0332};{[general_75_s];1;1;0.6917};{[special_75_s];1;1;0.1729};{[rare_75_s];1;1;0.0173};{[mithril_arrow];20;60;51.8793}};36.9813}}    ex_item_drop_list={{{{[herb_of_hp_a];1;1;20};{[greater_herb_of_hp_a];1;1;45};{[full_herb_of_hp_a];1;1;35}};42};{{{[herb_of_mp_a];1;1;10};{[greater_herb_of_mp_a];1;1;54};{[full_herb_of_mp_a];1;1;36}};11};{{{[herb_of_pa];1;1;20};{[herb_of_pa_speed];1;1;20};{[herb_of_crt_rate];1;1;20};{[vampiric_rage_herb];1;1;20};{[death_whisper_herb];1;1;20}};25};{{{[herb_of_ma];1;1;50};{[herb_of_ma_speed];1;1;50}};10};{{{[figher_herb];1;1;33};{[magician_herb];1;1;33};{[recovery_herb];1;1;34}};1};{{{[herb_of_move_speed];1;1;94};{[big_head_herb];1;1;3};{[vitality_herb1];1;1;3}};11}}    npc_end
1. What is additional_make_list={}  ? Any reference to the quest items on the AI file?

 

2. corpse_make_list={{[sealed_draconic_leather_armor_part];1;1;4.1193}

 

I think it refers to items that can drop only once. First number is quanity, second is? Third is the chance. Are they mutually exclusive, so only one item can drop at once?

 

 

3 .ex_item_drop_list={{{{[herb_of_hp_a];1;1;20};

 

The ex_item_drop_list refers to herbs only, that they have added for easier control? So the drops are nto mutually exclusive, the % chances of one item dropping doesnt affect the chance of others. The first number refers to the quanity, the second number refers to? The third number is the drop rate.

 

4. additional_make_multi_list={{{{[adena];4098;8367;100}};70}

 

Can anyone explain what the ;100 refers too? 4098-8367 is the quanity, and 70% is the chance of it dropping, 100 would be the chance of that value happening? Seems illogical.

 

This one isnt mutually exclusive. Does the chance of one item dropping lower the chance of another? I think that if I wanted to modify a table, this should be the chosen one.

 

 

Thank you.

 

 

 

Edited by ericvini

7 answers to this question

Recommended Posts

  • 0
Posted (edited)

You are very wrong.

I love how even certain experienced people still fail to grasp the basics of l2off (not attacking you xel, just in general :))

 

 

 

corpse_make_list  - represents SPOIL and is controlled on a per item basis. Each item listed has it's own drop\spoil chance, once a mob is spoiled\blue.

Simple list.

 

 

ex list for easier control of herbs, but works the same way as additional_make_multilist.

 

Everything is grouped.

 

ex_item_drop_list={
{{{[herb_of_hp_a];1;1;20};{[greater_herb_of_hp_a];1;1;45};{[full_herb_of_hp_a];1;1;35}};42};
{{{[herb_of_mp_a];1;1;10};{[greater_herb_of_mp_a];1;1;54};{[full_herb_of_mp_a];1;1;36}};11};
{{{[herb_of_pa];1;1;20};{[herb_of_pa_speed];1;1;20};{[herb_of_crt_rate];1;1;20};{[vampiric_rage_herb];1;1;20};{[death_whisper_herb];1;1;20}};25};
{{{[herb_of_ma];1;1;50};{[herb_of_ma_speed];1;1;50}};10};{{{[figher_herb];1;1;33};{[magician_herb];1;1;33};{[recovery_herb];1;1;34}};1};
{{{[herb_of_move_speed];1;1;94};{[big_head_herb];1;1;3};{[vitality_herb1];1;1;3}};11}}

 

Here' we have 4 groups - where only 1 item from each group can drop at any given npc death.

The number after the min\max is the % of 100 that the item has of chance to drop, when a group chance is success.

 

In the first line you have group 1 - which as 42% chance to drop, on every death of that monster.

Imagine, if the 42% chance is succesful - another 100 sided dice rolls and if the dice is between 1 to 20 - item 1 drops, and if 20 to 65, item 2 drops.

The combined value of the third parameter\chance should never ever exceed 100 - and neither should the overal group chance.

 

This ensures greater balance in how drops work by ncsoft internal design.

(And also why L2J since day 1 has been completely uncorrect and not retail alike).

 

both additional_make_multilist & ex_item_drop_list work this way.

 

The reason for herbs having they're own drop container is probably to make it easier for them to mass change when balance testing.

Edited by mcbigmac
  • 0
Posted

4. additional_make_multi_list={{{{[adena];4098;8367;100}};70}

 

100 is drop rate , that is 1x

 

100= 1x

200= 2x

 

Some one corect me if I'm wrong.

  • 0
Posted (edited)

fuck damn it. modyfing the npc data isnt as easy as I thought. Every { seem to matter and all, I cant find a "box" to add the info and not screw everything up >.<. It loads with 93219319 errors and no npcs show up.

 

I tried adding before the adena - fails. I tried adding before the end npc - fail. I m trying to figure out what each number means and how to best add stuff in the middle of em.

 

I want to make different files because I m bad with the eventdata files (one npc data for each event) - things drop only in sequence and all, and I d like to have fixed %, not depending on server pop/kill speed and all that

 

edit:

{{{[coal];1;1;48.227};{[varnish];1;1;48.227};{[rp_short_spear];1;1;3.546}};9.1008}}

These 3 items are related. This makes me thing only one of thsoe can drop at once or something like it. Whatever it is, it makes adding anything - while not breaking the file - freaking hard

 

Anyone knows of some kind of software to add stuff to the npcdata not having to mess with the text directly w notepad++?

Edited by ericvini
  • 0
Posted

You are very wrong.

I love how even certain experienced people still fail to grasp the basics of l2off (not attacking you xel, just in general :))

 

 

 

corpse_make_list  - represents SPOIL and is controlled on a per item basis. Each item listed has it's own drop\spoil chance, once a mob is spoiled\blue.

Simple list.

 

 

ex list for easier control of herbs, but works the same way as additional_make_multilist.

 

Everything is grouped.

 

ex_item_drop_list={
{{{[herb_of_hp_a];1;1;20};{[greater_herb_of_hp_a];1;1;45};{[full_herb_of_hp_a];1;1;35}};42};
{{{[herb_of_mp_a];1;1;10};{[greater_herb_of_mp_a];1;1;54};{[full_herb_of_mp_a];1;1;36}};11};
{{{[herb_of_pa];1;1;20};{[herb_of_pa_speed];1;1;20};{[herb_of_crt_rate];1;1;20};{[vampiric_rage_herb];1;1;20};{[death_whisper_herb];1;1;20}};25};
{{{[herb_of_ma];1;1;50};{[herb_of_ma_speed];1;1;50}};10};{{{[figher_herb];1;1;33};{[magician_herb];1;1;33};{[recovery_herb];1;1;34}};1};
{{{[herb_of_move_speed];1;1;94};{[big_head_herb];1;1;3};{[vitality_herb1];1;1;3}};11}}

 

Here' we have 4 groups - where only 1 item from each group can drop at any given npc death.

The number after the min\max is the % of 100 that the item has of chance to drop, when a group chance is success.

 

In the first line you have group 1 - which as 42% chance to drop, on every death of that monster.

Imagine, if the 42% chance is succesful - another 100 sided dice rolls and if the dice is between 1 to 20 - item 1 drops, and if 20 to 65, item 2 drops.

The combined value of the third parameter\chance should never ever exceed 100 - and neither should the overal group chance.

 

This ensures greater balance in how drops work by ncsoft internal design.

(And also why L2J since day 1 has been completely uncorrect and not retail alike).

 

both additional_make_multilist & ex_item_drop_list work this way.

 

The reason for herbs having they're own drop container is probably to make it easier for them to mass change when balance testing.

 

No problem even it was to me :). I admit is some good years since now that I touched that section. Last time was on old L2Paranoid in 2008 or 2009 :). But with time I forgot alot :).

  • 0
Posted (edited)

Thank you for the explanation, makes it 10000% clearer. And yes I m terribad =p

 

Now to figure out how I ll add crap to every monster while not breaking it up - trying to find one item in common on every line that could be altered at once and NOT break everything >.<

 

I

Edited by ericvini
  • 0
Posted

find: }} ex_item_drop_list={

 

replace with: };{{{[event_medal];1;1;100}};100}} ex_item_drop_list={

 

So it adds stuff at the end of the list. Worked on a mass scale (whole file)

 

Now I just gotta make the files for each event

 

yay

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



×
×
  • Create New...