Jump to content
  • 0

Mobs That Drop Only Adena / Custom


Question

Posted (edited)

Hello,

 

I would appreciate if someone would help me out with a little scripting. I would like that mobs drop only Adena and the custom items, the IDs don't really matter for the moment, I will be able to edit those myself, just make space for few of them.

 

Here's the file, I think it's somewhere around ln 197. My idea was to make an if around the chance, like if the itemid != adenaid || itemid != smthelse, then the chance for anything else to drop is 0%, not sure if that would work, just trying to contribute as much info as I can. If you have a better solution, much thanks from me!

 

Drops are stored into .xml's so clearing with SQL query won't work.

 

https://mega.nz/#!DJNliL4T!i_2DL5QIaxYivQBBOUWbkte_OygOQHPuOfRtkynQzmg

Edited by RHDS

10 answers to this question

Recommended Posts

  • 0
Posted

You should look for the class which is loading the drop lists. I have got NpcParser. In there you should just make check like this:

if(!ArrayUtils.contains(Config.POSSIBLE_DROP_IDS, itemId))

continue;

  • 0
Posted (edited)

You should look for the class which is loading the drop lists. I have got NpcParser. In there you should just make check like this:

if(!ArrayUtils.contains(Config.POSSIBLE_DROP_IDS, itemId))

continue;

I assume I have to define somewhere POSSIBLE_DROP_IDS, but that's all I know,  I have minimal scripting knowledge, unfortunately I have no idea where to put that if and how to adjust it so it works for me.

 

I would appreciate if someone could share the full code.

Edited by RHDS
  • 0
Posted

L2Attackable, doItemDrop( method.

That would cause all of those useless drops to exist in the memory and be sorted out every time monster drops the item.

  • 0
Posted (edited)

He has, obviously, to drop existing drop system. He can hardcode chance according different points : isMinion, getLevel, isChampion, isRaidBoss.

 

In your exemple, you also feed NpcTemplate droplists. My point was to remove it.

Edited by Tryskell
  • 0
Posted (edited)

Guys, I mentioned before that I'm quite new to scripting and all that. I see that you're giving hints on how to achieve this, but since I'm new, I have little to no idea how to apply them. I would appreciate a more in depth description or a full code that I could analyze and learn from myself.

 

If it's not that easily achievable then I can just put x1 drop as a bandaid fix.

Edited by RHDS
  • 0
Posted

From my pov keeping the ratę x1 is the best option to control the drop. About unwanted drop, yeah, skipping code is the solution.

  • 0
Posted (edited)

Add this code and don't worry. Only adena in the drop list. Less memory without magic.

 

NpcTable.java

if (dropDat.getItemId() != PcInventory.ADENA_ID)
	continue;

If you need something more you need things:

  1. Be a Customer aCis and take this code;
  2. Buy this code from me (5 euro). Joke.  :happyforever:
Edited by Rootware
  • 0
Posted

 

Add this code and don't worry. Only adena in the drop list. Less memory without magic.

 

NpcTable.java

if (dropDat.getItemId() != PcInventory.ADENA_ID)
	continue;

If you need something more you need things:

  1. Be a Customer aCis and take this code;
  2. Buy this code from me (5 euro). Joke.  :happyforever:

 

Where exactly do I add that?

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

    • 寒冷的冬天 — 火热的折扣。使用促销代码 WINTER 即可在我们商店的所有购买中获得 10% 折扣! 有效链接: 数字商品商店(网站): 前往 其他服务和产品: 商店 Telegram 机器人: 前往 – 通过 Telegram 信使方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快速且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 ,用于购买我们服务的产品和服务: 1. 您可以在首次购买时使用促销代码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣——只需在我们的网站注册后按以下模板填写您的用户名:"SEND ME BONUS, MY USERNAME IS..." ——您需要在我们的论坛主题中发布! 3. SMM 面板首次试用可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和 Stars 购买机器人中每周都会赠送 Telegram Stars! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Cold winter — hot discounts. Use promo code WINTER and get 10% off on all purchases in our store! Active links: Digital goods store (Website): Go to Other services and products: Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." – you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Cold winter — hot discounts. Use promo code WINTER and get 10% off on all purchases in our store! Active links: Digital goods store (Website): Go to Other services and products: Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." – you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • 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