1. #1

    TANKs.. Need macro help.

    Okay so I am using an avoidance macro

    /run b=GetBlockChance() d=GetDodgeChance() p=GetParryChance() m=5 if UnitRace("player")=="Night Elf" then m=m+2 end a=m+d+p+b DEFAULT_CHAT_FRAME:AddMessage(a.."% Is my current Avoidance")

    Which helps for own personal awareness... but I want this macro to also /say what that avoidance amount is.
    Where would I modify this macro to announce my current avoidance in /say ?

  2. #2
    The Insane Rivin's Avatar
    10+ Year Old Account
    Join Date
    Oct 2009
    Location
    Washington, USA
    Posts
    16,615
    Moving this to the Interface & Macro forum.

  3. #3
    Brewmaster dawawe's Avatar
    10+ Year Old Account
    Join Date
    Jul 2009
    Location
    Atl, Ga
    Posts
    1,265
    NOpe i was wrong
    my best guess. No idea if its right tho.


    New:
    /run b=GetBlockChance() d=GetDodgeChance() p=GetParryChance() m=5 if UnitRace("player")=="Night Elf" then m=m+2 end a=m+d+p+b SendChatMessage(a.."% Is my current Avoidance",SAY)

    this one works for me.
    Last edited by dawawe; 2011-10-19 at 11:06 PM.

  4. #4
    I believe you should also make your variables locals so they don't clutter up the global table

    /run local a,b,d,m,p b=GetBlockChance() d=GetDodgeChance() p=GetParryChance() m=5 if UnitRace("player")=="Night Elf" then m=m+2 end a=m+d+p+b SendChatMessage(a.."% Is my current Avoidance",SAY)

Posting Permissions

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