Drop Rate

07/08/2009 01:50 Arcotemple:)#1
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
07/08/2009 02:05 yuko#2
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
07/08/2009 02:08 Arcotemple:)#3
umm that last part was a little uncalled for

im a little new to coding so you really didnt need to say that

thanks for the help though
07/08/2009 02:13 yuko#4
I wasn't ment wrong, the solution was logic

don't take it as being an insult. caus it wasn't.
07/08/2009 10:14 yuko#5
Do I really fail or do you just don’t understand your source.
Code:
	public partial class Calculation
	{
		public static bool PercentSuccess(double percent)
		{
			return ((double)Nano.Rand.Next(1, 1000000)) / 10000 >= 100 - percent;
		}
	}
As you should be able to see here it is not based on a total monsters killed. (didn’t fail here)
As it is written in his post he wants a % for a drop at about 2K monsters killed. Which is unpredictable with the percent of success. It could even happen that at the first monster you kill you got a moon box.
So the best way to do it as he wants it to have a counter.

Besides, where did I fail? By not giving him the code.
I think that both of you wasted a post with a comment meant for yourself
07/08/2009 17:31 biodrowski#6
no your just an asshole that thinks he way better then everyone else so u may not say it out loud but u make fun of people for asking a simple question
07/08/2009 19:18 PeTe Ninja#7
yuko i think that code u gave him was for coemvu and he is using LOTF..maybe you dont understand the source he is using.
07/08/2009 22:28 yuko#8
@pete
lols i do know it is from Coemu but may i remind you that it was taken from lotf
Code:
/*
 * 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;
		}
	}
}
besides i didn't gave him a code.
07/08/2009 22:46 Pete1990#9
for about ever 2k skills put it at about .05 should be around there.
07/10/2009 22:48 Jay1029#10
Quote:
Originally Posted by yuko View Post
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
Lol

and why don't you take a break from coding. Seeing as that you can't speak English to save your life.
07/11/2009 09:08 pro4never#11
Quote:
Originally Posted by Jay1029 View Post
Lol

and why don't you take a break from coding. Seeing as that you can't speak English to save your life.
If you consider that bad English then you sure haven't been around the net very much. His reply was perfectly understandable.