Jump to content

Question

Posted

Is it a bug or am I setting something wrong?
use l2jsunrise. and my premium system has the option of modifying the drop in premiums. but only works for what falls directly into the player's purse.
So far, so good. but if it falls to the ground, even if I set this part here, for x2 it does not work:

 

# ---------------------------------------------------------------------------
# Premium Drop Configuration
# These rates will be applied to premium char if AutoLoot in Drops.ini is TRUE
# otherwise might create some exploits with pickup action
# ---------------------------------------------------------------------------

# General drop multiplier if item id is NOT in PrRateDropItemsById list
PremiumRateDropItems = 2


# Specific multipliers for items, if you add one items in this list will
# bypass PremiumRateDropItems
# TIP: if you have one item id in Rates.ini for example 57,20
# This rate will multiply 20 * your number here so be carefull
PrRateDropItemsById = 57,2;30007,2

 

 

Adena ID: 57

Custom Coin ID ; 30007

 

Can someone please help me?

11 answers to this question

Recommended Posts

  • 0
Posted (edited)

These rates will be applied to premium char if AutoLoot in Drops.ini is TRUE

otherwise might create some exploits with pickup action

 

I think the answer is right there.

Edited by FrozenWarrior
  • 0
Posted

Yes, I know.
But I want to for what to drop from the RaidBoss (On the Ground) quit according to the premium. in my case x2. Has as?

in fact I wanted it to fose like this:

PremiumRateRaidDropItems = 2

  • 0
Posted
1 hour ago, HARDECORE said:

Yes, I know.
But I want to for what to drop from the RaidBoss (On the Ground) quit according to the premium. in my case x2. Has as?

in fact I wanted it to fose like this:

PremiumRateRaidDropItems = 2

 

If there isn't a config for PremiumRateRaidDropItems you probably have to make one.

  • 0
Posted
2 minutes ago, FrozenWarrior said:

 

If there isn't a config for PremiumRateRaidDropItems you probably have to make one.

excuse me. I don't know how to program enough for this. Can you help me with this?

  • 0
Posted (edited)

I add this in L2Npc.java

	public L2ItemInstance dropItem(L2PcInstance player, int itemId, long itemCount)
	{
		L2ItemInstance item = null;
		
		for (int i = 0; i < itemCount; i++)
		{
			// Randomize drop position.
			final int newX = (getX() + Rnd.get((RANDOM_ITEM_DROP_LIMIT * 2) + 1)) - RANDOM_ITEM_DROP_LIMIT;
			final int newY = (getY() + Rnd.get((RANDOM_ITEM_DROP_LIMIT * 2) + 1)) - RANDOM_ITEM_DROP_LIMIT;
			final int newZ = getZ() + 20;
			
			if (ItemData.getInstance().getTemplate(itemId) == null)
			{
				_log.error("Item doesn't exist so cannot be dropped. Item ID: " + itemId + " Quest: " + getName());
				return null;
			}
			
+			if ((player != null) && player.isPremium())
+			{
+				itemCount *= player.calcPremiumDropMultipliers(itemId);
+			}
+			
			item = ItemData.getInstance().createItem("Loot", itemId, itemCount, player, this);
			
			if (item == null)
			{
				return null;
			}
			
			if (player != null)
			{
				item.getDropProtection().protect(player);
			}
			
			item.dropMe(this, newX, newY, newZ);
			

so the drop that is not autoloot works x2. but when you drop some herbs this happens..

 

D0fqOlY.jpg

 

Edited by HARDECORE
  • 0
Posted

Problem with calcPremiumDropMultipliers perhaps. Check the method first, debug what value it return.

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

    • Good luck with your project!
    • Hola Fissban , che queria preguntarte algo estoy tratando de hacer que el testserver ande pro que cuando logeo y voy a elejir el servidor no aparece y he estado con la ia incluso buscando que puede ser pero no e logrado decifrarlo me darias una mano o alguien ?  
    • The Return of L2Elixir – A Legacy Reborn in 2025 Read more features: https://l2elixir.org/features/ It’s time to relive the magic. Many of you remember L2Elixir, first launched in 2008 – a server that brought players together, created friendships, rivalries, and unforgettable memories. For two+ incredible years, until its closure in 2010, Elixir was more than just a server… it was home. In 2018, a fake project borrowed the name and damaged that legacy, but the true memories of L2Elixir never died. Today, in 2025, we are proud to announce that a new dedicated team has taken up the mantle to bring L2Elixir back to life – with respect for the past and a fresh vision for the future.   What to Expect We’re not here to be “just another server.” Our mission is to bring back nostalgia with innovation, offering a unique progression experience: Interlude-Like start, capturing that classic old-school feeling. A natural evolution into Gracia Final. Followed by Gracia Epilogue, keeping the journey alive without losing balance. This is not a copy-paste server – it’s a carefully crafted world designed to honor the spirit of Lineage II while introducing fresh ideas to keep the gameplay alive and rewarding. Why L2Elixir? A balanced environment where community comes first. A project built with passion, not profit. A server that values longevity, fairness, and nostalgia.   📅 Launch Date & Details Closed Beta: Online. Open Beta & Rewards: November 15 & 21:00 UTC +2 Launch: November 28 & 21:00 UTC +2   🔗 Join the Community Be part of history once again. Follow our Discord, join the discussion, and prepare to step back into the world where legends were made.   https://l2elixir.org/ https://discord.gg/5ydPHvhbxs L2Elixir 2025 – Honoring the Past. Building the Future.
    • 10-24-2025 - OUR TOPIC IS RELEVANT! CONTACT US BY THE CONTACTS BELOW
    • Can someone decompile in classes this LineageSkilleffect.u ? I am willing to pay if needed,  protocol god any. https://wormhole.app/BEj0pr#osVXtnL9Q-AmmVmxOcEZfw found, ty
  • 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