Jump to content
  • 0

Question

7 answers to this question

Recommended Posts

  • 0
Posted
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.

  • 0
Posted

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

  • 0
Posted
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

  • 0
Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...