Register for your free account! | Forgot your password?

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

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

Advertisement



The right math of Mentor extra BattlePower

Discussion on The right math of Mentor extra BattlePower within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1

 
GameHackerPM's Avatar
 
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
The right math of Mentor extra BattlePower

Hi, i just wanna to know what is the right math for the mentor extra BP gain!
My Math is :

Code:
        public uint CalcExtraBP(Player mentor)//mentor bp
        {
            if (mentor.NMBattlePower < client.NMBattlePower) return 0;
            uint bp = (uint)((mentor.NMBattlePower - client.NMBattlePower) / 3.3F);
            if (client.Level >= 125) bp = (uint)((bp * (135 - client.Level)) / 10);
            if (bp < 0) bp = 0;
            return bp;
        }
I don't know if is this right! ^_^
also if a prince got mentor from a king, should he gain 1 BP or 2 ?! Or nothing? ^_^ Thanks!
GameHackerPM is offline  
Old 05/22/2015, 02:53   #2
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
It's quite simple. TQ has two tables in their database which define the effects and limits of shared battle power.

cq_tutor_type:
idUser_lev_minUser_lev_maxStudent_numBattle_lev_share
170109210
2110119315
3120129525
4130133735
51341401050

The cq_tutor_type table controls the percentage of battle power the mentor can share with an apprentice.

cq_tutor_battle_limit_type:
idBattle_lev_limit
1100
1098
2096
3093
4091
5088
6086
7083
8080
9077
10072
11067
12062
13057
14052
15050
16047
17044
18040
19037
20034
21030
22027

The second table, cq_tutor_battle_limit_type controls the maximum shared battle power the apprentice can receive. It it much too large to post here, but I have provided a part of it. It is keyed by the apprentice's battle power (the id column) and its only other column is the limit.

Calculating the shared battle is quite easy - you need only know the battle power of the mentor, the battle power of the apprentice, and the level of the mentor.

For this example, I'll use a level 130 mentor with 142 battle power and an apprentice with 50 battle power.

Pseudocode:
Code:
mentor_lev = 130
mentor_bp = 142
appr_bp = 50

battle_lev_share = lookup_share(mentor_lev) // battle_lev_share = 35
share = (mentor_bp - appr_bp) * battle_lev_share / 100 // share = 32
share_limit = lookup_limit(appr_bp) // share_limit = 88

result = min(share, share_limit) // result = 32
nTL3fTy is offline  
Thanks
5 Users
Old 05/22/2015, 14:49   #3
 
elite*gold: 0
Join Date: Jun 2007
Posts: 659
Received Thanks: 31
Quote:
Originally Posted by nTL3fTy View Post
It's quite simple. TQ has two tables in their database which define the effects and limits of shared battle power.

cq_tutor_type:
idUser_lev_minUser_lev_maxStudent_numBattle_lev_share
170109210
2110119315
3120129525
4130133735
51341401050

The cq_tutor_type table controls the percentage of battle power the mentor can share with an apprentice.

cq_tutor_battle_limit_type:
idBattle_lev_limit
1100
1098
2096
3093
4091
5088
6086
7083
8080
9077
10072
11067
12062
13057
14052
15050
16047
17044
18040
19037
20034
21030
22027

The second table, cq_tutor_battle_limit_type controls the maximum shared battle power the apprentice can receive. It it much too large to post here, but I have provided a part of it. It is keyed by the apprentice's battle power (the id column) and its only other column is the limit.

Calculating the shared battle is quite easy - you need only know the battle power of the mentor, the battle power of the apprentice, and the level of the mentor.

For this example, I'll use a level 130 mentor with 142 battle power and an apprentice with 50 battle power.

Pseudocode:
Code:
mentor_lev = 130
mentor_bp = 142
appr_bp = 50

battle_lev_share = lookup_share(mentor_lev) // battle_lev_share = 35
share = (mentor_bp - appr_bp) * battle_lev_share / 100 // share = 32
share_limit = lookup_limit(appr_bp) // share_limit = 88

result = min(share, share_limit) // result = 32
pretty much everything you need to know about the mention in a nutshell, wish when i was running a server this information became public, i had to actually trial/error to understand how to mess with it.
angel12345 is offline  
Old 05/23/2015, 19:18   #4

 
GameHackerPM's Avatar
 
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
Really, thanks bro! ^_^ SO nice explaining you gave me!
It's really easy now to do it!

Thanks again!

But i just wonder, how can i find these tables?! :*
GameHackerPM is offline  
Old 05/23/2015, 21:19   #5
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Quote:
Originally Posted by GameHackerPM View Post
Really, thanks bro! ^_^ SO nice explaining you gave me!
It's really easy now to do it!

Thanks again!

But i just wonder, how can i find these tables?! :*
TQ bins db.
turk55 is offline  
Thanks
1 User
Old 05/24/2015, 02:40   #6

 
GameHackerPM's Avatar
 
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
Quote:
Originally Posted by turk55 View Post
TQ bins db.
Well, i know, but i don't have one, also i don't know how to deal with this bins!
So old, didn't use it before! So if anybody that easily can just DUMP them for me as a sql! That will be awesome and thanks!



If i knew how i can do it, i wouldn't ask anybody to do something i could do!
GameHackerPM is offline  
Old 05/24/2015, 02:59   #7
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Quote:
Originally Posted by GameHackerPM View Post
Well, i know, but i don't have one, also i don't know how to deal with this bins!
So old, didn't use it before! So if anybody that easily can just DUMP them for me as a sql! That will be awesome and thanks!



If i knew how i can do it, i wouldn't ask anybody to do something i could do!
nTL3fTy is offline  
Thanks
1 User
Old 05/27/2015, 00:09   #8

 
GameHackerPM's Avatar
 
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
Quote:
Originally Posted by nTL3fTy View Post
Thanks again! ^_^
GameHackerPM is offline  
Reply


Similar Threads Similar Threads
[Selling] +300 BattlePower Account
08/16/2014 - Conquer Online 2 Trading - 5 Replies
Selling a full 2 soc account with +300 BP without mentor/guild bp account. PM me for more information. I need it gone asap, Asking 150-250€ for it.
About Battlepower !
09/04/2013 - CO2 Programming - 0 Replies
How can i remove the potency effect from my status ? what i need to remove in the conquer.exe? i dun need an .exe i just need a information, i want to learn with that, someone have a reference to search ? using ollydbg or hexeditor ?
[Question]BattlePower
02/20/2012 - CO2 Private Server - 11 Replies
i have pkpoints sorta working when i kill someone it increases the pkpoints but it doesnt show on the status window of the character but when u go into the friends list it shows there pk points. http://s16.postimage.org/9yw2uv1g1/22494196.jpg ------------------------------------------------- ---------------------- http://s16.postimage.org/6yf8ebq4x/22511421.jpg
[Quest]math.cos und math.sin
08/22/2010 - Metin2 Private Server - 10 Replies
Hallo, anscheinend kennt Metin2 die Funktionen math.cos und math.sin nicht, gibt es trotzdem eine Möglichkeit die irgendwie zu benutzen? (Für den DT ;))
battlepower question
05/18/2009 - CO2 Private Server - 3 Replies
is it possable to remove the damage cap potency gives and prehaps change it to a damage bonus? if so how would you go about doing this?



All times are GMT +1. The time now is 08:48.


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