Quote:
Originally Posted by Super Aids
Use ID's instead of Names.
ChanceSuccess is a method, you need to create that one...
I guess something like.
Notice you have to change the Random thing, because I do not know wheres your is located.
Code:
static bool ChanceSuccess(byte chance)
{
if (chance > 100)
throw new Exception("You can't put more than 100% win chance.");
return (Misc.Generators.Random.Next(101) <= chance);
}
|
ur solution will work like that
if he made it 10% that means 1-10 pheasnts will drop the 100 cps.
he just want to add this code:
Random rnd = new Random();
killer.ConquerPoints += (uint)rnd.Next(1, 100);// where 1 - 100