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
if (Rnd.get(100) < 55)
{
// example: Adena
}
else if (Rnd.get(100) < 30)
{
// example: Festival Adena
}
else if (Rnd.get(100) < 10)
{
// example: Gemstones
}
You have 55% to get Adena, then to get Festival Adena you need to be on the 45% that doesn't get Adena and in the 30% that gets Festival Adena, then the chances are (45*30)/100=13,5% instead of the 30% that you probably wanted, for the last part you get (((45*70)/100)*10)/100=3,15% and so on.
Powered by Eclipse 4.34 | Eclipse Temurin 21 | MariaDB 11.3.2 | L2J Server 2.6.3.0 - High Five
if (Rnd.get(100) < 55)
{
// example: Adena
}
else if (Rnd.get(100) < 30)
{
// example: Festival Adena
}
else if (Rnd.get(100) < 10)
{
// example: Gemstones
}
You have 55% to get Adena, then to get Festival Adena you need to be on the 45% that doesn't get Adena and in the 30% that gets Festival Adena, then the chances are (45*30)/100=13,5% instead of the 30% that you probably wanted, for the last part you get (((45*70)/100)*10)/100=3,15% and so on.
Hello, Zoey76,
thanks for the information. But in the math I''m not very good and with chances I suck... So this one maybe will be correct: