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

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

    • Bought the interface source for the 557 protocol from him. Everything works as described, no issues so far. Smooth deal, would recommend.
    • Add try version of protocol 563 https://drive.google.com/file/d/1l1QnyFGXxX_c98FNUgXHFmDsIzZCrVc6/view?usp=drive_link
    • WTS Adena Stock 2.6kkk Titan 78 Sub Sagitarius 76 nobless Hirophant 78 Sub Cardinal 78 nobless   discord : nhr0711
    • We are not another "open-close" project. LOE is a long-term Essence server that has been live for over a year — NewAge x2 is our brand-new world, and it will never be wiped. 🗺 STAGED WORLD PROGRESSION Here is what kills most servers: no-lifers hit the cap in three days, everyone else logs in to a finished race. On LOE the world unlocks stage by stage, every ~2 weeks — new locations, new bosses, new gear ceiling. The server grows as one. Start on day one or day ten — you are still in the race. ✨ WHAT MAKES US DIFFERENT Subclass system on Essence — a full dedicated questline, unique for this platform. Your build, your rules. Talent system — three branches: tank, damage, farm. Two players, same class, different characters. Hero skills and deep character customization. Fair progression — power comes from playing, not from a credit card. x2 rates — the classic Essence pace without the grind wall. 📚 WE DOCUMENTED EVERYTHING 25,000+ items, every class with full skill tables, monsters, drop rates, quests, locations. Check the server before you even download it: loe.promo/wiki — no other project gives you this. 📋 SERVER INFO Platform: Lineage 2 Essence · Rates: x2 Open Beta: July 24 — test the stages and the subclass questline before launch Grand Opening: July 31, 20:00 GMT+3 Site & wiki in English — international players welcome 🔒 YOUR NICKNAME IS BEING TAKEN RIGHT NOW Reservation is already open. On the 31st the crowd arrives — the name you have carried through every server for years may simply be gone. Lock it in 30 seconds: Equal start for everyone. See you in Elcardia — July 31, 20:00 GMT+3. Questions? Drop them below — the team reads this thread daily.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..