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

    • No matter what you are going to use, paid or non-paid or whatever, everything requires personal time investment and a lot of trial and error in many sectors of IT. I have used and seen (clients of mine) L2J Sunrise, Mobius, ACIS, and Lucera. Not even one was close enough to providing a decent outcome without the need for some heavy dev intervention. Even if you provide a decent pack, you will have to think about cheaters, marketing, monitoring, network protection, and the list goes on depending on the problem. Thus, I have no clue why people here debate so much about datapacks because  I remember the days when we were playing on private servers with 80% less functionality than the current Lineage 2 emulator state, and it was enough to have fun. Now the leftovers are such a toxic community that I have no idea what drives people to open projects except money.    My 2 cents choose whatever will ease your life in terms of development and your life/work/budget balance and dont spent months trying to figure out what datapack is superior over the other. You have more serious things to consider.
    • I’ve played around with similar growth setups, and what usually makes the whole thing smoother is pairing them with something steady on the side. For example, I once used famoid.com for a small boost so the main profile didn’t look empty while the Mother/Child flow warmed up. Your themed accounts idea can work nicely as long as the profiles stay active and feel human enough to spark replies.
    • I never said that, can you read? Are you going to start an argument when that isn't the main goal of this post? Or are you just used to the same old discussion mechanics?     Thank you very much for your recommendation. A few months ago, I worked on a project called 'L2Avalon' using a compiled Lucera2 (it was the only thing the project leader provided me), and based on my 20 years of experience playing Lineage 2, I feel like it's broken everywhere, unless the specific version of Lucera I was using was just old. I don't have a problem coding and fixing things, but I am looking for a solid base so I don't do unnecessary work.   Replying to the first guy: I would never discredit paid work; obviously, any paid work will be better than a free one for obvious reasons. But my reality is that I don't want to throw money away, mainly because saving up a large sum of money is a matter of several months in my current situation here in Argentina.
  • 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..

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