Register for your free account! | Forgot your password?

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

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

Advertisement



Question about SDG's/SPG's

Discussion on Question about SDG's/SPG's within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Question about SDG's/SPG's

ok so i was recalculating the player attack/Defense today an i stopped at one point an im wondering .


if i had 10k attack points 15% of that attack well be added once i use an SDG. my attack gose up to 11,500.
ok cool but the Question is ...
when i use another SDG the next 15% that well be added is it gonna be added based on the main attack which is 10k or well be added based on the current attack which is 11,500 ?

next

im using something like this to fix the gems Extra attack .

PHP Code:
                    Player.maxattack Player.BaseMaxAttack;
                    
Player.minattack Player.BaseMinAttack;
                    for (
byte SDG 0SDG Player.SDGSDG++)
                    {
                        
Player.maxattack += Convert.ToUInt16(Player.maxattack 6.67);
                        
Player.minattack += Convert.ToUInt16(Player.minattack 6.67);
                    }
                    for (
byte RDG 0RDG Player.RDGRDG++)
                    {
                        
Player.maxattack += Convert.ToUInt16(Player.maxattack 10.0);
                        
Player.minattack += Convert.ToUInt16(Player.minattack 10.0);
                    }
                    for (
byte NDG 0NDG Player.NDGNDG++)
                    {
                        
Player.maxattack += Convert.ToUInt16(Player.maxattack 20.0);
                        
Player.minattack += Convert.ToUInt16(Player.minattack 20.0);
                    } 
its gonna be recalculating the gems attack everytime the player replace/Equip/take of an item

Looping .... Dose it slow shit out ??
and if the looping CAN slow the server work is there a better way to control that .cus if not and looping it is fine than im gonna use the same thing to control the SPG/SRG/etc .
{ Angelius } is offline  
Old 01/22/2011, 03:05   #2
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Put it inside your damage calculation, so that it will be calculated only when you attack, but also instead doing for loops, you can easily use cases for this.

uint Attack = 0;
switch (Gem)
{
case NormalDragonGem:
{
Attack = Damage / 100 * 5;
}
case RefinedDragonGem:
{
Attack = Damage / 100 * 10;
}
case SuperDragonGem:
{
Attack = Damage / 100 * 15;
}
}

Char.FinalDamage += Attack;

//Send attacking here
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 01/22/2011, 03:08   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
It's very simple... you calculate all your base attack (min/max attack on all items) and then you calculate your dragon/nix percentage.

You then take your min/attack overall and use the dragon pcts to boost it.
pro4never is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/12/2009 - Cabal Online - 3 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts Bump.
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/02/2009 - Cabal Private Server - 2 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts



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


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.