Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 00:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help]Random drop cps in 5530 +

Discussion on [Help]Random drop cps in 5530 + within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 34
Received Thanks: 0
[Help]Random drop cps in 5530 +

How can help with how can i put random drop cps in my source .


i have this

#region Pheasant
if (Name == "Pheasant")
{
if (ChanceSuccess(50)) 50% to get the cps from monsters you can change to 50% to any % you want
{
killer.ConquerPoints += 100; = how much you want want them to drop?
}
}
#endregion




and i have this error . Error 5 The name 'ChanceSuccess' does not exist in the current context
xenomco is offline  
Old 12/07/2012, 13:21   #2
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
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);
}
Super Aids is offline  
Old 12/07/2012, 16:46   #3
 
AhmedAli0's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 39
Received Thanks: 2
Quote:
Originally Posted by Super Aids View Post
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
AhmedAli0 is offline  
Old 12/07/2012, 17:22   #4
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Quote:
Originally Posted by AhmedAli0 View Post
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
Actually no. If you read his post he asked why he got an error and that ^_^

But yeah, you could even use both codes ^^
Super Aids is offline  
Old 12/07/2012, 18:14   #5
 
AhmedAli0's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 39
Received Thanks: 2
Quote:
Originally Posted by Super Aids View Post
Actually no. If you read his post he asked why he got an error and that ^_^

But yeah, you could even use both codes ^^
sorry didn't see the last line
any way can u please check my thread?
i want to know where can i find the level exp in this source
AhmedAli0 is offline  
Reply


Similar Threads Similar Threads
Help Drop cps 5530 Helpppp !!.
10/05/2012 - CO2 Private Server - 5 Replies
Help me Plsss !!!!!!! Help Drop Cps 5530 Help !! - YouTube Help me .
Help drop cps 5530 plssss
10/02/2012 - CO2 Private Server - 7 Replies
This is a very important code 5530 for 1 month I could not drop 500 cps need a team to be ready by Monday please do viewerdende [email protected] msn pls help i am very please both need a very urgent i am on facebook http://www.facebook.com/emre.jklear pls .
Plss 5530 auto cps inventery 120 drop cps monster
09/15/2012 - CO2 Private Server - 1 Replies
Plss 5530 auto cps inventery 120 drop cps monster I'd put a picture or video



All times are GMT +2. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.