Register for your free account! | Forgot your password?

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

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

Advertisement



[Help]How to change damage 5165

Discussion on [Help]How to change damage 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 01/12/2010, 20:00   #16
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
but were is calculation archer damage? i need to fix that :S he take like 200M damage -.-
ramix is offline  
Thanks
1 User
Old 01/12/2010, 20:31   #17
 
elite*gold: 0
Join Date: May 2006
Posts: 52
Received Thanks: 25
Quote:
Originally Posted by ramix View Post
but were is calculation archer damage? i need to fix that :S he take like 200M damage -.-
look for dodge based attak
intel_ro is offline  
Thanks
1 User
Old 01/12/2010, 20:45   #18
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
dodge? why? iam noob in code but i wanna learn
ramix is offline  
Thanks
1 User
Old 01/12/2010, 20:47   #19
 
elite*gold: 0
Join Date: May 2006
Posts: 52
Received Thanks: 25
Quote:
Originally Posted by ramix View Post
dodge? why? iam noob in code but i wanna learn
I'm noob to but i understand a liltle of coding
intel_ro is offline  
Thanks
1 User
Old 01/12/2010, 21:12   #20
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,383
Quote:
Originally Posted by xScott View Post
so you cant divide by 160 because it gives a decimal? what if you divided by 200?

but that can give a realy small number i guess iunno XD
Why would decimals cause an issue? You can still end up with a decimal from dividing by 100 as attacks are not a fixed amount.


50001 / 100 will give you a decimal. It will not cause an issue as the source should already be handling it just fine. Most sources will just re-convert any calculated damage to an int to cut off any decimal value before the damage itself is done (if not you will get an error in the calculation stating that the types are different, blablabla)

Decimals are NOT a bad thing in calculations. Infact they make things far more accurate because if you are doing a long string of calculations (defence, bless, torts, reborn def, etcetc) then cutting off decimals will give you a wrong final answer.
pro4never is offline  
Thanks
1 User
Old 01/12/2010, 21:24   #21
 
elite*gold: 0
Join Date: May 2006
Posts: 52
Received Thanks: 25
Quote:
Originally Posted by pro4never View Post
Why would decimals cause an issue? You can still end up with a decimal from dividing by 100 as attacks are not a fixed amount.


50001 / 100 will give you a decimal. It will not cause an issue as the source should already be handling it just fine. Most sources will just re-convert any calculated damage to an int to cut off any decimal value before the damage itself is done (if not you will get an error in the calculation stating that the types are different, blablabla)

Decimals are NOT a bad thing in calculations. Infact they make things far more accurate because if you are doing a long string of calculations (defence, bless, torts, reborn def, etcetc) then cutting off decimals will give you a wrong final answer.
right .. about same thing on magic attak and fire dmg now is around 1200+ on fire full +12 -7 and a troj with coro around 1880

did anyone tested this yet ?
intel_ro is offline  
Thanks
1 User
Old 01/12/2010, 21:37   #22
 
necuja's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 114
Received Thanks: 25
So how do i know what number's to divide by

And is this line the only thing's i have to divide just search these and change it?

Quote:
Damage = (uint)((double)Damage * (100 - C.EqStats.TotalBless) / 100);
Also do i only have to change them in skill.cs or are there more?

Does this line have anything to do with archer's atk and i should just change the 8 to like 28 to make archer'***** less?

Quote:
Damage = (uint)((Damage * (((double)(110 - C.EqStats.Dodge)) / 100)) / 8);

THANKS GUY'S
necuja is offline  
Old 01/12/2010, 22:05   #23
 
elite*gold: 0
Join Date: May 2006
Posts: 52
Received Thanks: 25
Quote:
Originally Posted by necuja View Post
So how do i know what number's to divide by

And is this line the only thing's i have to divide just search these and change it?



Also do i only have to change them in skill.cs or are there more?

Does this line have anything to do with archer's atk and i should just change the 8 to like 28 to make archer'***** less?



THANKS GUY'S
Yes that are only for any kind of skill on mele attak or normal arrow atack u should search in character.cs under "public void TakeAttack(Character Attacker, uint Damage, AttackType AT, bool IsSkill)"
intel_ro is offline  
Thanks
1 User
Old 01/12/2010, 22:06   #24
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
i need to put low damage in archer :S

ppl have calculation damage but they not hlp us
ramix is offline  
Old 01/12/2010, 22:19   #25
 
elite*gold: 0
Join Date: May 2006
Posts: 52
Received Thanks: 25
Quote:
Originally Posted by ramix View Post
i need to put low damage in archer :S

ppl have calculation damage but they not hlp us
did u try to modify that lines .. can u tell me is all is ok , if not we shoul searc then the real dmg seted for arrows in source i'm sure i saw sometin bout arrows dmg i found alot of changes made in source .. like cup or bronze prize .. insted of 1K attak it add 100K .. and some wired like on bless u can bles headgear because .. of conctrol code .. they given the source but modified for ppl that can undersand to read the code and modify!
On my server ppl cry they don't have rb skils on second rb so i added defaul skils stigma cure thuder bless mdeitation

idk if in 5165 reflect is coded as skill if yes i will put'it on second rb skill .. then to find a way to to random acctivate reflect on attak .. but there will be a probelm .. if i put in this code of 5165 and on attak is not checking if attaked char is not second rb reflect will be added on all chars ..
intel_ro is offline  
Thanks
1 User
Old 01/12/2010, 22:50   #26
 
necuja's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 114
Received Thanks: 25
Quote:
Originally Posted by intel_ro View Post
Yes that are only for any kind of skill on mele attak or normal arrow atack u should search in character.cs under "public void TakeAttack(Character Attacker, uint Damage, AttackType AT, bool IsSkill)"
Alright i looked under that in Character.cs and i see lines like in the Skill.cs so i just change these lines?

Quote:
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 100);
Damage = (uint)((double)Damage * (((double)(110 - EqStats.Dodge) / 100)));
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 100);
Damage = (uint)((double)Damage * (((double)(100 - EqStats.MDef1) / 100)));
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 100);
Too

Quote:
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 160);
Damage = (uint)((double)Damage * (((double)(110 - EqStats.Dodge) / 160)));
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 160);
Damage = (uint)((double)Damage * (((double)(100 - EqStats.MDef1) / 160)));
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 160);
And i do it in both Character.cs and Skill.cs?

I also found these

Quote:
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 100);
Damage = (uint)((double)Damage * (((double)(100 - EqStats.MDef1) / 100)));
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 100);
Damage = (uint)((double)Damage * (((double)(110 - EqStats.Dodge) / 100)));
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 100);
Above this line in Character.cs

Quote:
public void TakeAttack(Character Attacker, uint Damage, AttackType AT, bool IsSkill)
Should i change those to this also?

Quote:
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 160);
Damage = (uint)((double)Damage * (((double)(100 - EqStats.MDef1) / 160)));
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 160);
Damage = (uint)((double)Damage * (((double)(110 - EqStats.Dodge) / 160)));
Damage = (uint)((double)Damage * (100 - EqStats.TotalBless) / 160);
THANKS AGAIN!!!!
necuja is offline  
Old 01/12/2010, 23:07   #27
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
takes me 200M :S archer why?

is only hit 200M with bow and arrows :S
ramix is offline  
Old 01/12/2010, 23:22   #28
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Tweety.4Girls View Post
I have atack fixed 100% try my server and see that
Honestly, I highly doubt that.
You couldn't even make your own npc and now you are claiming you fixed attack calculations 100%?
Sorry but I find that very hard to believe.
Arcо is offline  
Old 01/12/2010, 23:24   #29
 
necuja's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 114
Received Thanks: 25
Quote:
Originally Posted by Hepatitis C View Post
Honestly, I highly doubt that.
You couldn't even make your own npc and now you are claiming you fixed attack calculations 100%?
Sorry but I find that very hard to believe.
Yeah i doubt she did too but u should help me with them

Thanks
necuja is offline  
Thanks
1 User
Old 01/12/2010, 23:27   #30
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
yah me too :S

iam try fix my damage ty to this topic and the ppl in this topic

but is hard fixed... some times trojan have a normal attack and other times have a overpower damage :S like ninjas :S
ramix is offline  
Reply


Similar Threads Similar Threads
5165 Damage Calculation
03/07/2010 - CO2 Private Server - 7 Replies
Fixes around the forum are useless and no where near good enough if you want to make a server public. Someone should go ahead and fix it then release their code. Get some thanks and make everyone happy. I wont because I can't, I would if i could. ^^
5165 Damage issues
02/06/2010 - CO2 Private Server - 1 Replies
Okay, this is odd. Somehow my lvl 100 naked ninja one hits my 2nd rb PM with over 17k hp, yet... he does only 52 damage. WTF. How can i change this damage? Thanks in advance!
Simple Handle Damage for 5165
01/31/2010 - CO2 Private Server - 0 Replies
Sry with my english, Here it is simple method for handle damage for 5165 source, couse i hve trouble with damage, all player can hit by 1. go to Character.cs after TakeAttack method i create new method, like this : public void ExtraDefence(ushort pDef) { pDef = (ushort)(this.Level * 100);//<-----put every value u need if (this.Reborns == 1) { pDef = (ushort)(pDef + ((pDef * 30) / 100));
Is it possible to change damage of critical?
07/15/2008 - Kal Online - 3 Replies
I seen today that someone used a hack and gm said it was a crithacker and its also a knight so any ideas of hack that could have done this? And is there any other good Kal Online hacking site beside this one?



All times are GMT +2. The time now is 10:56.


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

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.