Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Blessing (-1, -3, -5, -7)

Discussion on [Help] Blessing (-1, -3, -5, -7) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 71
[Help] Blessing (-1, -3, -5, -7)

So i found the line in my LOTF source that controls the blessing on drops.

Code:
Bless = (byte)General.Rand.Next(1, 7);
I know this generates 1 random number between 1 and 7.
How would i make it so it cannot choose 2, 4 and 6?
Beta Limit is offline  
Old 12/12/2008, 20:37   #2
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
simple,

while(Bless == 2 || Bless == 4 || Bless == 6)
Bless = (byte)General.Rand.Next(1, 7);

problem fixed

it will try till it gets 1,3,5,7
alexbigfoot is offline  
Thanks
1 User
Old 12/12/2008, 20:42   #3
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 71
thanks alot i did it a different way

Code:
    
Blessing = (byte)General.Rand.Next(3, 5);
                        if (Blessing == 3)
                            Bless = 3;
                        if (Blessing == 4)
                            Bless = 0;
                        if (Blessing == 5)
                            Bless = 5;
In the one i just made it only allows -3 and -5 to drop like in the real game

EDIT Tested mine and it only allowed -3's to drop xD so ill use yours
Beta Limit is offline  
Old 12/12/2008, 21:33   #4
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by Beta Limit View Post
So i found the line in my LOTF source that controls the blessing on drops.

Code:
Bless = (byte)General.Rand.Next(1, 7);
I know this generates 1 random number between 1 and 7.
How would i make it so it cannot choose 2, 4 and 6?

Code:
  byte rand = (byte)General.Rand.Next(0, 7);
  if (rand % 2 == 1) { rand--; }
InfamousNoone is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Blessing effect
07/29/2009 - Conquer Online 2 - 0 Replies
when ever im on and another player comes onto my screen the blessing effect goes off (light that comes down) and its lags me bad, ive asked some ppl where it is in the c3 effect folder and no one knows. whoever can tell me where it is so i can remove it will help alot. thanks.
Heavens blessing
05/18/2009 - Conquer Online 2 - 3 Replies
Where is the file located for this effect? Thanks.
Exp Pot and Heaven Blessing
12/03/2008 - CO2 Private Server - 5 Replies
I followed the guides, both were by Emme, and everything seems to work fine. However, when a character logs in I get an error message in LOTF saying there's something wrong with line 1250 in database.cs, the "WhichBless" line. The characters disappear in game, so it seems like the "model" is missing which I can change back to smale and my character reappears. Am I missing any MySQL Character Tables for Exp Pot which could be the problem? Or is there something wrong with this line:...
Blessing Items
09/09/2008 - Conquer Online 2 - 1 Replies
What would be the easiest way to get an item blessed without paying someone to do it?
Help on blessing?
06/11/2008 - Conquer Online 2 - 3 Replies
Ok...so I have some items I wanna bless: Tao Cap, Spear, Tao Robe, South of Cloud, Mirac Gourd Here are my questions: If I reborn my water at 111,112,113,etc; is it random? (Site says if the Water RBs at 110; only weapons/boot will have blessed) If it is random, does it include the garment/talisman?



All times are GMT +1. The time now is 00:40.


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.