Register for your free account! | Forgot your password?

You last visited: Today at 02:34

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

Advertisement



Exp Calculation

Discussion on Exp Calculation within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Exp Calculation

I know this is not real exp calculation and it's custom.

Just wondering, if it would be a good way to do it custom.
Code:
        static ulong GetExerience(ulong GainExperience, byte attLevel, byte oppLevel, byte Rate, uint Damage, byte Reborns, byte TeamMembers)
        {
            ulong Experience = (attLevel <= oppLevel) ? (GainExperience * Rate) : ((GainExperience / attLevel) * Rate);
            Experience += (ulong)(Damage ^ (Reborns + oppLevel)) / TeamMembers;

            return Experience;
        }
        static ulong GetExerience(ulong GainExperience, byte attLevel, byte oppLevel, byte Rate, uint Damage, byte Reborns)
        {
            ulong Experience = (attLevel <= oppLevel) ? (GainExperience * Rate) : ((GainExperience / attLevel) * Rate);
            Experience += (ulong)(Damage ^ (Reborns + oppLevel));

            return Experience;
        }
Example use:
Code:
            attLevel = 112;
            oppLevel = 115;
            Rate = 2;
            GainExperience = 10000;
            Damage = 12353;
            Reborns = 2;
            TeamMembers = 3;
Result:
Code:
24113
Does it seem fair?
BaussHacker is offline  
Old 08/21/2011, 19:47   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Damage ^ (Reborns + oppLevel) <-- hmm, you know with this you might take some of the experience right? (You should use "Damage | (Reborns + oppLevel)", and since when teammates get half 1/teammatesCount of the entire exp? :S

And what do you mean by custom?
Using as few lines as possible? Using as many if-in-line as possible? Using bit-wise operators?

Btw you should also add extra exp for double exp pot, and all that.
-impulse- is offline  
Thanks
1 User
Old 08/21/2011, 19:58   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by -impulse- View Post
Damage ^ (Reborns + oppLevel) <-- hmm, you know with this you might take some of the experience right? (You should use "Damage | (Reborns + oppLevel)", and since when teammates get half 1/teammatesCount of the entire exp? :S

And what do you mean by custom?
Using as few lines as possible? Using as many if-in-line as possible? Using bit-wise operators?

Btw you should also add extra exp for double exp pot, and all that.
With custom I means, not how TQ calculates experience. I get you what you mean ^^ Found a better way to do this.
BaussHacker is offline  
Old 08/21/2011, 19:58   #4
 
elite*gold: 0
Join Date: Dec 2009
Posts: 87
Received Thanks: 2
-impulse-
can you help me
alaa410 is offline  
Old 08/21/2011, 20:00   #5
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by alaa410 View Post
-impulse-
can you help me
lol'd
BaussHacker is offline  
Reply


Similar Threads Similar Threads
Exp calculation?
01/09/2011 - CO2 Programming - 3 Replies
Hey, Does anyone has a decent exp calculation, or show me atleast how it is calculated? I really have no idea when it comes to conquer. Thanks in advance, ImmuneOne.
archer calculation
09/24/2010 - CO2 Private Server - 2 Replies
where is this located in what cs in 5165 and what the line?
Damage Calculation
08/02/2010 - CO2 PServer Guides & Releases - 12 Replies
Okay. I haven't found any physical damage calculations out there that involves BP. Maybe nobody wants it or what but Ive been lurking these forums for a while looking for ideas for my server. Anyway, here's my ROUGH (+- 1.5k) damage compared to the real co. If anyone got any ideas on how to improve my equation by all means please post. I use 5165 but the gist of it should be the same as other servers. also, thanks to CoEmu v2, I used some of the damage calculation from there namely the...
Repair Calculation
06/04/2010 - CO2 Private Server - 0 Replies
Here is the correct gold calculation for repairing an item: int nRecoverDurability = Math.Max(0, Item.Stats.Durability - Item.CurDurability); if (nRecoverDurability == 0) return; byte Quality = ItemManipulation.GetQuality((int)Item.Stats.ID); double QualityMultipier = 0;



All times are GMT +1. The time now is 02:35.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.