Issue information

Issue ID
#5103
Status
Needs more Info
Severity
Medium
Started
Hercules Elf Bot
Dec 6, 2011 19:58
Last Post
Hercules Elf Bot
Aug 2, 2012 10:02
Confirmation
Yes (4)
No (0)

Hercules Elf Bot - Dec 6, 2011 19:58

Originally posted by [b]Ind[/b]
see [bug=5101].
I've followed doddlers formula for matk, as follows
[CODE]
* 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.
[/CODE]
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.

Hercules Elf Bot - Dec 7, 2011 2:57

Originally posted by [b]Triper[/b]
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.irowiki.org/showpost.php?p=950647&postcount=9
And some more that seems to proof that it seems real what he says:
http://forums.irowiki.org/showpost.php?p=954835&postcount=31
http://forums.irowiki.org/showpost.php?p=957928&postcount=38
http://forums.irowiki.org/showpost.php?p=958016&postcount=39

Hercules Elf Bot - Dec 8, 2011 15:06

Originally posted by [b]Ind[/b]
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.

Hercules Elf Bot - Dec 8, 2011 21:14

Originally posted by [b]Triper[/b]
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

Hercules Elf Bot - Apr 26, 2012 17:23

Originally posted by [b]malufett[/b]
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..

Hercules Elf Bot - Apr 28, 2012 16:15

Originally posted by [b]malufett[/b]
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..

[quote]
[color=#465584][font=Courier,]matk_min = status matk + weapon matk [/font][/color][color=#465584][font=Courier,]+ ematk[/font][/color]
[color=#465584][font=Courier,]matk_max = status matk + weapon matk + Floor(+- weapon matk * (weapon lvl/10)) + ematk[/font][/color]
[size=3][color=#465584][font=Courier,]but actually no more min/max its just about the variance on weapon lvl[/font][/color][/size]
[/quote]

final calculation
[quote]magic damage =Floor( (min_matk<>max_matk) * elemental_calc * 111.5 / (111.5+mdef) - mdef2*1.5) [/quote]
*take note elemental calculation take first before mdef reduction


test monster: Geographer
Lvl: 75
[color=#333333][font=Tahoma, Verdana, Arial, sans-serif][size=3]mdef: 42 (on mobs mdef is same with mdef2)[/size][/font][/color]


kRO: no weapon
[color=#333333][font=Tahoma, Verdana, Arial, sans-serif][size=3][img]http://i45.tinypic.com/2hnrind.jpg[/img][/size][/font][/color]
[b][color=#ff0000]status_matk[/color][/b]
[b][color=#0000cd]weapon_atk (if bear hands default value is 1)[/color][/b]
[color=#ff8c00][b]weapon_level [/b][/color][b][color=#0000CD](if bear hands default value is 1)[/color][/b]
[color=#00ffff][b]e[/b][b]lement_cal (fire vs level3 earth deals 200%)[/b][/color]
[quote]
[color=#465584][font=Courier,]matk_min = [/font][/color][b][color=#ff0000][font=Courier,]146[/font][/color][/b][color=#465584][font=Courier,] [/font][/color][color=#000000][font=Courier,]+[/font][/color][color=#465584][font=Courier,] [/font][/color][b][color=#0000cd][font=Courier,]1[/font][/color][/b]
[color=#465584][font=Courier,]matk_max = [/font][/color][b][color=#ff0000][font=Courier,]146[/font][/color][/b][color=#465584][font=Courier,] + [b]1[/b] +- [b]1[/b] * ([/font][/color][color=#ff8c00][font=Courier,]1[/font][/color][color=#465584][font=Courier,]/10)[/font][/color]
magic damage =Floor( (min_matk<>max_matk) * [b][color=#00ffff]200/100[/color][/b] * 111.5 / (111.5+[b][color=#800080]42[/color][/b]) - [b][color=#800080]42[/color][/b]*1.5)
result = [size=5]150[/size]
[/quote]


kRO: w/ weapon lvl 1
[img]http://i50.tinypic.com/avrjt1.jpg[/img]
[b][color=#FF0000]status_matk[/color][/b]

[b][color=#0000CD]weapon_atk (if bear hands default value is 1)[/color][/b]
[color=#FF8C00][b]weapon_level [/b][/color][b][color=#0000CD](if bear hands default value is 1)[/color][/b]
[color=#00FFFF][b]e[/b][b]lement_cal (fire vs level3 earth deals 200%)[/b][/color]
[quote]
[color=#465584][font=Courier,]matk_min = [/font][/color][b][color=#FF0000][font=Courier,]146[/font][/color][/b][color=#465584][font=Courier,] [/font][/color][color=#000000][font=Courier,]+[/font][/color][color=#465584][font=Courier,] [/font][/color][b][color=#0000CD][font=Courier,]32[/font][/color][/b]
[color=#465584][font=Courier,]matk_max = [/font][/color][b][color=#FF0000][font=Courier,]146[/font][/color][/b][color=#465584][font=Courier,] + [b]32[/b] +- [b]32[/b] * ([/font][/color][color=#FF8C00][font=Courier,]1[/font][/color][color=#465584][font=Courier,]/10)[/font][/color]
magic damage =Floor( (min_matk<>max_matk) * [b][color=#00FFFF]200/100[/color][/b] * 111.5 / (111.5+[b][color=#800080]42[/color][/b]) - [b][color=#800080]42[/color][/b]*1.5)
result = [size=5]146 ~ 203[/size]
[/quote]

kRO: w/ weapon lvl.2 refine +2
[img]http://i48.tinypic.com/t8q7me.jpg[/img]

[b][color=#FF0000]status_matk[/color][/b]

[b][color=#0000CD]weapon_atk (if bear hands default value is 1)[/color][/b]
[color=#FF8C00][b]weapon_level [/b][/color][b][color=#0000CD](if bear hands default value is 1)[/color][/b]
[color=#00FFFF][b]e[/b][b]lement_cal (fire vs level3 earth deals 200%)[/b][/color]
[quote]
[color=#465584][font=Courier,]matk_min = [/font][/color][b][color=#FF0000][font=Courier,]149[/font][/color][/b][color=#465584][font=Courier,] [/font][/color][color=#000000][font=Courier,]+[/font][/color][color=#465584][font=Courier,] [/font][/color][b][color=#0000CD][font=Courier,]79[/font][/color][/b]
[color=#465584][font=Courier,]matk_max = [/font][/color][b][color=#FF0000][font=Courier,]149[/font][/color][/b][color=#465584][font=Courier,] + [b]79[/b] +- [b]79[/b] * ([/font][/color][color=#FF8C00][font=Courier,]2[/font][/color][color=#465584][font=Courier,]/10)[/font][/color]
magic damage =Floor( (min_matk<>max_matk) * [b][color=#00FFFF]200/100[/color][/b] * 111.5 / (111.5+[b][color=#800080]42[/color][/b]) - [b][color=#800080]42[/color][/b]*1.5)
result = [size=5]253 ~ 306[/size]
[/quote]

now let test on rA here is the result
[img]http://i50.tinypic.com/2prinvc.jpg[/img]


and here is ReAM
[img]http://i50.tinypic.com/2wmkms8.jpg[/img]

This post has been edited by malufett on Apr 28, 2012 17:26

Hercules Elf Bot - Apr 29, 2012 12:28

Originally posted by [b]Angezerus[/b]
Wow! Nice one! That speaks for itself ;)

Hercules Elf Bot - May 2, 2012 3:58

Originally posted by [b]Ind[/b]
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 :]

Hercules Elf Bot - May 2, 2012 11:50

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

Hercules Elf Bot - May 6, 2012 13:16

Originally posted by [b]malufett[/b]
[size=4]formula for mobs are hard to formulate..[/size]
[size=4]so anyone wants to try here is the data[/size]

[size=4]Player:[/size]
[size=4]smdef: 34[/size]
[size=4]emdef: 5[/size]

[size=4]Mob:[/size]
[size=4]Elder Willow(lv34)[/size]
[size=4][color=#333333][font=Tahoma, Verdana, Arial, sans-serif]Str: 10 Dex: 29 Agi: 14[/font][/color]
[color=#333333][font=Tahoma, Verdana, Arial, sans-serif]Vit: 25 Int: 0 Luk: 0[/font][/color][/size]
[size=4]smatk: 13[/size]
[size=4]firebolt: 7~15 per hit[/size]

Hercules Elf Bot - May 6, 2012 14:10

Originally posted by [b]KeiKun[/b]
more please xD

Hercules Elf Bot - May 6, 2012 14:49

Originally posted by [b]malufett[/b]
more? like?
hmm..other mobs?

Hercules Elf Bot - Jul 12, 2012 9:59

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

Hercules Elf Bot - Aug 2, 2012 10:02

Originally posted by [b]Daylight[/b]
[url="http://rathena.org/board/user/3651-malufett/"]malufett[/url], do you want this?

[img]http://img269.imageshack.us/img269/8425/testyt.jpg[/img]

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

This post has been edited by Daylight on Aug 2, 2012 10:04