Ok guys idk if this was actually released or know but I'll release this.
With this you can calculate how many mobs/tries you have to kill/try so that you get something (like a DB drop)
ok so in chat.cs search for
Code:
if (Cmd[0] == "/item")
Code:
if (Cmd[0] == "/chance")
{
double chance = double.Parse(Cmd[1]);
int i = 0;
if (chance != 0)
{
while (!MyMath.ChanceSuccess(chance))
i++;
Program.WriteLine("On chance: " + chance + " it would take " + i + " tries/kills to get something");
}
else
GC.LocalMessage(2000, "Type another chance above 0!");
}
and you'll see on console how many time you have to try achieve something
+ Thanks if it helped






