Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions > CO2 PServer Guides & Releases
You last visited: Today at 01:31

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


[Release] Fix Archer/Taoist Damage and Huge Thunder/Fire Damage

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2006
Posts: 63
Received Thanks: 28
Post [Release] Fix Archer/Taoist Damage and Huge Thunder/Fire Damage

This is what you need to Fix Archer (Skills)/Taoist Damage and Huge Thunder/Fire Damage in LOTF source.

Open Other.cs
Code:
public static uint CalculateDamage(Character Attacker, Character Attacked, byte AttackType, ushort SkillId, byte SkillLvl)
Replace the whole method with the following method

Code:
public static uint CalculateDamage(Character Attacker, Character Attacked, byte AttackType, ushort SkillId, byte SkillLvl)
        {
            int Damage = 0;
            ushort[] SkillAttributes = DataBase.SkillAttributes[SkillId][SkillLvl];
            int ExtraDamage = (int)SkillAttributes[3];
	    const double MaxMDefense = 3000.0;

            if (AttackType == 0 || AttackType == 1) // Direct Attack
            {
                Damage = General.Rand.Next((int)Attacker.MinAtk, (int)Attacker.MaxAtk);

                if (AttackType == 0)
                    Damage += ExtraDamage;
                else
                    Damage = (int)((ExtraDamage / (double)100) * Damage);

                Damage = (int)(Damage * Attacker.AddAtkPc);

                if (Attacker.StigBuff)
                    Damage = (int)(Damage * (1 + ((10 + Attacker.StigLevel) / (double)100)));

                if (Attacker.SMOn)
                    Damage *= 2;

                Damage -= Attacked.Defense;

                if (Damage < 1)
                    Damage = 1;
            }
            else if (AttackType == 2)  // Ranged
            {
                Damage = General.Rand.Next((int)Attacker.MinAtk, (int)Attacker.MaxAtk);
                Damage += ExtraDamage;

                Damage = (int)(Damage * Attacker.AddAtkPc);

                if (Attacker.SMOn)
                    Damage *= 2;
                if (Attacker.StigBuff)
                    Damage = (int)(Damage * (1 + ((10 + Attacker.StigLevel) / (double)100)));

                Damage = (int)(Damage * ((105 - Attacked.Dodge) / (double)100));

                if (Damage < 1)
                    Damage = 1;
            }
            else if (AttackType == 3 || AttackType == 4)//Magic Attack
            {
                if (AttackType == 3)
                    Damage = (int)Attacker.MAtk + ExtraDamage;
                else
                    Damage = (int)((ExtraDamage * Attacker.MAtk));

                double Pc = ((MaxMDefense - Attacked.MDefense) / MaxMDefense);

                Damage = (int)(Damage * Attacker.AddMAtkPc);
                Damage = (int)(0.50 * Damage);
                Damage = (int)(Damage * Pc);

                if (Damage < 1)
                    Damage = 1;
            }
            else
            {
                Damage = 1;
            }
            return (uint)Damage;
        }
Hope this will help



THE BAT is offline  
Thanks
12 Users
Old 09/18/2008, 04:09   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 153
WRONG.

This will fix tao damage, but only scatter damage for archers.

K?

Archer damage(normal, just shooting arrows) is in the Character.Attack() method... Jeeeeeeeezzz.


tao4229 is offline  
Old 09/18/2008, 04:24   #3
 
elite*gold: 0
Join Date: Aug 2006
Posts: 63
Received Thanks: 28
Quote:
Originally Posted by tao4229 View Post
WRONG.

This will fix tao damage, but only scatter damage for archers.

K?

Archer damage(normal, just shooting arrows) is in the Character.Attack() method... Jeeeeeeeezzz.
I'm Talking about the Skills (Like Fire, Scatter), its working for Taoist and Archer, and Fix that Huge Fire or Thunder Attack.

and yes you are right about Character.Attack() its contain the direct attack damage.
THE BAT is offline  
Old 09/18/2008, 08:03   #4
 
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
thanks for the contribution


taguro is offline  
Old 09/18/2008, 12:19   #5
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
nice, thanks!
pauldexter is offline  
Old 09/18/2008, 13:36   #6
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
I'll check this out (All tho I already have them fixed)
glupkotrup is offline  
Old 09/18/2008, 15:43   #7
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Thanks for the contribution, but it didn't work for me. Maybe cuz im using PowerSource.
Exia13 is offline  
Old 09/18/2008, 16:02   #8
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
+thanks for the contrib, but will this fix the fact that only melee skills\ melee physical and FireArista tend to do any real damage when pking?
Rechocto is offline  
Old 09/18/2008, 19:14   #9
 
elite*gold: 0
Join Date: Aug 2006
Posts: 63
Received Thanks: 28
Quote:
Originally Posted by Rechocto View Post
+thanks for the contrib, but will this fix the fact that only melee skills melee physical and FireArista tend to do any real damage when pking?
yes this fix the melee skills and FireArista in Pking
THE BAT is offline  
Old 10/02/2008, 19:55   #10
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Sorry to say this bat, but this made my Tao damages WAY too high. I havent tested the archer damages yet, but for any1 else, i wouldn't use the code for Magic Attack if i were you.
Exia13 is offline  
Old 10/02/2008, 22:23   #11
 
elite*gold: 0
Join Date: Aug 2006
Posts: 63
Received Thanks: 28
Quote:
Originally Posted by Exia13 View Post
Sorry to say this bat, but this made my Tao damages WAY too high. I havent tested the archer damages yet, but for any1 else, i wouldn't use the code for Magic Attack if i were you.
yes, sorry, its too high

i updated it and its fine now, try it
THE BAT is offline  
Old 11/08/2008, 16:11   #12
 
elite*gold: 0
Join Date: May 2006
Posts: 38
Received Thanks: 16
lol guys, that aint gonna fix archer dmg use this formula for fixing archer dmg


Damage = (int)((double)(Damage) / Attacked.Dodge) * reborn);

btw hit thanx if helped
Padaras is offline  
Thanks
2 Users
Old 04/20/2009, 21:21   #13
 
elite*gold: 0
Join Date: Apr 2007
Posts: 46
Received Thanks: 0
Code:
public static uint CalculateDamage(Character Attacker, Character Attacked, byte AttackType, ushort SkillId, byte SkillLvl)
        {
            int Damage = 0;
            ushort[] SkillAttributes = ExternalDatabase.SkillAttributes[SkillId][SkillLvl];
            int ExtraDamage = (int)SkillAttributes[3];

            if (AttackType == 0 || AttackType == 1)//Melee
            {
                Damage = General.Rand.Next((int)Attacker.MinAtk, (int)Attacker.MaxAtk);
                if (AttackType == 0)
                    Damage += ExtraDamage;
                else
                    Damage = (int)(((double)ExtraDamage / 100) * Damage);

                Damage = (int)((double)Damage * Attacker.AddAtkPc);

                if (Attacker.StigBuff)
                    Damage = (int)(Damage*(double)(1 + ((double)(10 + Attacker.StigLevel) / 100)));

                if (Attacker.SMOn)
                    Damage *= 2;

                Damage -= Attacked.Defense;

                if (Damage < 1)
                    Damage = 1;
            }
            else if (AttackType == 2)//Ranged
            {
                double reborn = 1;

                int Atk = General.Rand.Next((int)Attacker.MinAtk, (int)Attacker.MaxAtk);
                Atk += ExtraDamage;

                Atk = (int)((double)Atk * Attacker.AddAtkPc);

                if (Attacker.SMOn)
                    Atk *= 2;
                if (Attacker.StigBuff)
                    Atk = (int)(Atk * (double)(1 + ((double)(10 + Attacker.StigLevel) / 100)));

                if (Attacked.RBCount == 1)
                    reborn = 0.7;
                else if (Attacked.RBCount == 2)
                    reborn = 0.4;

                Damage = (int)(((Atk - Attacked.Defense) * reborn) * (double)(Attacked.Dodge/100));

                if (Damage < 1)
                    Damage = 1;
            }
            else if (AttackType == 3 || AttackType == 4)//Magic
            {
                double reborn = 1;
                if (AttackType == 3)
                    Damage = (int) + ExtraDamage;
                else
                    Damage = (int)((double)ExtraDamage * Attacker.MAtk);
                if(Attacked.RBCount == 1)
                    reborn = 0.7;
                else if (Attacked.RBCount == 2)
                    reborn = 0.4;
                Damage = (int)((Attacker.MAtk - Attacked.MDefense) * reborn);

                //Atk = (float)(((((Atk - Defense) - PlusDef) * Reborn) * Blessed));

                if (Damage < 1)
                    Damage = 1;
            }
            return (uint)Damage;
        }

It is my... with atk of reborn.... ur not have
auraboreal is offline  
Old 04/20/2009, 21:42   #14
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
LoLz... Please do NOT re-discuss threads started like 10 years ago... -_-
glupkotrup is offline  
Old 04/20/2009, 22:14   #15
 
elite*gold: 20
Join Date: May 2007
Posts: 1,119
Received Thanks: 328
Quote:
Originally Posted by glupkotrup View Post
LoLz... Please do NOT re-discuss threads started like 10 years ago... -_-
Since the majority of the community is going back to LOTF, I guess we better expect more July-November era topics.


LetterX is offline  
Reply



« [Release] Day & Night!! | [Release] Drop Stuff BlackName Or Redname »

Similar Threads
[HUGE PROBLEM] 5165 archer bow damage bug
04/30/2010 - CO2 PServer - Discussions / Questions - 9 Replies
hey guys :x i have a big problem... i have a 5165 conquer server, and i found a huge bug x_X the archer's bow have a bug that makes them kill every player with 1 shot o_o they cause a huge damage.... can someone helpme fix this?
[Request] Taoist and Archer Damage Fixed
09/03/2008 - CO2 PServer - Discussions / Questions - 14 Replies
Someone knows how to fix this? No1 made and topic like this before or posted it anywere...



All times are GMT +2. The time now is 01:31.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.