Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

  • 0

Help Premium Services


Question

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?

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0
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.

Share this post


Link to post
Share on other sites
  • 0
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?

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.