Register for your free account! | Forgot your password?

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

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

Advertisement



Refinery CounterAction & BreakThrough thing

Discussion on Refinery CounterAction & BreakThrough thing within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Refinery CounterAction & BreakThrough thing

Would you please tell me about this code if its correct or not

I made it like this......
PHP Code:
if (ChanceSuccess((float)attacker.Breaktrough 100f))
                {
                    if (
attacked.EntityFlag == EntityFlag.Player)
                    {
                        if (
attacked.Counteraction == 0)
                        {
                            
Damage = (Int32)Math.Floor((float)Damage 2.5);
                            
Packet.Effect1 |= Attack.AttackEffects1.Penetration// this thing here is the effect of breakthrough i just called it penetration I can rename it if I want to Breakthrough just lazy to do it :)
                        
}
                        else
                        {
                            
Damage = (Int32)(Math.Floor((float)Damage 2.5) - Math.Floor((float)Damage attacked.Counteraction 100f));
                        }
                    }
                } 
and for the CriticalStrike & Immunity
Quote:
if (ChanceSuccess((float)attacker.CriticalStrike / 100f))
{
Packet.Effect1 |= Attack.AttackEffects1.CriticalStrike;
Damage = (Int32)Math.Floor((float)Damage * 1.2);
if (attacked.EntityFlag == EntityFlag.Player)
Damage -= (Int32)Math.Floor(Damage * attacked.Immunity / 100f);
}
marlyandedsel is offline  
Old 03/21/2012, 12:28   #2
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Well its obvious that there is smthing Wrong which is Calculations ...The Breakthrough just make the attack reach to its Maximum not making the damage * 2.5

2nd point there is no relation bet counteraction and Breakthrough actualy ..COunteractions Defend Against The Pentration

3rd point y u use Packet.Effect1 |= Attack.AttackEffects1.anyeffect;

y did u use |= this means

Packet.Effect1 = Packet.Effect1 | Attack.AttackEffects1.anyeffect;

Which makes no scense at all
shadowman123 is offline  
Old 03/22/2012, 08:20   #3
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Quote:
Originally Posted by shadowman123 View Post
Well its obvious that there is smthing Wrong which is Calculations ...The Breakthrough just make the attack reach to its Maximum not making the damage * 2.5

2nd point there is no relation bet counteraction and Breakthrough actualy ..COunteractions Defend Against The Pentration

3rd point y u use Packet.Effect1 |= Attack.AttackEffects1.anyeffect;

y did u use |= this means

Packet.Effect1 = Packet.Effect1 | Attack.AttackEffects1.anyeffect;

Which makes no scense at all

you are wrong in the second point you are mentioning(Before I post that portion I have read it in the official site of CO.
I will let you see where you are wrong about there is no relation between counteraction and Breakthrough thing...



You can read them all and tell me if there is no relation between them.... OMG on you!....

about the first point, yes I might be wrong on that, that is why I am asking if it is correct, would you mind reading it up first?
marlyandedsel is offline  
Thanks
1 User
Old 03/22/2012, 12:49   #4
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
my bad !! i thought counteractions were against Pentrations ...Anyways its easy in Coding Break Through..The normal attack is random bet ur Min Atk and max Atk ..So it would be smthing like that

Code:
if (attacked.Battlepower > attacker.battlepower)
{
       damage = attacker.maxattack;
       // Send Breakthrough Effect to attacked
}
whats the hard in calculating the BreakThrough ?
shadowman123 is offline  
Old 03/22/2012, 14:53   #5
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
well, it said like this
Quote:
Right click to receive a random Breakthrough,
which adds 12/14/16% chance of exceeding Max Atk.
Meaning it will exceed the maximum attack meaning if you have max attack of 23,000 it would be greater than that... or what should we do something about that?
marlyandedsel is offline  
Old 03/22/2012, 15:28   #6
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by marlyandedsel View Post
well, it said like this

Meaning it will exceed the maximum attack meaning if you have max attack of 23,000 it would be greater than that... or what should we do something about that?
Did TQ Mention The Exceedance Value ? ...Sure Nope So make ur own Claculations So Lets say the Exceeded Attack = 2000 u would add
damage = attacker.maxattack + 2000;

And so On but at last its ur calculations do w.e u want
shadowman123 is offline  
Old 03/22/2012, 15:56   #7
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
so here go, I have made it like this can someone try to do some comment on this so that it will add on something on this... or did I make it wrong? Note(Critical & Immunity included in this)
PHP Code:
if (ChanceSuccess((float)attacker.CriticalStrike 100f))
                {
                    
Packet.Effect1 |= Attack.AttackEffects1.CriticalStrike;
                    
Damage = (Int32)Math.Floor((float)Damage 1.5);
                    if (
attacked.EntityFlag == EntityFlag.Player)                    
                        
Damage -= (Int32)Math.Floor((float)(Damage attacked.Immunity 100f) / 100);
                }
                if (
ChanceSuccess((float)attacker.Breaktrough 10f))
                {
                    if (
attacked.EntityFlag == EntityFlag.Player)
                    {
                        if (
attacked.BattlePower attacker.BattlePower)
                        {
                            
Damage = (Int32)attacker.MaxAttack 2000;
                            
Packet.Effect1 |= Attack.AttackEffects1.Penetration;                            
                            
Damage -= (Int32)Math.Floor((float)((Int32)attacker.MaxAttack attacked.Counteraction 10f) / 100);
                        }
                    }
                    else
                    {
                        
Damage = (Int32)attacker.MaxAttack;
                        
Packet.Effect1 |= Attack.AttackEffects1.Penetration;
                    }
                } 
marlyandedsel is offline  
Old 03/22/2012, 20:30   #8
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Code:
if (ChanceSuccess((float)attacker.Breaktrough / 10f))
                {
                    if (attacked.EntityFlag == EntityFlag.Player)
                    {
                        if (attacked.BattlePower > attacker.BattlePower)
                        {
                            Damage = (Int32)attacker.MaxAttack + 2000;
                            Packet.Effect1 |= Attack.AttackEffects1.Penetration;                            
                            Damage -= (Int32)Math.Floor((float)((Int32)attacker.MaxAttack * attacked.Counteraction / 10f) / 100);
                        }
                    }
                    else
                    {
                        Damage = (Int32)attacker.MaxAttack;
                        Packet.Effect1 |= Attack.AttackEffects1.Penetration;
                    }
                }
i have Comment on this Part y u ignored to add MaxAttak + 2000 if the attacked is Monster ...y did u make damage -= (Counteraction calculations)

You could say if (attacker.BreakThrough > attacked.Counteraction)
The rate becomes ((breakthorough - Counteraction) / 100) and idk y u made BreakThrough / 10 breakthrough value is Percent So making it / 10 is Wrong
shadowman123 is offline  
Old 03/22/2012, 21:02   #9
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
If you two are going to post can you speak english a little better?
_DreadNought_ is offline  
Old 03/23/2012, 00:07   #10
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Quote:
Originally Posted by _DreadNought_ View Post
If you two are going to post can you speak english a little better?
are my English hard to understand? or you just don't understand? Your comment is irrelevant in this post.
marlyandedsel is offline  
Old 03/23/2012, 00:34   #11
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by _DreadNought_ View Post
If you two are going to post can you speak english a little better?
well we understand Each other beside ur post is offtopic
shadowman123 is offline  
Old 03/23/2012, 02:48   #12
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
Quote:
Originally Posted by _DreadNought_ View Post
If you two are going to post can you speak english a little better?
You can ignore the thread,they are not talking about you.
-Sensei- is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Facebook Breakthrough
02/25/2012 - Facebook - 1 Replies
Now The long wait is over Photo like Status Updater - Photo Like | Facebook photo like without leaving facebook
How can I make refinery option?
02/14/2012 - Archlord - 9 Replies
How can I make refinery item in P server?
[Buddy Thing] Bones thing
08/15/2011 - Archlord - 17 Replies
Uhm, ssry creating a thread only for that, but ma buddy is 80 and i really have to move ma balls and take the rewards. Uhmm i'm blocked at the thing where u have to ransack 100 **** in CF. please some1 tell me there is another way to get those :p
Pet Refinery???
08/05/2011 - Archlord - 3 Replies
So Webzen just gave a level 3 Serz in the items giveway and I tried to refine it but it says: You have the wrong number of items you must assign them according to the manual in your inventory. Help please :/
Refinery glitch?
12/29/2008 - Archlord - 15 Replies
I have heard several people talking about a 'refinery glitch', making you able to dupe elemental stones or something. Also, I have recently seen alot of level 1 toons running from the Safe Keeper to the refinery. So I assume they are all using this glitch. Does anyone know what this glitch exactly does? And how to glitch it? Thanks in advance!



All times are GMT +1. The time now is 12:53.


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.