Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #005103

  • 3 - Medium

  • Needs More Info

Issue Confirmations

  • Yes (4)No (0)
Photo

Renewal MATK formula issue

Posted by Hercules Bot on 06 December 2011 - 07:58 PM

Originally posted by Ind
see [bug=5101].
I've followed doddlers formula for matk, as follows
	 * min: (weaponMATK+upgradeMATK) * 2 + 1.5 * statusMATK
	 * max: [weaponMATK+upgradeMATK+(wMatk*wLvl)/10] * 2 + 1.5 * statusMATK
	 * yes this formula MATCHES their site: matk_max already holds weaponmatk+upgradematk, and
	 * -> statusMATK holds the %Matk modifier stuff from earlier and lastly:
	 * -> the mdef part is not applied at this point, but later.
problem encountered in the [bug=5101] is that there is no weaponMATK or upgrade MATK for mobs, which leads some areas to want to divide by 0 (which caused 5101 issue) in [rev=15019] I've added a temporary fix by adding a +1 to where it'd try to divide by 0. how is this done in officials, mobs/homuns/mercenary/etc matk formula is different? anything you know that could help? please reply.
Thank you for your time.

Originally posted by Triper
According doodler, the matk of monsters is supposed to be based on their ATK/2 but ofc this may be outdated since this posts are a bit outdated...
Here is the post just in the case it may helps:
http://forums.irowik...647&postcount=9
And some more that seems to proof that it seems real what he says:
http://forums.irowik...35&postcount=31
http://forums.irowik...28&postcount=38
http://forums.irowik...16&postcount=39

Originally posted by Ind
oh interesting, thanks for the info. but what should we do about the formula?  that ATK/2 goes in statusMATK, right? then what should be done regarding weaponMATK and upgradeMATK -- for monsters.

Originally posted by Triper
Make a new formula for monsters instead of using the player's version?

I checked irowiki's db for monsters and they don't seem to even have str there[it's like if str was useless to have there] but there is info about each other single stat which leads to me end thinking that maybe the atk they have is just a plain status atk?

Kinda makes sense except in one fact - status atk ignores reduces as raydric/asprika/etc but weapon atk nop which leads to even think that the "how it works" is totally different from the player version even more and it's like the atk of monsters is a status atk that works as a weapon atk in some aspects, like an hybrid atk ._.

http://irowiki.org/wiki/ATK

Originally posted by malufett
I do believe that mdef of mobs are not 0..
based on my test on kro its hard and soft mdef are same they both affect the calculations...(as I used in ReAM)

as I remember mobs uses the old mechanics on there atk except for the reduction..but I'll try to confirm it on game and try to post SS here..

Originally posted by malufett
here is the formula I formulated from irowiki and from testing in kRO
and this fomula is the one I use in ReAM(Renewal eAthena Modification) and its perfectly the same with kRO which I test in different mobs..
I did not test yet on players in kRO but I do believe that the only difference is where mobs it uses the same hard mdef  and soft mdef while in players they are not the same..

matk_min = status matk + weapon matk + ematk
matk_max = status matk + weapon matk + Floor(+- weapon matk * (weapon lvl/10)) + ematk
but actually no more min/max its just about the variance on weapon lvl


final calculation

magic damage =Floor(  (min_matk<>max_matk) * elemental_calc *  111.5 / (111.5+mdef) - mdef2*1.5)

*take note elemental calculation take first before mdef reduction


test monster: Geographer
Lvl: 75
mdef: 42 (on mobs mdef is same with mdef2)


kRO: no weapon
Posted Image
status_matk
weapon_atk (if bear hands default value is 1)
weapon_level (if bear hands default value is 1)
element_cal (fire vs level3 earth deals 200%)

matk_min = 146 + 1
matk_max = 146 + 1  +- 1 * (1/10)
magic damage =Floor(  (min_matk<>max_matk) * 200/100 *  111.5 / (111.5+42) - 42*1.5)
result = 150



kRO: w/ weapon lvl 1
Posted Image
status_matk

weapon_atk (if bear hands default value is 1)
weapon_level (if bear hands default value is 1)
element_cal (fire vs level3 earth deals 200%)

matk_min = 146 + 32
matk_max = 146 + 32  +- 32 * (1/10)
magic damage =Floor(  (min_matk<>max_matk) * 200/100 *  111.5 / (111.5+42) - 42*1.5)
result = 146 ~ 203


kRO: w/ weapon lvl.2 refine +2
Posted Image

status_matk

weapon_atk (if bear hands default value is 1)
weapon_level (if bear hands default value is 1)
element_cal (fire vs level3 earth deals 200%)

matk_min = 149 + 79
matk_max = 149 + 79  +- 79 * (2/10)
magic damage =Floor(  (min_matk<>max_matk) * 200/100 *  111.5 / (111.5+42) - 42*1.5)
result = 253 ~ 306


now let test on rA here is the result
Posted Image


and here is ReAM
Posted Image

Edited by malufett, 28 April 2012 - 05:26 PM.


Originally posted by Angezerus
Wow! Nice one! That speaks for itself ;)

Originally posted by Ind
malufett thank you for elaborating so well your post and with so much information, but this post is about the matk formula on mobs, would you be able to quote that post of yours and create a new bug report for mdef? thank you very much :]

Originally posted by malufett
Thanks..
ok...and i'll try create test for mobs on kRO..and create another post for mdef and matk formula...

Originally posted by malufett
formula for mobs are hard to formulate..
so anyone wants to try here is the data

Player:
smdef: 34
emdef: 5

Mob:
Elder Willow(lv34)
Str: 10 Dex: 29 Agi: 14
Vit: 25 Int: 0 Luk: 0

smatk: 13
firebolt: 7~15 per hit

Originally posted by KeiKun
more please xD

Originally posted by malufett
more? like?
hmm..other mobs?

Originally posted by Angezerus
Was this fixed? I think I saw a revision fixing some part of this, but was that the whole thing?

Originally posted by Daylight
malufett, do you want this?

Posted Image

I tried 10 times.
10X3->1 times, 11X3->3 times, 14X3->4 15X3->2 times.

Edited by Daylight, 02 August 2012 - 10:04 AM.