Page 1 of 1

Disable level gap penalty

Posted: Sat Jan 31, 2015 11:58 am
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

Re: Disable level gap penalty

Posted: Mon Feb 02, 2015 7:24 pm
by sahar
Anyone....?

Re: Disable level gap penalty

Posted: Tue Feb 03, 2015 8:32 am
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!!!

Re: Disable level gap penalty

Posted: Tue Feb 03, 2015 10:30 am
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.

Re: Disable level gap penalty

Posted: Tue Feb 03, 2015 10:32 am
by Sdw
Set it all to 100.

Re: Disable level gap penalty

Posted: Tue Feb 03, 2015 12:37 pm
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!

Re: Disable level gap penalty

Posted: Tue Feb 03, 2015 8:19 pm
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...

Re: Disable level gap penalty

Posted: Tue Feb 03, 2015 10:15 pm
by NosBit

Re: Disable level gap penalty

Posted: Wed Feb 04, 2015 10:38 am
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.

Re: Disable level gap penalty

Posted: Wed Feb 04, 2015 11:07 am
by NosBit
did u even read it? "just set LevelGapMinChance to 100"

Re: Disable level gap penalty

Posted: Wed Feb 04, 2015 4:37 pm
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.

Re: Disable level gap penalty

Posted: Wed Feb 04, 2015 5:05 pm
by NosBit
works for me and i ment configs ending with that name because there are 2 of them