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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hello Everyone  I hope you missed Old nostalgia BNB , is time to come back and be ready for the new journey  L2 BnB C3 Website: https://l2bnb.eu/ Discord: https://discord.gg/jaCJKYXgYZ Max Level 75 Max Grade (A) Safe:3 , Max:16 Anti-Botting. Auto learning skills , Auto Loot , Auto Create Account Subclass (NO) quest. Retail Buffs/DS Time ,Need Buffer Char (NO NPC Buffer) OfflineShop,OfflineCraft,ChangePass No GM Shop,No Global Gk,No Donate,Free Teleport only LVL 1 commands: .offline , .changepassword 99+% Retail 1+1 Window Per Pc BASIC FEATURES: Exp/SP: x 3 Adena: x3 Drop: х3 Spoil: x3 Support 24/7 GLOBAL COMMUNITY
    • 亲爱的朋友们,我们很高兴向您介绍我们的全新服务 —— KYC 实名认证,适用于任何平台!️ 我们为加密货币交易所、在线市场、社交网络、主机服务商、赌场及其他合法网站提供实名认证服务。认证可通过护照或驾驶证完成。不支持任何涉及非法活动的网站。 可用国家: 东欧:俄罗斯、乌克兰、白俄罗斯、乌兹别克斯坦、亚美尼亚、吉尔吉斯斯坦、哈萨克斯坦 — $30–33 欧盟(西欧,通常为拉脱维亚和爱沙尼亚) — $80–88 非洲:尼日利亚、肯尼亚 — $30–33 如果您需要注册并验证您的账户,总金额将额外收取 10% 手续费。 如需申请 KYC 认证或咨询其他问题,请通过以下方式联系我们: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ 邮箱: solomonbog@socnet.store SOCNET 商店有效链接: 数字商品商店(网站):进入 商店 Telegram 机器人:进入 – 通过 Telegram 消息应用便捷访问商店。 Telegram 星星购买机器人:进入 – 快速且优惠地购买 Telegram 星星。 SMM 面板:进入 – 推广您的社交媒体账户。 我们为您准备了最新的促销与特别优惠,用于购买我们的产品与服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)即可在 9 月于我们的商店(网站或机器人)购物享受优惠!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获得 $1 商店余额或 10–20% 折扣 —— 只需在网站注册后按照以下格式留言:"SEND ME BONUS, MY USERNAME IS..." – 在我们的论坛帖中发布即可! 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在网站(支持)提交标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道及星星购买机器人中举行 Telegram 星星赠送活动! 新闻资讯: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh
    • 亲爱的朋友们,我们很高兴向您介绍我们的全新服务 —— KYC 实名认证,适用于任何平台!️ 我们为加密货币交易所、在线市场、社交网络、主机服务商、赌场及其他合法网站提供实名认证服务。认证可通过护照或驾驶证完成。不支持任何涉及非法活动的网站。 可用国家: 东欧:俄罗斯、乌克兰、白俄罗斯、乌兹别克斯坦、亚美尼亚、吉尔吉斯斯坦、哈萨克斯坦 — $30–33 欧盟(西欧,通常为拉脱维亚和爱沙尼亚) — $80–88 非洲:尼日利亚、肯尼亚 — $30–33 如果您需要注册并验证您的账户,总金额将额外收取 10% 手续费。 如需申请 KYC 认证或咨询其他问题,请通过以下方式联系我们: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ 邮箱: solomonbog@socnet.store SOCNET 商店有效链接: 数字商品商店(网站):进入 商店 Telegram 机器人:进入 – 通过 Telegram 消息应用便捷访问商店。 Telegram 星星购买机器人:进入 – 快速且优惠地购买 Telegram 星星。 SMM 面板:进入 – 推广您的社交媒体账户。 我们为您准备了最新的促销与特别优惠,用于购买我们的产品与服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)即可在 9 月于我们的商店(网站或机器人)购物享受优惠!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获得 $1 商店余额或 10–20% 折扣 —— 只需在网站注册后按照以下格式留言:"SEND ME BONUS, MY USERNAME IS..." – 在我们的论坛帖中发布即可! 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在网站(支持)提交标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道及星星购买机器人中举行 Telegram 星星赠送活动! 新闻资讯: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh
    • 亲爱的朋友们,我们很高兴向您介绍我们的全新服务 —— KYC 实名认证,适用于任何平台!️ 我们为加密货币交易所、在线市场、社交网络、主机服务商、赌场及其他合法网站提供实名认证服务。认证可通过护照或驾驶证完成。不支持任何涉及非法活动的网站。 可用国家: 东欧:俄罗斯、乌克兰、白俄罗斯、乌兹别克斯坦、亚美尼亚、吉尔吉斯斯坦、哈萨克斯坦 — $30–33 欧盟(西欧,通常为拉脱维亚和爱沙尼亚) — $80–88 非洲:尼日利亚、肯尼亚 — $30–33 如果您需要注册并验证您的账户,总金额将额外收取 10% 手续费。 如需申请 KYC 认证或咨询其他问题,请通过以下方式联系我们: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ 邮箱: solomonbog@socnet.store SOCNET 商店有效链接: 数字商品商店(网站):进入 商店 Telegram 机器人:进入 – 通过 Telegram 消息应用便捷访问商店。 Telegram 星星购买机器人:进入 – 快速且优惠地购买 Telegram 星星。 SMM 面板:进入 – 推广您的社交媒体账户。 我们为您准备了最新的促销与特别优惠,用于购买我们的产品与服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)即可在 9 月于我们的商店(网站或机器人)购物享受优惠!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获得 $1 商店余额或 10–20% 折扣 —— 只需在网站注册后按照以下格式留言:"SEND ME BONUS, MY USERNAME IS..." – 在我们的论坛帖中发布即可! 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在网站(支持)提交标题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道及星星购买机器人中举行 Telegram 星星赠送活动! 新闻资讯: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock