# Thread: Studying mob damage Post-BB

1. ## Studying mob damage Post-BB

Here's what I've come up with so far:

This is what happens if a mob damages you

ORDER OF EVENTS:
• Check if the mob missed the attack. If so, return 0 damage.
• The mob's attack is fetched
• If the mob is affected by Threaten, reduce it's WATK value by the percentage given in the skill OR if a mob is influenced by a damage increasing skill, increase the WATK. Precedence is on Threaten.
• Constrain mob attack between 29,999 and 1.
• Calculate mob base damage
• MobMin = mobAttack * 0.85
• MobMax = mobAttack
• return (MobMin - MobMax) * MobMin * 0.000000100000010000001 + MobMax;
• Calculate Player PDD - this NEVER takes into account StandardPDD.img - this img file is never used.
• Then perform the following calculation on PDD --> pdd = math.round(totalPDD * 0.25, 0)
• Subtract pdd from mob base damage
• Multiply the damage according to damage reduction skills (Achilles, Combo Barrier)
• Factor in Meso Guard
• Constrain the damage between 999,999 and 1
• Return damage

2. Are skills like Fake applied before the avoid formula?

3.

4. It is 1/9,999,999 due to limits of float values. Just compiler-optimization.

5. Gotta admit though... I'm a complete nerd. The moment I saw that number... before properly counting the zeros: "hey! isn't that 1/9,999,999".

So... question... what the hell's up with such a weird number being used here 0.o

6. Why do mobs get 85&#37; mastery? :<

I'm interested to see how defense factors in now. I hope it's not useless anymore.

7. Coder types
a = x/9999999

Compiler converts this to
a = x*0.000000100000010000001

Multiplication is a much faster operation than division. Why they do 9999999? Same reason damage cap is 199,999 I guess... they just like 9s.

8. Hm... How higher the mobAttack is, the lower the &#37; of that mobAttack is returned at that 'return'. But at 30k mobAttack, it still returns 99,96% of it (coming to 29988)... Is this info of any relevancy? And why did they use this formula if at the max mobAttack is changed with 0,04% at max? D=
Just testing a bit with numbers as I have no idea how that programming code in the spoiler works... =P

9. Since standardPDD is still keep in Base.wz,
I assume pdd formula will not change a lot.

At last NX forget to remove the img file = =
Seems that 4 pdd means 1 HP... So easy XD

Round works everywhere... instead of FLOOR.

10. v3 = str
v4 = dex
*(v2 + 68) = int
v5 = luk
Gives 44 56 68 80 or 36 48 60 72 offsets, a reasonable way to lay out str/dex/int/luk.
Which would mean it's returning
0.4 * INT + (DEX + LUK)*0.5 + STR * 1.2

11. Base Magic and Physical Accuracy are calculated differently:

Base Magic Accuracy = INT + LUK * 1.2
Base Magic Avoid = INT + LUK * 2
Base Magic Defense = STR * 0.4 + (DEX + LUK) * 0.5 + INT * 1.2

Base Physical Accuracy = LUK + DEX * 1.2
Base Physical Avoid = DEX + LUK * 2
Base Physical Defense = INT * 0.4 + (LUK + DEX) * 0.5 + STR * 1.2

12. That definitely makes a whole lot more sense! Finally STR factors into physical defense! =_=

Is it base stats only? Or total?

13. Total Stats.

14. I finished out the formula.

There are some parts of it that I left out because I couldn't figure it out. For example, I think there are further PDD penalties for being below the mob's level or the mob being a boss. This calculation should prove useful for +90&#37; of mobs, though.

A few things to take from the formula:

1. The mob will never do more damage than its attack value states unless it's being buffed by a friend.
2. Threaten works on enemy attack before any mob calculations are taken place.
3. Achilles and Combo Barrier work after the damage is calculated and reduced.

Another fun fact - Threaten will work on bosses, but the code expressly forbids Threaten from working on any mob that begins with "882". This number represents Pink Bean and, should Nexon ever have the cojones to create it, Chaos Pink Bean.

15. Brawlers don't get a hax physical avoid formula anymore or just not worth the trouble to scrounge through for one class's mechanics? Somewhat disappoint if it is.

16. Now if we can find out how much damage is reduced by defense (assuming it too is changed). Paladins already will have uber defensive since max STR (23 DEX, 4 INT/LUK) provides 1214 weapon defense base according to the formulas above. That's a 607 damage reduction if the system is the same. with crazy potential items, it is possible to get over 4000 defense. Paladins get Shield Mastery which, if it works the way I translated, will triple your defense while wearing a shield. Is there something I'm missing? 12,000 defense is crazy since it would require monsters to have 6,002 attack power to cause more than a point of damage. There's probably a lot I'm wrong with, so I could really use some aid with this.

EDIT:
Spoiler

With those stats pre-BB, he would have 5,397 weapon defense post-BB at level 200.

17. Uhhh, that is included with the original post. PDD = WDEF.

18. Oh, my bad. If that's the case, defense was nerfed a bit. Every 4 points lowers the monster's damage by 1. I don't recall seeing the monster's attack power post-BB, so I can't tell how powerful defense really is now. From the looks of it though, defense is more worthwile because of the boost from stats, but it still doesn't seem like anything to invest time into getting potential equipment with defense for, say, jump quests monsters such as the pillar that does around 50,000 damage.

19. Is there anywhere one can look at all the stats of the post-BB mobs, since the only ones in the extraction thread for changed mobs is level, HP, and exp. I want to calculate how useful defense is now.

20. Wow, that sucks ass.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•