Register for your free account! | Forgot your password?

You last visited: Today at 17:57

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

Advertisement



Exp Calculations

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

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2006
Posts: 13
Received Thanks: 0
Exp Calculations

I'm trying to calculate Experience per hit/kill here. I'm having a bit of trouble. I'm using something similar to this.

Code:
if (damage >= maxhp)
exp = maxhp;
else if (damage < maxhp)
exp = damage;
From what I remember this is sort of how it used to work before potency, etc...

But this is not coming out correctly at all. It seems when I hit a mob for 8k, i get 28k exp.

Any tips?
sKyLeR is offline  
Old 01/16/2013, 19:37   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Something like that will let you calculate the base exp. Once that's done you can perform any extra operations on it. Be sure to step through and make sure it works properly every stage of the calculation.


ifdamage >= currentHP)
exp = currentHP
else
exp = damage

then perform level modification, rainbow gems and bonus exp for killing mob. It's all in public sources already
pro4never is offline  
Thanks
1 User
Old 01/17/2013, 23:37   #3
 
elite*gold: 0
Join Date: May 2006
Posts: 13
Received Thanks: 0
I think I've got it figured out.

Thanks pro4never.
sKyLeR is offline  
Old 01/19/2013, 17:31   #4
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
As you got it resolved then I'd guess you wouldn't be mad if I close this thread
JohnHeatz is offline  
Closed Thread


Similar Threads Similar Threads
Perfect expball calculations
09/26/2011 - CO2 Private Server - 3 Replies
I heard the key to getting perfect experience ball calculations has to do with levexp.dat. How does one go about getting calculations after decrypting the file?
[Release] Some usefull calculations
08/08/2011 - CO2 PServer Guides & Releases - 19 Replies
Yo! I'm gonna release some usefull calculations... some of them converted from TQ Source, others may be done by myself... but here we go: Linear spell calculation (FB/SS/DT/DT/ETC...) public static void DDALine(int x0, int y0, int x1, int y1, int nRange, ref List<Point> vctPoint) { if (x0 == x1 && y0 == y1) return;
Calculations with Accuracy
02/12/2011 - CO2 Private Server - 1 Replies
Hello. I was wondering how you are calculating AttackRate chance. Using Accuracy from Items and FuryGems. If i remember well in my last source i was doing something like: double Acc = (Agility * 0.1) Acc = (Acc + ((Accuracy from item * FuryGemPercent) * 0.1)) then doing a percent succes with Acc, and if its true I return 0 as Damage.
[Question] Enlightenment Calculations
10/24/2010 - CO2 Private Server - 2 Replies
Question: Hey everyone, So I just got done coding enlightenment; however, I just made up the enlightenment calculations. Does anyone have the real ones or know how to get them? Thanks in advance! Sincerely, Fang Answer:
[HELP] ATTACK CALCULATIONS
02/10/2009 - CO2 Private Server - 10 Replies
hi im pete, yeah im too lazy to do this so can someone just give me some pretty good calculations.. you dont need to if you dont want to just dont post anything, but dont flame =]



All times are GMT +1. The time now is 17:57.


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.