Monster dmg fix.

If you want to help us or give some corrections / codes, put it here :)

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Monster dmg fix.

Postby mit1mit2 on Sun Sep 05, 2010 6:09 pm

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
mit1mit2
Rackie
Rackie
 
Posts: 169
Joined: Wed Dec 30, 2009 9:02 pm

Re: Monster dmg fix.

Postby PurpleYouko on Mon Sep 06, 2010 4:14 am

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 :?
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Monster dmg fix.

Postby mit1mit2 on Mon Sep 06, 2010 6:43 am

cause it doesn't work very well ;)
now i got perfect rates and (at least for higher lvl mobs) random dmg.
mit1mit2
Rackie
Rackie
 
Posts: 169
Joined: Wed Dec 30, 2009 9:02 pm

Re: Monster dmg fix.

Postby Terr0risT on Mon Sep 06, 2010 6:53 am

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.
User avatar
Terr0risT
Rackie
Rackie
 
Posts: 162
Joined: Sat Aug 11, 2007 10:22 am

Re: Monster dmg fix.

Postby mit1mit2 on Mon Sep 06, 2010 7:54 am

beans hit with critical c.a 15/16 and without critical c.a 10/11.

As far as i know is that perfect xD
mit1mit2
Rackie
Rackie
 
Posts: 169
Joined: Wed Dec 30, 2009 9:02 pm

Re: Monster dmg fix.

Postby Raavi on Mon Sep 06, 2010 11:45 am

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
Raavi
Rackie
Rackie
 
Posts: 243
Joined: Sun May 30, 2010 4:15 pm

Re: Monster dmg fix.

Postby mit1mit2 on Mon Sep 06, 2010 12:41 pm

actually they arent, i tested is with beans and with strong eldeon mobs there both nice ^^.
mit1mit2
Rackie
Rackie
 
Posts: 169
Joined: Wed Dec 30, 2009 9:02 pm

Re: Monster dmg fix.

Postby Sethanye on Mon Sep 06, 2010 5:00 pm

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"
~ Learning Flash ~ Anyone Know Any Good Tutorial DVDs? ~
Image
"Come Into My Dream, Let Me Show You Where I've Been.
Its You And Me I've Seen, Let Me Tell You What I Mean."
User avatar
Sethanye
Neko Chan
Neko Chan
 
Posts: 2603
Joined: Fri Jan 18, 2008 11:23 am
Location: ~ Resident Graphics Artist ~

Re: Monster dmg fix.

Postby mit1mit2 on Mon Sep 06, 2010 5:37 pm

it may is, but it works, and the hits are still random :roll: .
mit1mit2
Rackie
Rackie
 
Posts: 169
Joined: Wed Dec 30, 2009 9:02 pm

Re: Monster dmg fix.

Postby PurpleYouko on Tue Sep 07, 2010 5:20 pm

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
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Next

Return to Submit Code

Who is online

Users browsing this forum: No registered users and 6 guests