Skip to content

Premium Drops

Featured Replies

What it is method for premium to get x2 quest drops? And i should make this method on L2Attackable? Or L2PcInstance?

3 hours ago, 0flee said:

What it is method for premium to get x2 quest drops? And i should make this method on L2Attackable? Or L2PcInstance?

1. Which pack are you using

2. What you mean method? There is no a static way to create premium drops. You can either handle them in L2PcInstance or in drop calculation method of Attackable.

  • Author

Well, i forget to speficy, L2jSunrise

1 minute ago, 0flee said:

Well, i forget to speficy, L2jSunrise

Sunrise itself has premium drops. Do you want to create a new one?

  • Author

Nop, but quest no have x2. I want to create another premium system from 0 and to disable this. This is sh1t system...

protected void calculateRewards(L2Character lastAttacker)

In this method? L2Attackable.class

56 minutes ago, 0flee said:

Nop, but quest no have x2. I want to create another premium system from 0 and to disable this. This is sh1t system...


protected void calculateRewards(L2Character lastAttacker)

In this method? L2Attackable.class

Yes you should place your code in there. Check if player is normal or premium to be affected by different rates.

Example: 

multiplyChance *= player.isPremium() ? Config.PREMIUM_DROP_RATE : Config.DROP_RATE;

Something like that for every case, drop, spoil e.t.c

  • Author

I want amount, not chance

 

I don't know how i can do this. It is a bit hard for me.

in L2PcInstance i do this
 

if (isPremium())
		{
			dropQuestItems *= calcPremiumDropMultipliers(itemId);
		}

 

It is good?

I do this in L2PcInstance

  • Author

Close this please, i open another topic.

  • Zake locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.