Thread: Need Help!

  1. #1
    High Overlord RippedGeek's Avatar
    7+ Year Old Account
    Join Date
    Aug 2015
    Location
    Toronto, Ontario
    Posts
    138

    Need Help!

    Hey Guys, So I'm trying to make a macro that gives a raid warning to say "Kill Target (Targets Name)" where the target is the target of my focus. I know %f and %t but not how to get the Target of My focus. I'm pretty sure I need a RaidNotice_AddMessage and here's what I have so far.

    /run RaidNotice_AddMessage(RaidBossEmoteFrame, "Kill Target", ChatTypeInfo["RAID_BOSS_EMOTE"]) PlaySound("RaidBossEmoteWarning")

    But that doesn't add the units name into it, it just says Kill Target. Help pls!
    Last edited by RippedGeek; 2016-01-09 at 06:13 AM.

  2. #2
    Why not

    /rw Kill @focustarget

    I think that works?

  3. #3
    High Overlord RippedGeek's Avatar
    7+ Year Old Account
    Join Date
    Aug 2015
    Location
    Toronto, Ontario
    Posts
    138
    Quote Originally Posted by dodgerslim View Post
    Why not

    /rw Kill @focustarget

    I think that works?
    doesn't work thats just makes you say @FocusTarget instead of the actual focus targets name

    - - - Updated - - -

    so I thought I figured it out..

    /run RaidNotice_AddMessage(RaidBossEmoteFrame, "Kill Target " .. UnitName(select(2,SecureCmdOptionParse("[@focustarget]"))), ChatTypeInfo["RAID_BOSS_EMOTE"]) PlaySound("RaidBossEmoteWarning")

    but apparently only I get the Raid Message, which is less than useful for obvious reasons. anybody know how to fix that?

  4. #4
    /tar [@focustarget]
    /rw kill %t
    /targetlasttarget

  5. #5
    High Overlord RippedGeek's Avatar
    7+ Year Old Account
    Join Date
    Aug 2015
    Location
    Toronto, Ontario
    Posts
    138
    Quote Originally Posted by dodgerslim View Post
    /tar [@focustarget]
    /rw kill %t
    /targetlasttarget
    ah forgot about /targetlasttarget, you're the best. I was trying to be too fancy lol Thx for your help

  6. #6
    Quote Originally Posted by RippedGeek View Post
    ah forgot about /targetlasttarget, you're the best. I was trying to be too fancy lol Thx for your help
    Just glad to help

Posting Permissions

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