i want moonboxes on my server to drop once eveyr 2k kills
so what would be the proper rate
right now its at .1 and i got like 1 mb after 10k kills
so what would be the proper rate
right now its at .1 and i got like 1 mb after 10k kills
public partial class Calculation
{
public static bool PercentSuccess(double percent)
{
return ((double)Nano.Rand.Next(1, 1000000)) / 10000 >= 100 - percent;
}
}
/*
* Created by SharpDevelop.
* User: sams
* Date: 3/20/2009
* Time: 8:08 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
namespace CoEmu_v2_GameServer.Calculations
{
[COLOR="SeaGreen"]/// <summary>
/// Determines a random chance of something being true based on a percent.
/// Credit: LOTF Core
/// </summary>[/COLOR]
public partial class Calculation
{
public static bool PercentSuccess(double percent)
{
return ((double)Nano.Rand.Next(1, 1000000)) / 10000 >= 100 - percent;
}
}
}
LolQuote:
drop rate isn't really based on the total monsters you kill.
if you want it on a total monsters that are killed you'll just have to add a value.
at chars: public int Monsterkilled = 0;
when he/she shoots a monster you do +1
when it reaches 2K or what ever you want you just tell the server to drop a moonbox, after that you reset the value to 0
next time think a little befor posting