Originally Posted by
Corey
I've never used Kronos, so I don't know what the format is supposed to be like or how drops work, but are you sure this is the right way round?
1000 / (sqrt(npc.getDef().combatLevel))
Assuming this uses decimal percentage (e.g. 0.5 = 50%), if npc is e.g. level 100,
1000 / 10
is 100, which is above 1.0 (100%) probability.
Perhaps it should be
10 / 1000
which would be 0.01, or 1% chance.
edit:
looking at the GoldCasket.java link you sent (perhaps I should have taken a look before replying),
it does indeed seem to be the case that 1.0 = 100% probability.
I haven't tested this yet,
Code:
public enum PvpWeapon {
SMALL(22330, 1, 1,
npc -> (sqrt(npc.getDef().combatLevel)) / 1000,
npc -> npc.getDef().combatLevel >= 1);
as Corey explained - kronos uses a decimal percentage to calculate drop probability, so the equation needs to provide a proper decimal outcome
there were a few more changes needed to drop the 'pvp armour mystery box', so i've included the code below
https://github.com/Monomode/Kronos-1...PvpWeapon.java