4401 Posts in 1224 Topics- by 456 Members - Latest Member: Zannmari

Pages: [1]
  Print  
Author Topic: Avoidance Macro  (Read 580 times)
0 Members and 1 Guest are viewing this topic.
dahplagus
WebMaster
Administrator
Sr. Member
*****
Gender: Male
Posts: 363


<DahAlts> World Domination!

jazo@jazo-online.com
WWW Email
« on: September 08, 2008, 07:17:45 PM »

Below is a small macro for tanks for calculating avoidance

Code:
/script DEFAULT_CHAT_FRAME:AddMessage("Need 102.4 combined avoidance. Currently at:",0.8,0.8,1)
/script DEFAULT_CHAT_FRAME:AddMessage(GetDodgeChance()+GetBlockChance() + GetParryChance() +5+(GetCombatRatingBonus(CR_DEFENSE_SKILL) + 20)*0.04,1,0.5,0)
Logged

Easypeasy
Officers
Newbie
**
Posts: 49


« Reply #1 on: September 08, 2008, 08:04:44 PM »

That ones not correct.

This ones closer:

/script DEFAULT_CHAT_FRAME:AddMessage("Need 102.4 combined avoidance. Currently at:",0.8,0.8,1)
/script DEFAULT_CHAT_FRAME:AddMessage(GetDodgeChance()+GetBlockChance()+GetParryChance()+5+(
GetCombatRating(CR_DEFENSE_SKILL)*150/355+20)*0.04,1,0.5,0)

However Satrina covers it best.

Satrina:

Here's one that gives you the exact calculation:

/run local a,b=UnitDefense("player") a = (a+b-350)/25 DEFAULT_CHAT_FRAME:AddMessage(string.format("Need 102.4%% combined (miss+dodge+parry+block). Currently at: %.2f%%", 5+a+GetDodgeChance()+GetBlockChance()+GetParryChance()))

1) UnitDefense returns your base defense (a) and the defense from gear (b). Since any defense from Anticipation is included in the base number for warriors, we use (a + b -350) to get the portion of defense that works towards uncrushability.

2) Once we have the defense that counts towards uncrushability, we divide it by 25 since each point of defense skill adds 0.04% chance to be missed. (We could have just multiplied by 0.04, yes)

3) GetDodgeChance, GetBlockChance, and GetParryChance already include the dodge, block, and parry gained from defense.

4) The 5 is the mob's base 5% chance to miss you

5) All of the above simply add up. We account for a boss' extra 2.4% by adding all that up to 102.4% instead of mucking around trying to reduce each individual number by 0.6%

6) That doesn't include Holy Shield (30%) or the Libram of Repentance (5.32%), if you were worrying about Holy Shield uncrushable. For Holy Shield uncrushable:

/run local a,b=UnitDefense("player") a = (a+b-350)/25 DEFAULT_CHAT_FRAME:AddMessage(string.format("Need 102.4%% combined (miss+dodge+parry+block). Currently at: %.2f%%", 5+a+GetDodgeChance()+GetBlockChance()+GetParryChance()+35.32))

The long and dirty of it: http://www.tankspot.com/forums/evil-empire-guides/33543-uncrushable.html



Cheers
EP Smiley
Logged
Pages: [1]
  Print  
 
Jump to: