Page 1 of 2

Monster dmg fix.

PostPosted: Sun Sep 05, 2010 6:09 pm
by mit1mit2
I've just fixed this bug in my server cause the mobs where all hitting 5.
What i did was pretty easy so i don't really know if this is the right place but if not please replace it ^^.

I replaced:
  1. hitpower = (long int)floor(attack * (GServer->Config.MonsterDmg/100.00));

with:
  1. hitpower = (long int)floor(attack * (GServer->Config.MonsterDmg/75.00));


and i got dmg support fixed (stb needed) but that ain't why i put it here.

compiled download link: http://www.megaupload.com/?d=X3C98KZD
If that one doesn't work: http://www.woofiles.com/dl-205117-c24RVNFo-osirose.rar

Re: Monster dmg fix.

PostPosted: Mon Sep 06, 2010 4:14 am
by PurpleYouko
Ummm... Why didn't you just change the Config.MonsterDmg setting in the config database table instead of messing around with the code. That's why we put it there :?

Re: Monster dmg fix.

PostPosted: Mon Sep 06, 2010 6:43 am
by mit1mit2
cause it doesn't work very well ;)
now i got perfect rates and (at least for higher lvl mobs) random dmg.

Re: Monster dmg fix.

PostPosted: Mon Sep 06, 2010 6:53 am
by Terr0risT
Actually, the better way is to fix the player stats calculation. PY wrote /mystat2 so we can fix the old formula. Old you need to do now is match the Stats client and server side. If you can get that right, your damage should be close to perfect all across the levels. From Beans to Devourers.

Re: Monster dmg fix.

PostPosted: Mon Sep 06, 2010 7:54 am
by mit1mit2
beans hit with critical c.a 15/16 and without critical c.a 10/11.

As far as i know is that perfect xD

Re: Monster dmg fix.

PostPosted: Mon Sep 06, 2010 11:45 am
by Raavi
i noticed that the formules are level based for example

Low level monsters are easy normal level monsters are oke high level monsters are way to overpowered

Re: Monster dmg fix.

PostPosted: Mon Sep 06, 2010 12:41 pm
by mit1mit2
actually they arent, i tested is with beans and with strong eldeon mobs there both nice ^^.

Re: Monster dmg fix.

PostPosted: Mon Sep 06, 2010 5:00 pm
by Sethanye
all u really did though is decrease the damage by 25% through out the game, i mean it may work but thats narose kind of "fixing"

Re: Monster dmg fix.

PostPosted: Mon Sep 06, 2010 5:37 pm
by mit1mit2
it may is, but it works, and the hits are still random :roll: .

Re: Monster dmg fix.

PostPosted: Tue Sep 07, 2010 5:20 pm
by PurpleYouko
cause it doesn't work very well ;)
now i got perfect rates and (at least for higher lvl mobs) random dmg.

I don't see any way it can possibly be any different
All you are doing is dividing one constant by another constant so the answer is still going to be a constant.

if you have monster damage set to 100 (default value) then
GServer->Config.MonsterDmg/100.00 ==== 1

your mod
GServer->Config.MonsterDmg/75.00 ==== 1.33

so you can get precisely the same value by increasing GServer->Config.MonsterDmg to 133
133 / 100 ==== 1.33