but were is calculation archer damage? i need to fix that :S he take like 200M damage -.-
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.Quote:
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
;) 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 1880Quote:
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.
Also do i only have to change them in skill.cs or are there more?Quote:
Damage = (uint)((double)Damage * (100 - C.EqStats.TotalBless) / 100);
Quote:
Damage = (uint)((Damage * (((double)(110 - C.EqStats.Dodge)) / 100)) / 8);
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)"Quote:
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's hit less?
THANKS GUY'S
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 :D 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 :D .. they given the source but modified for ppl that can undersand to read the code and modify!Quote:
i need to put low damage in archer :S
ppl have calculation damage but they not hlp us :(
Alright i looked under that in Character.cs and i see lines like in the Skill.cs so i just change these lines?Quote:
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)"
TooQuote:
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);
And i do it in both Character.cs and Skill.cs?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);
Above this line in Character.csQuote:
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);
Should i change those to this also?Quote:
public void TakeAttack(Character Attacker, uint Damage, AttackType AT, bool IsSkill)
THANKS AGAIN!!!!:handsdown::handsdown::handsdown: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);
Yeah i doubt she did too but u should help me with them:pQuote:
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.