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.
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
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)"
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 ..
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?
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.
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
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?