Disable level gap penalty

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Disable level gap penalty

Post by sahar »

What changes do i need to make to the following configs in order to completely disable level gap penalty?

Code: Select all

# ---------------------------------------------------------------------------
# Drops
# ---------------------------------------------------------------------------

# The min and max level difference used for level gap calculation
# this is only for how many levels higher the player is than the monster
# Default: 8
DropAdenaMinLevelDifference=8
# Default: 15
DropAdenaMaxLevelDifference=15

# This is the minimum level gap chance meaning for 10 that the monster will have 10% chance
# to allow dropping the item if level difference is bigger than DropAdenaMaxLevelDifference
# Note: This value is scalling from 100 to the specified value for DropAdenaMinLevelDifference to DropAdenaMaxLevelDifference limits
# Default: 10
DropAdenaMinLevelGapChance=10

# The min and max level difference used for level gap calculation
# this is only for how many levels higher the player is than the monster
# Default: 5
DropItemMinLevelDifference=5
# Default: 10
DropItemMaxLevelDifference=10

# This is the minimum level gap chance meaning for 10 that the monster will have 10% chance
# to allow dropping the item if level difference is bigger than DropAdenaMaxLevelDifference
# Note: This value is scalling from 100 to the specified value for DropAdenaMinLevelDifference to DropAdenaMaxLevelDifference limits
# Default: 10
DropItemMinLevelGapChance=10
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Re: Disable level gap penalty

Post by sahar »

Anyone....?
Stalitsa
Initiates
Initiates
Posts: 87
Joined: Fri Jul 26, 2013 10:16 am

Re: Disable level gap penalty

Post by Stalitsa »

sahar wrote:Anyone....?
you found the solution man! :)
do some expiriments like icreasing the values! and you have the answear!
try increase them it will not burn your pc or your house!
maybe it ll eat your candys if you have any :P!!!
Image
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Re: Disable level gap penalty

Post by sahar »

You're trying to be funny? I'm not supposed to guess values and hope it'll work and test every possible situation...
I already removed these lines entirely from core, I just preffer to avoid it by simply changing configs when possible.
If I asked it that means I already tried figuring it out and it doesn't seem to work out, means explantions of these configs is in-appropriate and should be updated.
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Disable level gap penalty

Post by Sdw »

Set it all to 100.
Stalitsa
Initiates
Initiates
Posts: 87
Joined: Fri Jul 26, 2013 10:16 am

Re: Disable level gap penalty

Post by Stalitsa »

sahar wrote:You're trying to be funny? I'm not supposed to guess values and hope it'll work and test every possible situation...
I already removed these lines entirely from core, I just preffer to avoid it by simply changing configs when possible.
If I asked it that means I already tried figuring it out and it doesn't seem to work out, means explantions of these configs is in-appropriate and should be updated.
"sdw" gave you the ecact answear! (btw @sdw we can set it to 85 and no prob to or am i wrong?)
@sahar i have some humor or i hope so, and i dont think is that bad!
anyway i tried to help you! if you did that inceasments and not working then maybe its onther prob (maybe from customs duno)!
and i realy hope you find the solution you want!
Image
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Re: Disable level gap penalty

Post by sahar »

for all values 100 and example player level 84 kills level 75 mob:

Code: Select all

	public static double map(double input, double inputMin, double inputMax, double outputMin, double outputMax)
	{
		input = constrain(input, inputMin, inputMax);
		return (((input - inputMin) * (outputMax - outputMin)) / (inputMax - inputMin)) + outputMin;
	}
	public static double constrain(double input, double min, double max)
	{
		return (input < min) ? min : (input > max) ? max : input;
	}
params: -9, -100, -100, 100, 100
input = -9 < -100 ? -100 : -9 > -100 ? -100 : -9 = -100
new params: -100, -100, -100, 100, 100
(((-100 - -100) * (100 - 100)) / (-100 - -100)) + 100

It gives error because it tries to do 0 / 0 evantually...
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: Disable level gap penalty

Post by NosBit »

Image
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Re: Disable level gap penalty

Post by sahar »

I cant see that changelist cuz it requires password and i cant find that config either unless u mean DropItemMinLevelGapChance which is incorrect to do anyway.
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: Disable level gap penalty

Post by NosBit »

did u even read it? "just set LevelGapMinChance to 100"
Image
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Re: Disable level gap penalty

Post by sahar »

And as I said, i dont find this config, unless you mean DropItemMinLevelGapChance but when I change it its still not 100% chance to drop the items, your change seems to ismply put back old deep blue rules, while i want it disabled entirely.
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: Disable level gap penalty

Post by NosBit »

works for me and i ment configs ending with that name because there are 2 of them
Image
Post Reply