Block Cap macro, anybody care to test it?

All things /script related

Moderators: Fridmarr, Worldie, Aergis, _Chloe

Block Cap macro, anybody care to test it?

Postby crabcrouton » Wed Dec 03, 2008 2:55 pm

/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)*0.20333)*0.04,1,0.5,0)

So this is my amended uncrushable macro with the aim to check how close I am to the block cap. I removed the + 20 Defense from Anticipation. Then converted the old 150/355 (1/2.365 = 0.42283) skill:rating ratio at level 70 to the 1/4.918 (0.20333) ratio at 80.

Anyone doing raids want to give this a try and see if it matches their results?
crabcrouton
 
Posts: 341
Joined: Tue Mar 25, 2008 3:10 am

Postby Kroda » Wed Dec 03, 2008 4:32 pm

I'll compare numbers with the numbers I get from tankadin
Image
Kroda
 
Posts: 158
Joined: Mon Oct 08, 2007 7:28 am

Postby Dork » Wed Dec 03, 2008 9:11 pm

77.3250 from your macro.
-25.11 from tankadin2

With out holy shield of course.
User avatar
Dork
 
Posts: 32
Joined: Thu Nov 06, 2008 1:14 pm

Postby crabcrouton » Thu Dec 04, 2008 3:41 am

Score! Thanks um... Dork.
crabcrouton
 
Posts: 341
Joined: Tue Mar 25, 2008 3:10 am

Postby majiben » Thu Dec 04, 2008 9:09 am

DR on miss are not picked up macros or addons yet FYI, you'll need to have 1.5-2% more than the macro displays to be at the true cap.
Amirya wrote:some bizarre lovechild of Hawking, Einstein, and Theck
User avatar
majiben
Moderator
 
Posts: 6999
Joined: Fri Aug 22, 2008 4:37 pm
Location: Retired

Re: Block Cap macro, anybody care to test it?

Postby Janduin » Thu Dec 04, 2008 9:21 am

crabcrouton wrote:/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)*0.20333)*0.04,1,0.5,0)

So this is my amended uncrushable macro with the aim to check how close I am to the block cap. I removed the + 20 Defense from Anticipation. Then converted the old 150/355 (1/2.365 = 0.42283) skill:rating ratio at level 70 to the 1/4.918 (0.20333) ratio at 80.

Anyone doing raids want to give this a try and see if it matches their results?


You might want to replace:

GetCombatRating(CR_DEFENSE_SKILL)*0.20333

with

GetCombatRatingBonus(CR_DEFENSE_SKILL)

This eliminates dealing with ratings, which is good because WoW uses your integer defense skill to calculate the avoidance/block chance it gives, not floating point number you'd get converting your defense rating to skill through multiplication. Answers should be close though.

Edit: What Majiben said. Go 1% to 2% over to account for miss DR.
Image
Janduin
 
Posts: 746
Joined: Sat Apr 26, 2008 8:57 am
Location: Geneva

Postby KysenMurrin » Thu Dec 04, 2008 11:18 am

I've been using a macro for this for a long time now, and haven't changed it since 3.0, but I noticed that it's slightly different to the one in this thread, so now I'm not sure if it is right or not. The one I have is:

/script DEFAULT_CHAT_FRAME:AddMessage(string.format("Need 102.4 avoidance. Currently: %s",floor((GetDodgeChance()+GetBlockChance()+GetParryChance()+5+(GetCombatRatingBonus(CR_DEFENSE_SKILL)+UnitDefense("Player")-5*UnitLevel("Player"))*0.04)*100)/100))
Temporarily playing WoW again.
Donnan - Nangun - Kysen - Kysen - Mardun - Timkins

Mostly-Book Blog.
KysenMurrin
 
Posts: 6965
Joined: Thu Jun 26, 2008 6:37 am
Location: UK

Postby Janduin » Thu Dec 04, 2008 11:39 am

KysenMurrin wrote:I've been using a macro for this for a long time now, and haven't changed it since 3.0, but I noticed that it's slightly different to the one in this thread, so now I'm not sure if it is right or not. The one I have is:

/script DEFAULT_CHAT_FRAME:AddMessage(string.format("Need 102.4 avoidance. Currently: %s",floor((GetDodgeChance()+GetBlockChance()+GetParryChance()+5+(GetCombatRatingBonus(CR_DEFENSE_SKILL)+UnitDefense("Player")-5*UnitLevel("Player"))*0.04)*100)/100))


Looks right. The macro I wrote down assumes your base defense skill is maxed out. Yours doesn't, but if you are level 80 and have base defense skill 400, you will notice that:

UnitDefense("Player")-5*UnitLevel("Player") = 400-5*80 = 400-400 = 0

So yours is identical. Note that the 100s at the end of it cancel out and do nothing.
Image
Janduin
 
Posts: 746
Joined: Sat Apr 26, 2008 8:57 am
Location: Geneva

Postby KysenMurrin » Thu Dec 04, 2008 11:46 am

Yeah, I was wondering about those 100s... I'd not looked closely at it before, just cut-and-pasted from somewhere (I think a thread on this site, but not sure, might have been wowwiki).
So, the differences just make it work whatever your base defense is at? Good to know.
Temporarily playing WoW again.
Donnan - Nangun - Kysen - Kysen - Mardun - Timkins

Mostly-Book Blog.
KysenMurrin
 
Posts: 6965
Joined: Thu Jun 26, 2008 6:37 am
Location: UK

Postby crabcrouton » Thu Dec 04, 2008 2:56 pm

Makes sense. I'll be running Naxx soon so that'll give me a chance to gear up and see just how accurate the modified macro is (if it is 1-2% or wildly 4-5% for example). Thanks everyone.
crabcrouton
 
Posts: 341
Joined: Tue Mar 25, 2008 3:10 am

Postby crabcrouton » Fri Dec 05, 2008 5:55 pm

Janduin, I modified the macro like you suggested:

/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)*0.04,1,0.5,0)

It seems to not give an output for %. Could you take a look and see what's missing?
crabcrouton
 
Posts: 341
Joined: Tue Mar 25, 2008 3:10 am

Postby majorwoo » Mon Dec 08, 2008 10:16 am

I've been reading more and more of these macros threads looking for one that includes miss% and works with DR. I've come to understand that DR doesn't get counted yet due to macro/addon limitations, and I understand that. What I'm trying to figure out is, is the base miss% included in these macros in the section dealing with defense? And it would also be impacted by DR? (I understand our defense values really suffer DR in miss% just from getting to 54))

Thanks!
Image
Despite all my rage, I am still just a Paladin Tank.
User avatar
majorwoo
 
Posts: 478
Joined: Tue May 20, 2008 7:24 am
Location: Atlanta, GA, USA

Postby majiben » Mon Dec 08, 2008 10:50 am

Macros don't handle non linear equations well. Let me give you some points of reference.

At 810 defense rating you will have 6.59% miss from defense before DR and 4.59% post DR. A 2% lose.

At 690 defense rating you will have 5.61% miss from defense before DR and 4.11% post DR. A 1.5% lose.

Using those numbers you could create a macro that approximates the DR with a linear for people with defense rating between 690 and 810.
Amirya wrote:some bizarre lovechild of Hawking, Einstein, and Theck
User avatar
majiben
Moderator
 
Posts: 6999
Joined: Fri Aug 22, 2008 4:37 pm
Location: Retired

Postby steadypal » Thu Dec 18, 2008 4:35 am

OH GOD i am SOOOO freaking depressed right now, WTF arrgh,

i used a macro from a different post, got to 102.5, was all happy,, i tried adding it up with a pencil didnt add up right, looked for a new macro and now i see yours


and NOOOO im like barely 96%ish, /wrists,

wtf do i do now
steadypal
 
Posts: 1206
Joined: Sat Mar 15, 2008 12:28 pm

Postby steadypal » Thu Dec 18, 2008 11:42 am

steadypal wrote:OH GOD i am SOOOO freaking depressed right now, WTF arrgh,

i used a macro from a different post, got to 102.5, was all happy,, i tried adding it up with a pencil didnt add up right, looked for a new macro and now i see yours


and NOOOO im like barely 96%ish, /wrists,

wtf do i do now



okay re adjusted, and QQ, i lost a bit of avoidance and alot of stam to get over 102.4, i've read to go 1-2% over, so im roughly a tad over 104%,,,


gave up 1340 HP

and about 1.3% dodge



is it worth that much to get over the unhit cap?
steadypal
 
Posts: 1206
Joined: Sat Mar 15, 2008 12:28 pm

Next

Return to Add-ons, UI, and Macros

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Who is online

In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 380 on Tue Oct 14, 2008 6:28 pm

Users browsing this forum: Google [Bot] and 1 guest