Release for : 5165 tanel's source (but it can be converted easily)
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
under/above that put this
now in-game you can type /chance 0.1 , /chance 2 , /chance 0.001 etc...
and you'll see on console how many time you have to try achieve something
+ Thanks if it helped :)
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 :)